Closed Sigafoos closed 4 years ago
I’ve made a few improvements locally but am still having the issue. It looks like only one entity’s links are saved.
It’s correct in the local game
object, for all users, but it’s not persisted to the .db file. This means a “fix” is to wait for everyone to be connected to the server and sync every time you play. This is a bad fix.
Improvements I’ve made that don’t seem to have any effect (but which we’re still important to make)
setFlag
to avoid race conditionsgame[entityType].get(id).setFlag(...)
instead of on the local entity in case it’s acting on a locally cached object rather than the reference (I don’t think this was an issue, but now it’s definitely not)The last one seems to be what the issue is, as it explains why it’s fine in the game
object but not in the database. It still wasn’t working, but I have a few different ways to approach it (I’ve just been busy the past few days)
In my test world,
somefin else
should have a link fromrefrance
but doesn't.