View Full Version : Modding Mountains
Colonel Fatlad
08-23-2003, 09:36
Hello everyone, I'm a new poster here so please play nice.
I've been playing M:TW since it came out and have finally got around to the idea of modding the game for myself. I am in the early stages of producing a mod based on a new map and have been reading all the guides available on this forum, but something has come up that doesn't seem to have been covered before.
The mod will be set on a map with a small geographical area and want to make a mountain range impassable except at a mountain pass. Since the mod will not include deep-sea ships, my original intention was to designate the mountain zones as deep sea and set up the pass in the same way as the links between Wessex/Flanders and Denmark/Sweden.
What I would like to know is if this is possible and whether there are any unforseen problems with this approach. Any advice about how to go about it would also be appreciated.
Cheers. http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif
Brother Derfel
08-23-2003, 10:39
Hmmm, how about making your mountain range into a region like The Sahara so that it is impassible, then making your mountain pass another region altogether?
I am not that good at modding so I could not tell you how to do this, but someone here will be able to.
Also if you make it a sea region, you have the risk of storm events hapening there which won't look very good.
Welcome to the Org http://www.totalwar.org/forum/non-cgi/emoticons/wave.gif http://www.totalwar.org/forum/non-cgi/emoticons/pat.gif
Gregoshi
08-24-2003, 05:36
Welcome Fatlad. http://www.totalwar.org/forum/non-cgi/emoticons/wave.gif We'll be easy on you. That's a good issue you raise. Let's see what the experts say.
the Black Prince
08-24-2003, 10:20
first - welcome to the Org from a frequent visitor to the walled city oh the number of times i've walked under the east gate
second
its actually easier than you think.
what you want is to edit the border info for the regions.
example:
lets say you want to make the pyrennes impassable except going through navarre to aquitaine - your mountain pass.
//========================================
//How do the regions link together?
//Region in question first, followed
//by its neighbours.
//Regions can have a maximum number of
//15 neighbours. Any more and Medieval
//will crash.
//========================================
SetNeighbours:: ID_NAVARRE ID_CASTILE ID_ARAGON ID_AQUITAINE ID_COSTA_VERDE ID_BAY_OF_BISCAY
SetNeighbours:: ID_ARAGON ID_CASTILE ID_VALENCIA ID_TOULOUSE ID_AQUITAINE ID_NAVARRE ID_GULF_LIONS
find this part of your startpos file (early.txt etc) and delete the extra provinces. so you would delete aquitaine and toulouse from aragon's neighbour list, and delete aragon from toulouse and aquitaines neighbour list. then the only way to cross into iberia from france is to go from aquitaine into navarre.
you have to remember to delete the neighbours from both sides - otherwise you could go from aragon to toulouse, but not go back again in this way its also possible to add neighbours, i.e add ireland to wales list, so you can invade without ships - just so long as you remember to add wales to irelands list so you can get back again remember the note at the start of this section - no more than 15 neighbours or the game will crash.
the other way would be to create two regions which cannot be entered, and in between your small mountain pass as a seperate region - as brother derfel describes
to set a region as unplayable i think you have to set region ownership
//disabled lands
//==============
//SetRegionOwner:: ID_AFRICA FN_NONE
under where you set which factions own a province
Colonel Fatlad
08-24-2003, 15:35
Thanks for the replies people http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif .
the Black Prince - this is exactly what I needed, so thank you very much. I had originally set different mountain regions due to the small scale of the map, but I think I'll change this now. It'll take a bit of extra work, but your idea has got to be better in the long run.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.