Page 1 of 1
A few questions about modding
Posted: Tue Dec 06, 2016 6:23 pm
by Kossatx
Hi, I want to mod an scenario but I don't know how to do these changes:
- Put a new city on the map. I have edited the "constructions.lua" file, but the name of the city don't appear in the map... so I guess that I have to edit another file, ¿which file?
- Edit the frequency and size of the convoys in the scenario. ¿Anyone can help me?
Thanks!
Re: A few questions about modding
Posted: Tue Dec 06, 2016 7:44 pm
by kirk23
You have to add the new city to the language files also.
Re: A few questions about modding
Posted: Tue Dec 06, 2016 8:39 pm
by Kossatx
kirk23 wrote:You have to add the new city to the language files also.
Thank you very much!
Re: A few questions about modding
Posted: Tue Dec 06, 2016 8:58 pm
by Robotron
Convoys are defined in 1914.lua or whatever the name of your scenario file. They are found near the end of the file.
for example this here is the convoy from Narvik going to Germany
Code: Select all
DefineConvoy(2, 102, 1, 100, 7, 12, 1)
the values seperated by comma are:
faction number (2 is Germany),
x coordinate for spawning,
y coordinate for spawning,
cargo (max 100),
interval (how many turns must pass before another convoy spawns from the same spawning point),
spawnturn (first spawnturn),
whether the convoy is
blockadable (if blockadeable put a "1" here, else leave the value out
The convoys head for the nearest port of their home nation, you cannot define a specific destination or course to be taken while the convoys are moved by the game unless you switch off automatic movement. I can't recall how to switch off automatic movement right now but kirk23 should remember.
P.S: hi kirk! ^^
Re: A few questions about modding
Posted: Wed Dec 07, 2016 7:54 am
by Kossatx
Great! Thank you very much Robotron!