Dysoch / DyTech

DyTech, A mod for Factorio. Making the game much more complex!
http://www.factorioforums.com/forum/viewforum.php?f=43
Other
54 stars 46 forks source link

With DyTech-Warfare 1.9.9 is not possible to load game with DyTech-Warfare 1.1.0 #145

Closed windwind12 closed 9 years ago

windwind12 commented 10 years ago

With DyTech-Warfare 1.9.9 is not possible to load game with DyTech-Warfare 1.1.0 When i will load it follow message come:

Error item battery saved as tyoe item, but now it is type ammo

Please fix it Thanks

FreeER commented 10 years ago

hm... not sure how to fix this properly (with a migration) but I found that extracting the save and editing level.dat and level-init.dat (in notepad++) so that the word "item" in front of "battery" (there are some non-printable character inbetween) is instead "ammo" and then rezipping the save did the trick. If anyone else decides to try that MAKE A BACKUP, my test was on a fresh save with 1.1.0 and then I changed the mod out for the newer ammo version, it seemed to work, but I offer no guarantee that it couldn't somehow possibly maybe corrupt your save. No harm in trying it though, IF you make a backup first, or better make a copy of the save and test it on the copy.

Attempted the 'proper' way below (a new .json file in migrations folder) but it didn't work... { "item": [ ["battery", "battery"] ] }

windwind12 commented 10 years ago

thanks for the fast answer ... i have try it but it doesnt work ... If you want you can try it by yourself... here the save ... www.clanweb.org/DyTech.zip (12,3 MB)

If you need some infos or more files than write me If it not possible than its no problem ... i just want test something.

windwind12 commented 10 years ago

I try to fix the other problem an change the DyTech-Tools 2.0.0 back to 1.0.1 and then i get the same error message like in the old files and the old file work! Error item battery saved as tyoe item, but now it is type ammo So i think the problem is not DyTech-Warfare 1.9.9 ... it is DyTech-Tools 2.0.0 Sorry that i choose the wrong file ...

FreeER commented 10 years ago

hm, yeah I got a bad allocation when I tried editing your save, and I have a feeling that Factorio's migration system isn't going to allow changing the type of prototypes (it's mostly meant for name changes...).

I imagine a simple recipe could be added to convert item batteries to ammo batteries, or Dysoch could just make people start a new game....

Dysoch commented 10 years ago

i made a warning that using Warfare 1.9.9 will corrupt your save, and should start a new game. Also making a bug report for it so the devs can fix it xD

windwind12 commented 10 years ago

Try if it was Warfare or Tools and write than the warning ...

Dysoch commented 9 years ago

no longer needed since the ammo for the laser gun is no longer the battery, but an own item. This issue will never happen again