Topic: load saved game maps into editor
LiSrt Topic Opener |
Posted at:
2011-02-15, 23:37 UTC+1.0
Is it possible to edit the maps in a save game directory using the editor in Widelands? If not, is there some other way of changing the terrain in a saved game? thanks, ![]() ![]() |
ixprefect |
Posted at:
2011-02-16, 12:03 UTC+1.0
That's currently not supported. You can actually try to load a savegame in the editor, simply by copying the savegame from the save/ to the maps/ directory in your .widelands directory. However, I've never tried that, and you should not be surprised about seriously weird results. Also, it's unclear whether you would then be able to load the savegame again as a game after saving it in the editor, even if loading it in the editor works. It does sound like a fun idea to hack around with. So if your hacking spirits are high, do play around with that, also keeping in mind that savegames are simply zip files, but don't expect things to work. If they do work, it's only because of a happy accident. ![]() ![]() |
SirVer |
Posted at:
2011-02-16, 13:55 UTC+1.0
If you are able to get/build a recent developer snapshot in debug mode, you can use Lua to change terrains in the debug console in a running game (press F6):
![]() ![]() |
Nasenbaer![]() |
Posted at:
2011-02-16, 20:51 UTC+1.0
Actually I tried this some times before, when I tested a map I built myself and found out, that I was not able to continue expansion on a specific place. Loading the map from the saved game did never work for me, as the editor would need to load the buildings, workers, wares and all other stuff of the players from the saved game, what it is not designed for. However you can simply change the original map, save it and afterwards replace the "terrain" file (and/or "height" file, if changed as well) of the saved game, with the one of the changed map (both files need to be unzipped - "terrain" and "height" are in subdirectory "binary"). But be aware not to replace the other files - especially replacing "mabobjects" will completely break your saved game. ![]() ![]() |
LiSrt Topic Opener |
Posted at:
2011-02-17, 19:56 UTC+1.0
Thank you - Nasenbaer's suggestion seemed easiest, and it seems to have worked for what I wanted to do - no errors. ![]() ![]() |