Results 1 to 7 of 7

Thread: How do you lock provinces?

  1. #1
    Member Member Iustinus's Avatar
    Join Date
    Feb 2005
    Location
    Tachkanik, Mahikanitakw, New York
    Posts
    92

    Default How do you lock provinces?

    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
    Awen ha ni?

  2. #2
    Member Member Knight Templar's Avatar
    Join Date
    Jun 2005
    Location
    Zagreb, Croatia
    Posts
    362

    Default Re: How do you lock provinces?

    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.

  3. #3
    Member Member Iustinus's Avatar
    Join Date
    Feb 2005
    Location
    Tachkanik, Mahikanitakw, New York
    Posts
    92

    Default Re: How do you lock provinces?

    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
    Awen ha ni?

  4. #4
    The hair proves it... Senior Member EatYerGreens's Avatar
    Join Date
    Aug 2004
    Location
    Above the greengrocer's
    Posts
    851

    Default Re: How do you lock provinces?

    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?

    EYG

    ________________________
             

  5. #5
    Robot Unicorn Member Kekvit Irae's Avatar
    Join Date
    May 2003
    Location
    Alabama
    Posts
    3,758

    Default Re: How do you lock provinces?

    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.

    Code:
    //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

    Code:
    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.

  6. #6
    Member Member Knight Templar's Avatar
    Join Date
    Jun 2005
    Location
    Zagreb, Croatia
    Posts
    362

    Default Re: How do you lock provinces?

    Quote Originally Posted by EatYerGreens
    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.

  7. #7
    Robot Unicorn Member Kekvit Irae's Avatar
    Join Date
    May 2003
    Location
    Alabama
    Posts
    3,758

    Default Re: How do you lock provinces?

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO