scripting files get deleted when a map is resaved
Bug #1375915 reported by
wl-zocker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Steps to reproduce:
- Make sure the option "Do not zip Widelands data files" is selected.
- Create a map and save it.
- In the map's folder, place some files (an empty init.lua is enough).
- Go to the editor, open the map and save it under the same name.
Expected result: The scripting files remain untouched.
Actual result: The scripting folder is empty.
This is quite frustrating when the whole scripting (maybe hours of work) are gone and there is no backup.
This only happens when the files are not zipped. If zipped (and unpacked/packed manually), the scripting files are not deleted.
Tested on Win7 and Ubuntu 14.04 with r7194.
Related branches
lp:~meitis/widelands/bug1375915
- GunChleoc: Approve
-
Diff: 163 lines (+77/-27)3 files modifiedsrc/editor/ui_menus/editor_main_menu_save_map.cc (+63/-27)
src/logic/map.cc (+12/-0)
src/logic/map.h (+2/-0)
Changed in widelands: | |
importance: | High → Critical |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for reporting. I can confirm the same behaviour here with r7194, but I'm not sure why it does that.
Btw, I have wondered for a rather long time why it is possible to save maps/savegames/etc as a directory or a zip file. (And well, since we have been cleaning up the source code and removing various things, are both ways still needed?)