Page 1 of 1

Terrain Type Modding

Posted: Thu Mar 02, 2017 2:30 am
by Jojeval
Greetings. I am trying to add a new terrain type to a mod to represent small, hamlet-size settlements. I wish to assign it an initiative cap of 3 and a base entrenchment of 1. I have added a new entry to the end of the list in the terrain.pzdat file, as shown in the attached screenshot, and also modified the terrain.png file to include a corresponding icon as well as modifying the movement.pzdat file. The latter two appear to be working but the initiative cap and base entrenchment assignments in the terrain.pzdat file are not taking effect. Any suggestions as to what I'm missing/doing wrong would most appreciated!
terrain.jpg
terrain.jpg (72.8 KiB) Viewed 1929 times

Re: Terrain Type Modding

Posted: Fri Mar 03, 2017 10:14 pm
by parmenio
Bounce..

Hopefully some of the more experienced modders can help out. I'm interested because I need this type of terrain myself.

Re: Terrain Type Modding

Posted: Fri Mar 03, 2017 10:36 pm
by Yrfin
Instead add new type, modify unusable (jungle for example).

Re: Terrain Type Modding

Posted: Fri Mar 03, 2017 10:47 pm
by parmenio
Good call - that's gotta be worth a shot

Re: Terrain Type Modding

Posted: Fri Mar 03, 2017 10:55 pm
by Jojeval
You read my mind, Yrfin! I realize that that is a safer way to go but was hoping for a more "elegant" solution. I modified the Bocage terrain type which I do not use in the scenario. Attached is a screenshot of what it looks like in the editor terrain display and also how the Terrain Type table shows the change (after some testing I decided on an initiative cap value of 6).