Imbris
ecb27deeae
When sync_me is false avoid:
...
* Logging a warning when deleting the entity and it is not in any
Region.
* Searching every single region for an entity that is in none of them.
Also:
* Add workaround for bug in specs where deleting any entity clears the
components before checking that the generation is correct (surprised
that we haven't encounted bugs from this yet).
* Properly update `tracked_entities` inside `RegionMap` when deleting
an entity. Previously, we just relied on this being updated in
`RegionMap::tick` by the absence of the `Pos` component at that index.
However, this means if a new entity is created at that index after
deletion and before calling `RegionMap::tick`, then this can be
interpreted as an entity moving between regions rather than one being
deleted and another created. It seems like this could lead to
synchronization bugs like not creating the new entity on the client
(although I haven't noticed this before, I think maybe we use newly
inserted `Uid`s to detect new entities rather than the region system?).
I think it could at least lead to sending redundant messages to
synchronize the new entity.
2023-08-11 20:09:55 -04:00
Imbris
cdca700297
Properly check conditions for when the client's physics components should be synced
2023-08-11 20:09:55 -04:00
Marcel Märtens
e3f8046691
Change the version number to 0.15
2023-06-30 16:31:00 +02:00
Imbris
01df87bdb4
Address/cleanup a couple TODOs, mainly comment improvements
2023-06-04 12:58:16 -04:00
Imbris
a976aa3f40
fmt after rebase
2023-06-04 12:58:16 -04:00
Imbris
b8af76deff
Remove potential for client to delete its own entity.
...
Also:
* Fix some clippy warnings
* Remove unused clippy allow
* Document semantics of `DeletedEntities`
2023-06-04 12:58:16 -04:00
Imbris
c60f994c7f
Some random changes and a fmt
2023-06-04 12:58:16 -04:00
Imbris
f11baed9fa
Adapting various things to the new interface, fixing compilation errors,
...
and progressing on half done things. Also, added a few TODO comments.
2023-06-04 12:58:16 -04:00
Imbris
4094887997
Rename UidAllocator to IdMaps everywhere, also rename lookup_entity to
...
uid_entity.
Also made more progress on changes in common/src/uid.rs
(does not compile so don't know if all rebase quirks resolved)
2023-06-04 12:58:16 -04:00
Imbris
ea725fffde
Cleanup UidAllocator and Uid a bit:
...
* Remove unnecessary Marker/MarkAllocator trait implementations.
* Delete excess functions
* Change some methods to take Uid instead of u64
2023-06-04 12:58:15 -04:00
Isse
a884e0e058
Various rtsim related stuff
2023-06-03 22:14:18 +00:00
Marcel Märtens
3a19669d53
use workspace dependencies to make our life easier maintaining them :)
2023-05-10 18:16:25 +02:00
Isse
a0ed18c3db
add doc comments
2023-05-09 19:43:10 +02:00
Isse
6674cce2cc
intercat with sprites on ships
2023-05-09 19:43:09 +02:00
Isse
7eba16a2d7
use mount key
2023-05-09 19:43:08 +02:00
Isse
2928eb8d15
sit on sprites
2023-05-09 19:43:08 +02:00
Joshua Barretto
1cc221f653
Merge branch 'zesterer/rtsim-tweaks' into 'master'
...
Started adding wandering rtsim monsters
See merge request veloren/veloren!3908
2023-05-09 14:51:15 +00:00
Marcel Märtens
95bca5418a
update toolchain to nightly-2023-04-20
2023-05-08 18:58:54 +02:00
Imbris
af0d0f3ea4
Second attempt (success)
2023-05-06 00:30:54 -04:00
Marcel Märtens
d90ea8c1da
get rid of structop and update clippy in common test, now only criterion is left with version 2
2023-05-05 09:46:46 +02:00
Marcel Märtens
4be1e82ba9
update further dependencies
2023-05-04 23:42:05 +02:00
Joshua Barretto
a5b1e41d8b
Make NPC interaction go via rtsim
2023-05-04 11:23:46 +01:00
Marcel Märtens
054f4f9453
update veloren deps
2023-05-04 11:58:43 +02:00
Isse
ab4076518f
Add multiloot
2023-04-23 19:17:39 +00:00
Sam
e819cd2309
Updated hashbrown, removed some to_owned calls in handling recently unequipped items
2023-04-19 18:43:40 -04:00
Joshua Barretto
a835ce7e26
Better starting site choices
2023-04-13 18:32:21 +01:00
Joshua Barretto
69424ea5bf
Use nested broken key as fallback if not using english fallback
2023-04-12 16:18:31 +01:00
Joshua Barretto
cb5d0f5a95
Don't perform partial localisation of content, prefer all-or-nothing
2023-04-12 12:11:53 +01:00
Joshua Barretto
16e3227f78
Correct localisation of numeric values, use coordinate conversions in rtsim
2023-04-12 10:36:11 +01:00
Joshua Barretto
3582d86c70
Simplified localisation logic
2023-04-11 23:51:07 +01:00
Joshua Barretto
c69307557d
Fall back to single message if variations don't exist for localisation
2023-04-11 19:06:40 +01:00
Joshua Barretto
85a3d0bec4
Fixed tests
2023-04-11 18:17:52 +01:00
Joshua Barretto
edcc2f1870
Overhauled chat message representation to allow for more exhaustive localisation
2023-04-11 15:46:36 +01:00
Joshua Barretto
b50645c1ee
Addressed review comments
2023-04-10 17:59:43 +01:00
Joshua Barretto
364255c7fe
Allowed rtsim NPCs to greet nearby actors
2023-04-09 19:25:55 +01:00
Joshua Barretto
c168ff2f9b
Added rtsim saving, chunk resources, chunk resource depletion
2023-04-09 19:25:51 +01:00
Sam
0966753699
Added repair recipes
2023-04-06 10:54:48 -04:00
Sam
c3f5bc13f1
Equipment can now be repaired at sprites in town.
2023-04-06 10:54:48 -04:00
Joshua Barretto
17cdd3e38d
Merge branch 'zesterer/choose-starting-site' into 'master'
...
Allow new players to choose their starting site
See merge request veloren/veloren!3848
2023-04-02 00:45:25 +00:00
Sam
2e6d55a78b
Use topographic map for town selection screen.
2023-04-01 17:10:44 -04:00
Sam
0ce452cf0c
Tween client time to match with server time.
2023-04-01 16:58:03 -04:00
Joshua Barretto
acec45b756
Initial implementation of starting site choice
2023-03-31 14:24:14 +01:00
Isse
1298fc792b
Merge branch 'ProfessionalHobbyist/configurable_day_night_length' into 'master'
...
Add setting to control length of day/night cycle for servers. ("Fix" for https://gitlab.com/veloren/veloren/-/issues/1798 )
See merge request veloren/veloren!3836
2023-03-23 16:33:39 +00:00
Sophia Waggoner
264e4a53f8
cargo clippy + fmt
2023-03-22 05:49:54 -07:00
Sophia Waggoner
4a3d1bbb86
Ultimately use setting in day cycle updates.
...
(First functional commit.)
2023-03-21 21:32:05 -07:00
Sophia Waggoner
7e4ea483e0
Add a ServerConstants to Client and Server structs and sync on register.
2023-03-21 20:28:08 -07:00
Sam
c295506ef9
Removed buffered inputs
2023-03-21 20:13:45 -04:00
Sam
3caa9dc529
Stances can now be left by interacting with the buff bar.
2023-03-21 20:03:22 -04:00
Sam
d0a46ed82b
Inputs now remain queued even when the input is released, until the input is used.
2023-03-21 19:26:06 -04:00
Joshua Barretto
1f80b3ce47
Don't allow time to go backward
2023-03-18 10:02:11 +00:00