A few questions about modding

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

A few questions about modding

Post 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!
kirk23
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 155
Joined: Wed Jul 18, 2012 1:23 pm

Re: A few questions about modding

Post by kirk23 »

You have to add the new city to the language files also.
Attachments
Language file
Language file
You have to add the new city to the language files also.jpg (95.72 KiB) Viewed 2537 times
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: A few questions about modding

Post by Kossatx »

kirk23 wrote:You have to add the new city to the language files also.
Thank you very much!
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2151
Joined: Tue Nov 23, 2010 3:35 pm

Re: A few questions about modding

Post 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! ^^
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: A few questions about modding

Post by Kossatx »

Great! Thank you very much Robotron!
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”