wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
549 stars 333 forks source link

Started wire entity memory sync class #2979

Closed thegrb93 closed 3 months ago

thegrb93 commented 8 months ago

Will also require stringstream class

Denneisk commented 7 months ago

Is this meant to be a replacement for NetworkVars?

thegrb93 commented 7 months ago

Is this meant to be a replacement for NetworkVars?

No, it's for entities that sync their 'memory' variable to client

thegrb93 commented 7 months ago

The only problem I foresee with my current approach is that it doesn't preserve write order or writing over a memory address multiple times, which I imagine may cause bugs in some entities. Maybe need to remove those optimizations.

thegrb93 commented 7 months ago

Or maybe make a WireLib.MemoryTrackerPreserveOrder version of WireLib.MemoryTracker

github-actions[bot] commented 5 months ago

This pull request has been marked as stale as there haven't been any changes in the past month. It will be closed in 15 days.

github-actions[bot] commented 3 months ago

This pull request has been marked as stale as there haven't been any changes in the past month. It will be closed in 15 days.

thegrb93 commented 3 months ago

Not really happy with this. I think I should've done a queue per entity instead of globbing all the entity data together. Also I don't have the energy to do the memory playback management for each entity that syncs its memory.