Commit graph

52 commits

Author SHA1 Message Date
in0finite
7d6e6ca84c profile loading steps 2022-01-30 00:18:52 +01:00
in0finite
4d30a3d5d4 display loading status when error happens 2022-01-29 21:47:02 +01:00
in0finite
75ac2ee166 remove world steps if world does not exist 2022-01-23 06:00:12 +01:00
in0finite
6b472e1374 ... 2022-01-23 05:53:28 +01:00
in0finite
896729818b remember completed steps and don't repeat them 2022-01-23 05:49:55 +01:00
in0finite
3250e04c28 ... 2022-01-22 02:04:13 +01:00
in0finite
b94912a11b add LoadProcessStarter 2022-01-22 02:03:14 +01:00
in0finite
4556e1eed6 make Loader a StartupSingleton 2022-01-22 01:09:42 +01:00
in0finite
3a9399b616 make loading process much more error-proof 2022-01-22 00:25:05 +01:00
in0finite
edbb2e8635 add loading steps when loading begins 2022-01-21 02:11:42 +01:00
in0finite
51eb669178 clear progress bar when loading finishes 2022-01-21 02:01:35 +01:00
in0finite
ab96f3c8d5 Loader inherits SingletonComponent 2022-01-21 01:35:36 +01:00
in0finite
6a447b6962 adapt to CoroutineManager 2022-01-21 00:17:06 +01:00
in0finite
4f16c2ef76 ... 2022-01-17 00:30:09 +01:00
in0finite
44a4ff8c17 ... 2022-01-17 00:29:38 +01:00
in0finite
5e82124a2f extract function 2022-01-17 00:21:34 +01:00
in0finite
e3c0cbc81c remove "anim_group_files" config setting - this fixes a bug with IL2CPP where json library tried to use Reflection.Emit functions 2021-10-21 11:16:05 +02:00
in0finite
3f37b3913e improve Config API 2021-10-21 10:50:23 +02:00
in0finite
b62e786dad ... 2021-09-07 00:47:54 +02:00
in0finite
6f866fa750 change namespace 2021-09-07 00:45:25 +02:00
Damien
5862efba4f
[#79] AI peds pathfinding (#111)
* Added Ped AI with debug info

* Improved ped AI + auto spawn for each players

* Disabling Ped Spawner script for clients

* Added flee script for peds and reworked peds AI

* Optimized Ped spawning script

* Removed unused ped command

* Convert class to struct in NodeFile.cs

* Revert style on Ped_Spawning

* Fixed respawning ped issue on multiplayer

* Improved ped's AI and spawns

* Added FindYCoordWithXZ method

* Fixed peds spawn point on bridges + added Ped tag

* Removed Ped tag to improve performances

* Fixed ped trying to spawn when player is in interior
2021-08-08 01:05:13 +02:00
in0finite
32c0be1af2
new world loading system (#110)
* wip

* much faster world creation

* add StaticGeometryInspector

* disable child/parent logic and fading

* rename

* (de)activate objects based on parent

* set draw distance based on layers

* ...

* wip

* wip

* wip

* remove unused param

* prevent concurrent modification

* ...

* catch exceptions when notifying

* ...

* notify about area, not objects

* limit public access to Area

* ...

* ...

* allow public access

* add public api

* adapt code

* pass callback to ctor

* adapt focus points

* fix

* fix intersection check

* support rectangles

* adjust parameters in prefab

* this should fix IsInsideOf()

* ...

* ...

* fix getting area by index

* create area if not exists

* ...

* ...

* ...

* wip for distance levels

* remove constraint on generic parameter

* add some validation

* fix

* fix draw distance per level

* change time of day in which lights are visible

* add todos

* don't use id for UnRegisterFocusPoint()

* use hash set for storing focus points

* add 1 more level

* mark area for update only if visibility changes

* profile WorldSystem calls

* add some profiling sections

* limit time per frame for LoadingThread

* switch custom concurrent queue

* copy jobs to buffer

* rename

* change max draw distance setting

* wait one more frame

* try to remove 801 distance level to remove holes

* attempt to hide interiors, but failed

* delete no longer needed script

* optimization

* some error checking

* add camera as focus point

* dont add camera as focus point in headless mode

* working on load priority

* fix bug - load priority finished

* ...

* small optimizations

* ...

* ...

* remove unneeded variable

* add fading

* dont do fading in headless mode

* fadeRate available in inspector

* change fade rate

* take into account if geometry is loaded when checking if object should be visible, and if fading should be done

* small optimization

* cache IsInHeadlessMode

* display Instance info in inspector

* move interiors up in the sky

* rename

* adapt code to different y pos of interiors

* refactor

* fix finding matched enex for enexes that lead to the same interior level

* display new world stats

* rename

* rename class

* ...

* ...

* extract function

* extract parameters into a struct

* add focus point to dead body

* add focus point to vehicle

* add focus point to vehicle detached parts

* remove OutOfRangeDestroyer from vehicle, and destroy vehicle if it falls below the map

* dont use focus points on vehicle and vehicle detached parts, when not on server

* add focus point for npc peds

* add possibility to set timeout during which focus point keeps revealing after it's destroyed

* adapt UnRegisterFocusPoint() to timeout

* rename

* adapt code

* cleanup MapObject class

* ...

* converting to `lock()`

* optimize method: use 1 lock instead of 3

* call OnObjectFinishedLoading() instead of AddToLoadedObjects()

* ...

* make sure it's main thread

* AsyncLoader is no longer thread safe

* convert static members to non-static in LoadingThread

* fix

* ...

* store indexes for each area

* impl GetAreaCenter()

* calculate load priority based on distance to area, not objects ; limit time per frame ; sort area in Cell, not in concurrent SortedSet ;

* add support for changing draw distance at runtime

* delay setting the new value by 0.2 s

* have a separate default max draw distance for mobile platforms

* adjust y axis world params so that number of visible areas is reduced

* remove "camera far clip plane" setting

* rename

* document flags

* rename

* disable shadow casting and receiving for some objects

* allow casting shadows for LODs with large draw distance

* remove "WorldSystem" layer

* revert layer
2021-07-18 06:03:43 +02:00
in0finite
f96be81166 skip font loading because fonts are not used anywhere 2021-02-28 22:57:29 +01:00
in0finite
899711abda add ability to specify gui style for area 2021-02-06 23:20:21 +01:00
in0finite
0c20894a31 add namespace 2021-01-31 20:58:44 +01:00
in0finite
e6a48d4bf6 load all IMG archives that are found in loose archive 2021-01-31 20:08:48 +01:00
in0finite
336db81e51 continue if failed to load cursor texture 2021-01-31 03:29:51 +01:00
in0finite
63c27c28a9 load anim groups using ArchiveManager 2021-01-31 02:07:57 +01:00
in0finite
1a5e433e28 ... 2021-01-26 23:30:36 +01:00
in0finite
df730095f3 use ConfigManager to load config 2021-01-26 23:29:01 +01:00
Spider134
52533f836b
Add font loading (#101)
* Added font importing

* Revert "Added font importing"

This reverts commit 31f3463097.

* Fix Loader.cs formatting

* Fix texture issue

* Revert "Fix texture issue"

This reverts commit 79c44f8069.

* Update FontsImporter.cs
2021-01-06 20:46:56 +01:00
in0finite
eb7123be57 refactor 2020-05-31 19:09:56 +02:00
in0finite
cac960800f working on crosshair 2020-05-31 19:09:54 +02:00
in0finite
7920363002 add loading step for enexes 2020-05-31 19:09:51 +02:00
in0finite
8ddd78367d skip creating enexes for now 2020-05-31 19:09:51 +02:00
in0finite
c78200c80f create enex objects in the world 2020-05-31 19:09:50 +02:00
in0finite
1050ec790d fix for mouse texture 2020-05-31 19:09:50 +02:00
in0finite
5067d02f32 load weapons data using case-sensitive paths 2020-05-31 19:09:49 +02:00
in0finite
f4362ce41b load car colors using case-sensitive paths 2020-05-31 19:09:49 +02:00
in0finite
cbcba8a221 load anim groups using case-sensitive paths 2020-05-31 19:09:49 +02:00
in0finite
be2df19fb5 load handling use case-sensitive paths 2020-05-31 19:09:49 +02:00
in0finite
43f44a6f00 load items using case-sensitive paths 2020-05-31 19:09:49 +02:00
in0finite
51bc383830 archives are loaded case-insensitively 2020-05-31 19:09:49 +02:00
in0finite
9970b7917d skip loading GXT - temporary fix for #32 2020-05-31 19:09:49 +02:00
in0finite
fca5096eba some GXT fixes 2020-05-31 19:09:49 +02:00
AlexWei
e236f7d032 Import gxt (#23)
* import GTX code

import GTX code
add some empty function before integrate

* set gtx path

* refactor code

* fix typo and ui prefab

change gtx to gxt

remove window from start scene and add it in prefab

* add language interface

add language interface;
add some todo comments;
change file tab; make it consistent with project.

* fix game path and typo

add test ui

* add ui part

* fix set gui style pos

it will cause bug in ctor

* add pages to gxt ui

* revert changes to startup scene
2020-05-31 19:09:49 +02:00
in0finite
c1840327d0 Loader: display error in text area ; display exit button below error 2020-05-31 19:09:48 +02:00
in0finite
5c845e244e file browser has better size 2020-05-31 19:09:48 +02:00
in0finite
da20c52e05 load arrow textures 2020-05-31 19:09:47 +02:00
in0finite
42892654df custom anim groups are loaded from resources 2020-05-31 19:09:46 +02:00