MAIN-DyTech-War deprecated


This Main Module of DyTech holds all things related to War. Meaning: Biters, Spitters, Tanks, Guns, Ammo, etc.

8 years ago
0.14
11

b Can't convert scenario2map

7 years ago

Hi. I created map and converted it into scenario. But if i try to convert it back with option --scenario2map I get an exception even no changes on map was done. Can you fix it ?

13.348 Error Main.cpp:720: Error loading scenario: Error while running the on_init: Force already exists
stack traceback:
MAIN-DyTech-War/control.lua:34: in function <MAIN-DyTech-War/control.lua:33>

7 years ago

I don't know lua and i solved the problem by editing one of the function:

script.on_init(function()
game.create_force("iddqd2017")
game.merge_forces("dyzilla", "iddqd2017")
game.create_force("dyzilla")
game.merge_forces("iddqd2017", "dyzilla")
Dyzilla.Startup()
end)

After scenario was converted to map i placed original mod back.

New response