Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
windwind12 opened this issue Sep 18, 2014 · 7 comments

Comments

@windwind12
Copy link

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
Copy link
Contributor

FreeER commented Sep 18, 2014

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

FreeER commented Sep 18, 2014

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
Copy link
Owner

Dysoch commented Sep 18, 2014

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
Copy link
Author

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

@Dysoch Dysoch modified the milestone: Warfare Sep 30, 2014
@Dysoch
Copy link
Owner

Dysoch commented Jan 14, 2015

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

@Dysoch Dysoch closed this as completed Jan 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants