kosticia and GitHub
f1c30128d6
Fix typos in EntityDeserializaer ( #6336 )
...
good
2025-12-10 19:20:00 +01:00
64baee0a22
Add support for including map/game saves in replays. ( #6189 )
...
* Improve map serialization error logging
* Prevent remove children of erroring entities
* better logging
* Improve error tolerance
* Even more exception tolerance
* missing !
* Add WriteYaml and WriteObject to IReplayFileWriter
* Add MapLoaderSystem.TrySaveAllEntities()
* On second thought, WriteObject will just be abused
* I forgot to commit
* Add default implementation to avoid breaking changes
* release notes
* fix merge issues
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2025-11-13 22:14:56 +11:00
Leon Friedrich and GitHub
4e2c0e431b
Fix MapLoaderSystem.SerializeEntitiesRecursive ( #6246 )
...
* Fix MapLoaderSystem.SerializeEntitiesRecursive
* a
* oops
2025-10-08 17:50:50 +13:00
Rouden and GitHub
ac45a0a64b
MapId, MapCoordinates, EntityCoordinates Type serializers ( #6165 )
...
* New Type Serializers
* Delete NetCoordinatesSerializer.cs
* Make EntityCoordinates and MapCoordinates use DataRecord
* Turn them into actual record structs
I'm somewhat surprised the DataRecord attribute doesn't check this
* Allocate MapIds before deserializing components
* Deserialize preallocated ids
* fix map merge assert
* remove old
* Use TryGetMap
* release notes
2025-10-06 15:27:08 +13:00
abd5149245
Improve map serialization error logging & exception tolerance ( #6188 )
...
* Improve map serialization error logging
* Prevent remove children of erroring entities
* better logging
* Improve error tolerance
* Even more exception tolerance
* missing !
* Improve handling of category errors
Helps prevents weird bugs that arise due to deleting un-initialized entities
* release notes
* Typo fix
---------
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com >
2025-09-17 21:44:56 +02:00
Pieter-Jan Briers and GitHub
dcbe0505dc
Revert "Add WeakEntityReference ( #5577 )" ( #6112 )
...
This reverts commit c3489d4ded .
2025-07-29 18:22:17 +02:00
c3489d4ded
Add WeakEntityReference ( #5577 )
...
* Add WeakEntityReference
* Use NetEntity
* release notes
* A
* Fix merge conflicts
* comments
* A
* Add network serialization test
* Add ToPrettyString support for WeakEntityReference?
* inheritdoc
* Add GetWeakReference methods
* Not-nullable too
* Make EntitySystem proxy method signatures match EntityManager
* Add TryGetEntity
* interface
* fix test
* De-ref GetWeakReference methods
---------
Co-authored-by: Tayrtahn <tayrtahn@gmail.com >
2025-07-29 11:12:49 -04:00
Pieter-Jan Briers and GitHub
cdd3afaa4c
Remove redundant custom math types ( #6078 )
...
Vector3, Vector4, Matrix4, and Quaternion are now gone. Use System.Numerics instead.
This commit is just replacing usages, cleaning up using declarations, and moving over the (couple) helpers that are actually important.
2025-07-23 01:15:27 +02:00
Pieter-Jan Briers and GitHub
5501209b35
Add API to load maps from byte stream ( #6029 )
...
In case you don't want to load from a ResPath.
2025-06-21 14:41:32 +02:00
Tayrtahn and GitHub
343a34eac7
Fix warning CS0168 in EntityDeserializer ( #6013 )
...
* Fix warning CS0168 in EntityDeserializer
* Actually, why use try-catch just to rethrow anyway?
2025-06-09 00:04:03 +02:00
metalgearsloth and GitHub
2c5604432b
Update some GetComponentName usages ( #5942 )
...
Rider tells me to use generic and generic one seems better.
2025-06-01 17:54:43 +10:00
Tayrtahn and GitHub
7b571dc80e
Fix 2 instances of warning CS0162 ( #5951 )
2025-05-23 17:37:08 +02:00
SlamBamActionman and GitHub
65f74943d3
Add support for rotated/mirrored tiles ( #5652 )
...
* Initial commit
* Add tile rotation/mirror perms
* Nicer UI for the rotation
* Review fixes (also seemed to have missed applying the serialization reading oops)
* One less byte, one less struct size!
* Pretty sure it goes here too
* Fix error
2025-05-05 23:13:31 +10:00
Leon Friedrich and GitHub
3ce764311d
Make RobustIntegrationTest pool by default ( #5872 )
2025-04-20 17:53:55 +10:00
Leon Friedrich and GitHub
2f8f4f2f7a
Make MappingDataNode use string keys ( #5783 )
...
* string keys
* obsoletions
* Fix ValueTupleSerializer
* Release notes
* fix release note conflict
* cleanup
* Fix yaml validator & tests
* cleanup release notes
* a
* enumerator allocations
* Also sequence enumerator alloc
2025-04-18 19:01:34 +10:00
Leon Friedrich and GitHub
34f4cf9452
More map validator fixes ( #5820 )
2025-04-14 13:55:02 +10:00
Jerry and GitHub
03010bf4be
Fix DirectoryNotFoundException when saving map or grid on Unix systems ( #5773 )
...
* fix(maploader): Fix DirectoryNotFoundException
Someone forgor to create directory before saving map or grid, this caused
an exception on trying to save smth anywhere else than /
* update release notes
2025-03-27 13:56:26 +11:00
Leon Friedrich and GitHub
c459b55052
Add TryLoadGrid override ( #5701 )
...
* Add TryLoadGrid override
* fix cmd-addmap-help
2025-03-08 13:50:14 +11:00
56daa63783
make map loading logs better ( #5723 )
...
Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-03-05 15:49:20 +01:00
Southbridge and GitHub
15958a9447
Fix issue regarding Tilemaps not saving when modified ( #5696 )
...
* One line C# fix
* fixed typo
* after spending way too long trying to figure out the problem, turns out all we needed was a simple one line change
2025-02-22 17:33:33 +01:00
fbc706f37b
Refactor map loading & saving ( #5572 )
...
* Refactor map loading & saving
* test fixes
* ISerializationManager tweaks
* Fix component composition
* Try fix entity deserialization component composition
* comments
* CL
* error preinit
* a
* cleanup
* error if version is too new
* Add AlwaysPushSerializationTest
* Add auto-inclusion test
* Better categorization
* Combine test components
* Save -> TrySave
Also better handling for saving multiple entities individually
* Create new partial class for map loading
* Add OrphanSerializationTest
* Include MapIds in BeforeSerializationEvent
* Addd LifetimeSerializationTest
* Add TestMixedLifetimeSerialization
* Add CategorizationTest
* explicitly serialize list of nullspace entities
* Add backwards compatibility test
* Version comments
also fixes wrong v4 format
* add MapMergeTest
* Add NetEntity support
* Optimize EntityDeserializer
Avoid unnecessary component deserialization
* fix assert & other bugs
* fucking containers strike again
* Fix deletion of pre-init entities
* fix release note merge conflict
* Update Robust.Shared/Map/MapManager.GridCollection.cs
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
* VV
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2025-02-16 21:25:07 +11:00