SirTobi60 wrote:ozonex wrote:SirTobi60 wrote:However the editor has some bugs and requires some editing of the _save.lua file and the _scenario.file to get the map actually working. It will also delete all the reclaim on the map so one has to copy it back in manually.
You sure it lose reclaim? Send me PM with what is lost exactly on what map (example to test it) and what is wrong with save and scenario files.
yes I'm sure it loses all units and stuff (so wrecks and civs and so on...) when you save the map (the backup will have this though). The save.lua file is rewritten when you save the map and it doesnt contain any wreckage. Furthermore if you dont delete the comments that are saved into that file, the map wont work. Even the editor wont load it properly.
I already reported the ['SpawnWithArmy'] thing on the hydros that are added, but this has to be fixed too.
The scenario.lua file also contains some strange characters (that are kinda invisible). I had to copy the text in the file, delete everything there and paste it back... that fixed this (the text in both files is identical, "grep-nir" doesn't show any difference, the file size differs though). Same thing applies to the save.lua file too.
The scenario file loses all information about extra props (i.e. civilian army) and this army also gets deleted form the save.lua file.
As an example to test it: download Wonder Open ultimate and look at the save.lua file (on the very bottom there are the wrecks as parts of army_17). Now open the map in the editor and save it. Now reload the save.lua file and you will see no more wrecks. To test the hydro thing: just add a hydro, save the map and search the save.lua file for hydro_X, you will see the wrong formatting immediately. To check the strange letter bug: save the map and open FA (from the FAF folder, offline), now open the debug console in the main menu (put it on some hotkey) and host a game lobby (skirmish). Select the map and try to load it (if you can start the game, the bug isnt there). Some errors will show up in the debug window pointing to the comment lines in save.lua and maybe also to scenario.lua. Changing the map afterwards is usually impossible because the lobby crashes and you cant push any button when you want to leave the map selection window. You can change the map by either deleting the broken one or hosting a game on FAF (since it will override the last played map). I am not at home to check if these tests really work, but I am 99.99% certain they will.
Thanks, I will try to fix it this weekend.