If you want to add Civilians to your map, go back to the Armies layer in the Layer window. Create two new armies. Click on one and rename it to ARMY_9. Rename the other to NEUTRAL_CIVILIAN. In the Armies window, click on the [+] of NEUTRAL_CIVILIAN to open up the army list. With INITIAL selected, right click on the map and choose a building. This will plop down a building at the location you clicked for the NEUTRAL_CIVILIAN army. If you accidentally deselect the INITIAL group, you can always drag buildings between groups in the Armies window. Place all of the typical civilian buildings in the NEUTRAL_CIVILIAN army. Defensive structures should be placed in the INITIAL group of the ARMY_9 army.
Next we have to tell the game to treat these as civilian buildings. Unfortunately, doing this from the editor causes a crash, so we have to do it manually. Close the editor and go to the _scenario.lua file. Modify the CustomProps section so that it looks like this:
customprops = {
['ExtraArmies'] = STRING( 'ARMY_9 NEUTRAL_CIVILIAN' ),
},
Save the lua file and try out the map. If you have problems getting the civilians to appear, make sure you set up the armies properly. If all else fails, open up one of the official maps that contains civilians and compare the setup to yours.
Statistics: Posted by H2H_TechMonkey — 29 Aug 2014, 00:07
Statistics: Posted by H2H_TechMonkey — 28 Aug 2014, 22:09