Itszuvalex / Femtocraft-alpha-1

Late-game Minecraft Mod
http://femtocraft.blogspot.com
GNU General Public License v2.0
4 stars 2 forks source link

Femtocraft research spontaneously resetting itself #49

Open helkarakse opened 9 years ago

helkarakse commented 9 years ago

There is no known trigger for this. One minute I was researching something in the nano tier (Farenite Stabilization), the next, I'm unable to complete the research because my research has completely reset. In addition other players report Assistant settings being reset (unable to access other players blocks).

No server side errors were logged.

Itszuvalex commented 9 years ago

Checked vs. Server logs. Immediately before problems occurred, alternative dimensions were loaded / unloaded. Research Save/Load code may be getting called on dimension save/load, rather than server. This is probably the case, and results in the rollback of research.

Itszuvalex commented 9 years ago

0.4.1 Issue still persists. It appears to happen in memory and then get flushed to disc. A rewrite is probably necessary.

Itszuvalex commented 9 years ago

Going to carpet bomb this, as it is vital.

A. Will rewrite in XML. Less worrying about proper nbt save/load, more about easy storage/fixing. B. Will add backup/restore to research command.
backup-This will backup the current state of the player's research to another file, that will only be touched by backup/restore. restore-This will restore the player's backup into his current research state. This will not alter the backup file at all. C. Will analyze how the save/load calls occur.

Big thanks to @Bryceclark56 for testing and dealing with these issues.