Log in

View Full Version : How do you lock provinces?



Iustinus
08-09-2005, 18:17
This may sound wierd,
but how do you make provinces so they can't be used or invaded? I'm creating a campaign where about half the provinces on a map shouldn't be used (it's historically inaccurate and will mess everything up.)
How do I 'lock' them the way Sahara was in the old MTW map?
Thanks,
Justin

Knight Templar
08-12-2005, 09:31
I think you should go to campmap\startpos folder and open early.txt (or high or late). Find section "SetNeighbours". Find the province you want to lock, Crimea for example. So, go to the line

SetNeighbours:: ID_CRIMEA ID_KIEV ID_KHAZAR ID_BLACK_SEA

The first name (ID_CRIMEA) is province, the other three are its neigbours. So, delete ID_KIEV ID_KHAZAR ID_BLACK_SEA from that line. Now you can't move armies from Crimea to Khazar, Kiev or by Black sea. However, you can still move armies to Crimea, so find lines for Khazar, Kiev and Black sea and delete Crimea from their list of neighbours.

I hope it will help.

Iustinus
08-12-2005, 14:50
Thanks so much.
I thought this was how to do it, I had originally deleted the declareprovince provinces I didn't want, but this caused a ctd.
Thanks,
Justin

EatYerGreens
10-10-2005, 04:22
You know the thing where you click a province to highlight it, then hover the cursor over neighbour provinces to see the terrain type for battling across the border?

Will this data have to be amended too?

Will it trigger a crash if the user attempts this but the borders have been closed off in this way, or is it totally okay?

Kekvit Irae
10-19-2005, 16:37
REM out (Put // in front of the lines) the following lines for the province you want to lock. I'm using Rome as an example.


//SetNeighbours:: ID_ROME ID_NAPLES ID_PAPAL_STATES ID_TUSCANY ID_TYRRHENIAN_SEA

//SetBorderInfo:: ID_ROME ID_TUSCANY 13864 15672 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER
//SetBorderInfo:: ID_ROME ID_PAPAL_STATES 14432 15912 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER
//SetBorderInfo:: ID_NAPLES ID_ROME 14824 16472 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER
//SetBorderInfo:: ID_PAPAL_STATES ID_ROME 14248 15984 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER
//SetBorderInfo:: ID_TUSCANY ID_ROME 13904 15808 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER
//SetBorderInfo:: ID_TYRRHENIAN_SEA ID_ROME 14128 16400 0 ARID AT_SOUTHERN_EUROPEAN COAST HILLY NO_RIVER
//SetBorderInfo:: ID_ROME ID_NAPLES 15064 16456 0 ARID AT_SOUTHERN_EUROPEAN INLAND HILLY NO_RIVER

//SetAttributes:: ID_ROME "Rome" 0 CATHOLIC_CULTURE ARID AT_SOUTHERN_EUROPEAN -1 400 "Rome Castle_xzy" INLAND HILLY NO_RIVER TRUE

Modify the following lines to remove ID_ROME


SetNeighbours:: ID_TUSCANY ID_GENOA ID_ROME ID_PAPAL_STATES ID_VENICE ID_MILAN ID_LIGURIAN_SEA ID_TYRRHENIAN_SEA
SetNeighbours:: ID_PAPAL_STATES ID_TUSCANY ID_ROME ID_NAPLES ID_VENICE ID_ADRIATIC_OCEAN //SetNeighbours:: ID_ROME ID_NAPLES ID_PAPAL_STATES ID_TUSCANY ID_TYRRHENIAN_SEA
SetNeighbours:: ID_NAPLES ID_ROME ID_SICILY ID_PAPAL_STATES ID_ADRIATIC_OCEAN ID_TYRRHENIAN_SEA ID_STRAITS_SICILY ID_IONIAN_SEA
SetNeighbours:: ID_TYRRHENIAN_SEA ID_TUSCANY ID_ROME ID_NAPLES ID_SARDINIA ID_CORSICA ID_STRAITS_SICILY ID_WESTERN_MED ID_LIGURIAN_SEA

Rome should now no longer be selectable, much less eligable to invade.

I also removed all units from the region. It works fine with the faction leader having Rome as a starting position. If you remove Papal States from FN_PAPIST, then you will effectively isolate the Pope in Rome. Just remember that this will be a challenge for Muslim and Orthodox factions, as they will have no way to "negotiate" a truce to a Crusade except by invading the province with the Chapter House.

Knight Templar
10-20-2005, 21:01
You know the thing where you click a province to highlight it, then hover the cursor over neighbour provinces to see the terrain type for battling across the border?

Will this data have to be amended too?

Will it trigger a crash if the user attempts this but the borders have been closed off in this way, or is it totally okay?

I'm not sure, but I think there should be no problems.

Kekvit Irae
10-20-2005, 23:42
If you follow my instructions above, there is no possible way to highlight the province, therefor there is no need to worry about hovering your mouse over for invasion info, because it's not there.