PDA

View Full Version : Ahhhhhhhhh.



NagatsukaShumi
09-26-2002, 02:00
I've spent three hours doing this, and now it won't show up (Ok it shows up, but the map just goes blank, you click continue and you can't choose anybody.)

Here's what my text files looks like from where changes have been made.

//========================================
//Active Factions
//which factions are to appear in the game
//and which of these factions are playable
//========================================
SetActiveFaction:: FN_ALMOHAD FT_MAJOR
SetActiveFaction:: FN_BYZANTINE FT_MAJOR
SetActiveFaction:: FN_EGYPTIAN FT_MAJOR
SetActiveFaction:: FN_ENGLISH FT_MAJOR
SetActiveFaction:: FN_FRENCH FT_MAJOR
SetActiveFaction:: FN_ITALIAN FT_MAJOR
SetActiveFaction:: FN_POLISH FT_MAJOR
SetActiveFaction:: FN_SPANISH FT_MAJOR
SetActiveFaction:: FN_TURKISH FT_MAJOR
SetActiveFaction:: FN_DANISH FT_MAJOR

SetActiveFaction:: FN_HUNGARIAN FT_MINOR
SetActiveFaction:: FN_NOVGOROD FT_MINOR
SetActiveFaction:: FN_PAPIST FT_MINOR
SetActiveFaction:: FN_SICILIAN FT_MINOR
SetActiveFaction:: FN_SWISS FT_MINOR

SetActiveFaction:: FN_ARAGONESE FT_MINOR

//========================================
//Starting Treasury
//Sets the amount of cash available to
//each faction at the start of the game.
//you can specify 4 values for the four
//difficulty levels in the order EASY,
//NORMAL, HARD and EXPERT. Specify only one
//value to start all difficulty levels with
//the same size treasury.
//If you don't set this, the default
//is 2000 florins for all difficulty levels.
//========================================
SetTreasury:: FN_ALMOHAD 10000 8000 6000 4000
SetTreasury:: FN_BYZANTINE 10000 8000 6000 4000
SetTreasury:: FN_EGYPTIAN 10000 8000 6000 4000
SetTreasury:: FN_ENGLISH 10000 8000 6000 4000
SetTreasury:: FN_FRENCH 10000 8000 6000 4000
SetTreasury:: FN_ITALIAN 10000 8000 6000 4000
SetTreasury:: FN_POLISH 10000 8000 6000 4000
SetTreasury:: FN_SPANISH 10000 8000 6000 4000
SetTreasury:: FN_TURKISH 10000 8000 6000 4000

SetTreasury:: FN_HUNGARIAN 10000 8000 6000 4000
SetTreasury:: FN_NOVGOROD 10000 8000 6000 4000
SetTreasury:: FN_PAPIST 10000 8000 6000 4000
SetTreasury:: FN_SICILIAN 10000 8000 6000 4000
SetTreasury:: FN_DANISH 10000 8000 6000 4000
SetTreasury:: FN_ARAGONESE 10000 8000 6000 4000

//========================================
//Faction Cultures
//The culture system that each faction
//adheres to
//========================================
SetCulture:: FN_ALMOHAD MUSLIM_CULTURE
SetCulture:: FN_BYZANTINE ORTHODOX_CULTURE
SetCulture:: FN_DANISH CATHOLIC_CULTURE
SetCulture:: FN_EGYPTIAN MUSLIM_CULTURE
SetCulture:: FN_ENGLISH CATHOLIC_CULTURE
SetCulture:: FN_FRENCH CATHOLIC_CULTURE
SetCulture:: FN_ITALIAN CATHOLIC_CULTURE
SetCulture:: FN_POLISH CATHOLIC_CULTURE
SetCulture:: FN_RUSSIAN ORTHODOX_CULTURE
SetCulture:: FN_SPANISH CATHOLIC_CULTURE
SetCulture:: FN_TURKISH MUSLIM_CULTURE

SetCulture:: FN_ARAGONESE CATHOLIC_CULTURE
SetCulture:: FN_BURGUNDIAN CATHOLIC_CULTURE
SetCulture:: FN_GOLDEN_HORDE PAGAN_CULTURE
SetCulture:: FN_HUNGARIAN CATHOLIC_CULTURE
SetCulture:: FN_NOVGOROD ORTHODOX_CULTURE
SetCulture:: FN_PAPIST CATHOLIC_CULTURE
SetCulture:: FN_SICILIAN CATHOLIC_CULTURE
SetCulture:: FN_SWISS CATHOLIC_CULTURE

//========================================
//Faction Religions
//The main faith of each of the factions
//========================================
SetReligion:: FN_ALMOHAD REL_ISLAMIC
SetReligion:: FN_BYZANTINE REL_ORTHODOX
SetReligion:: FN_DANISH REL_CATHOLIC
SetReligion:: FN_EGYPTIAN REL_ISLAMIC
SetReligion:: FN_ENGLISH REL_CATHOLIC
SetReligion:: FN_FRENCH REL_CATHOLIC
SetReligion:: FN_ITALIAN REL_CATHOLIC
SetReligion:: FN_POLISH REL_CATHOLIC
SetReligion:: FN_RUSSIAN REL_ORTHODOX
SetReligion:: FN_SPANISH REL_CATHOLIC
SetReligion:: FN_TURKISH REL_ISLAMIC

SetReligion:: FN_BURGUNDIAN REL_CATHOLIC
SetReligion:: FN_ARAGONESE REL_CATHOLIC
SetReligion:: FN_GOLDEN_HORDE REL_PAGAN
SetReligion:: FN_HUNGARIAN REL_CATHOLIC
SetReligion:: FN_NOVGOROD REL_ORTHODOX
SetReligion:: FN_PAPIST REL_CATHOLIC
SetReligion:: FN_SICILIAN REL_CATHOLIC
SetReligion:: FN_SWISS REL_CATHOLIC


//========================================
//Faction Behaviour
//This is the default behaviour of each
//faction, various in game factor will
//alter it. Rebel are always set to REBEL
//these are the available options
//also note that these are related to the
//product spreadsheet
//CATHOLIC_EXPANSIONIST_CRUSADER
//CATHOLIC_EXPANSIONIST
//CATHOLIC_NAVAL_EXPANSIONIST
//CATHOLIC_ISOLATIONIST
//CATHOLIC_TRADER
//CATHOLIC_CRUSADER_TRADER
//CATHOLIC_DEFENSIVE_CRUSADER
//CATHOLIC_DEFENSIVE
//ORTHODOX_EXPANSIONIST
//ORTHODOX_STAGNANT
//ORTHODOX_DEFENSIVE
//MUSLIM_EXPANSIONIST
//MUSLIM_PEACEFUL
//MUSLIM_DEVOUT
//POVERTY_STRICKEN
//DESPERATE_DEFENCE
//CLOSE_TO_SUPPORT_LIMIT
//POPE
//BARBARIAN_RAIDER
//REBELS
//========================================
SetBehaviour:: FN_ALMOHAD MUSLIM_PEACEFUL
SetBehaviour:: FN_BYZANTINE ORTHODOX_STAGNANT
SetBehaviour:: FN_DANISH CATHOLIC_EXPANSIONIST
SetBehaviour:: FN_EGYPTIAN MUSLIM_EXPANSIONIST
SetBehaviour:: FN_ENGLISH CATHOLIC_CRUSADER_TRADER
SetBehaviour:: FN_FRENCH CATHOLIC_EXPANSIONIST_CRUSADER
SetBehaviour:: FN_ITALIAN CATHOLIC_TRADER
SetBehaviour:: FN_POLISH CATHOLIC_DEFENSIVE
SetBehaviour:: FN_RUSSIAN ORTHODOX_EXPANSIONIST
SetBehaviour:: FN_SPANISH CATHOLIC_DEFENSIVE_CRUSADER
SetBehaviour:: FN_TURKISH MUSLIM_EXPANSIONIST
SetBehaviour:: FN_ARAGONESE CATHOLIC_DEFENSIVE
SetBehaviour:: FN_BURGUNDIAN CATHOLIC_DEFENSIVE
SetBehaviour:: FN_GOLDEN_HORDE BARBARIAN_RAIDER
SetBehaviour:: FN_HUNGARIAN CATHOLIC_DEFENSIVE
SetBehaviour:: FN_NOVGOROD ORTHODOX_EXPANSIONIST
SetBehaviour:: FN_PAPIST POPE
SetBehaviour:: FN_SICILIAN CATHOLIC_NAVAL_EXPANSIONIST
SetBehaviour:: FN_SWISS CATHOLIC_ISOLATIONIST

//========================================
//Faction Shields
//the filenames of the large and small
//shield images that each faction uses.
//These should be BIF images and stored in
//"campmap/shields"
//========================================

//faction name, large image name, small image name

SetShieldImage:: FN_ALMOHAD "Almohad_lge" "Almohad_sml"
SetShieldImage:: FN_BYZANTINE "Byzantium_lge" "Byzantium_sml"
SetShieldImage:: FN_DANISH "Denmark_lge" "Denmark_sml"
SetShieldImage:: FN_EGYPTIAN "Egypt_lge" "Egypt_sml"
SetShieldImage:: FN_ENGLISH "England_lge" "England_sml"
SetShieldImage:: FN_FRENCH "France_lge" "France_sml"
SetShieldImage:: FN_ITALIAN "Italy_lge" "Italy_sml"
SetShieldImage:: FN_POLISH "Poland_lge" "Poland_sml"
SetShieldImage:: FN_RUSSIAN "Russian_lge" "Russian_sml"
SetShieldImage:: FN_SPANISH "Spain_lge" "Spain_sml"
SetShieldImage:: FN_TURKISH "Turkey_lge" "Turkey_sml"

SetShieldImage:: FN_ARAGONESE "Aragon_lge" "Aragon_sml"
SetShieldImage:: FN_BURGUNDIAN "Burgundy_lge" "Burgundy_sml"
SetShieldImage:: FN_GOLDEN_HORDE "GoldenHorde_lge" "GoldenHorde_sml"
SetShieldImage:: FN_HUNGARIAN "Hungary_lge" "Hungary_sml"
SetShieldImage:: FN_NOVGOROD "Novgorod_lge" "Novgorod_sml"
SetShieldImage:: FN_PAPIST "Papal_lge" "Papal_sml"
SetShieldImage:: FN_SICILIAN "Sicily_lge" "Sicily_sml"
SetShieldImage:: FN_SWISS "Swiss_lge" "Swiss_sml"

SetShieldImage:: FN_REBEL "default_lge" "default_sml"

//========================================
//Region Owners
//How the regions are divided up. Specify
//an owner, or control is given over to
//rebels by default
//NOTE: Sea regions shouldn't be owned.
//========================================

//major faction lands
//===================
SetRegionOwner:: ID_CORDOBA FN_ALMOHAD
SetRegionOwner:: ID_GRANADA FN_ALMOHAD

SetRegionOwner:: ID_ANATOLIA FN_BYZANTINE
SetRegionOwner:: ID_BULGARIA FN_BYZANTINE
SetRegionOwner:: ID_CONSTANTINOPLE FN_BYZANTINE
SetRegionOwner:: ID_CRETE FN_BYZANTINE
SetRegionOwner:: ID_GEORGIA FN_BYZANTINE
SetRegionOwner:: ID_GREECE FN_BYZANTINE
SetRegionOwner:: ID_LESSER_ARMENIA FN_BYZANTINE
SetRegionOwner:: ID_NICAEA FN_BYZANTINE
SetRegionOwner:: ID_RHODES FN_BYZANTINE
SetRegionOwner:: ID_TREBIZOND FN_BYZANTINE

SetRegionOwner:: ID_ANTIOCH FN_EGYPTIAN

SetRegionOwner:: ID_MERCIA FN_ITALIAN
SetRegionOwner:: ID_NORMANDY FN_ITALIAN
SetRegionOwner:: ID_NORTH_UMBRIA FN_ITALIAN
SetRegionOwner:: ID_WESSEX FN_ITALIAN
SetRegionOwner:: ID_WALES FN_ITALIAN
SetRegionOwner:: ID_SCOTLAND FN_ITALIAN
SetRegionOwner:: ID_IRELAND FN_ITALIAN
SetRegionOwner:: ID_CYPRUS FN_ITALIAN
SetRegionOwner:: ID_ARABIA FN_ITALIAN
SetRegionOwner:: ID_EGYPT FN_ITALIAN
SetRegionOwner:: ID_JERUSALEM FN_ITALIAN
SetRegionOwner:: ID_SINAI FN_ITALIAN

SetRegionOwner:: ID_ANJOU FN_FRENCH
SetRegionOwner:: ID_AQUITAINE FN_FRENCH
SetRegionOwner:: ID_NORMANDY FN_FRENCH
SetRegionOwner:: ID_BRITTANY FN_FRENCH
SetRegionOwner:: ID_ILE_DE_FRANCE FN_FRENCH
SetRegionOwner:: ID_TOULOUSE FN_FRENCH
SetRegionOwner:: ID_PROVENCE FN_FRENCH
SetRegionOwner:: ID_BURGUNDY FN_FRENCH
SetRegionOwner:: ID_CORSICA FN_FRENCH
SetRegionOwner:: ID_MOROCCO FN_FRENCH
SetRegionOwner:: ID_TUNISIA FN_FRENCH
SetRegionOwner:: ID_ALGERIA FN_FRENCH
SetRegionOwner:: ID_TRIPOLI FN_FRENCH
SetRegionOwner:: ID_SYRIA FN_FRENCH
SetRegionOwner:: ID_EDESSA FN_FRENCH

SetRegionOwner:: ID_TUSCANY FN_TURKISH
SetRegionOwner:: ID_GENOA FN_TURKISH
SetRegionOwner:: ID_MILAN FN_TURKISH
SetRegionOwner:: ID_SARDINIA FN_TURKISH
SetRegionOwner:: ID_VENICE FN_TURKISH
SetRegionOwner:: ID_NAPLES FN_TURKISH
SetRegionOwner:: ID_PAPAL_STATES FN_TURKISH
SetRegionOwner:: ID_ROME FN_TURKISH
SetRegionOwner:: ID_SERBIA FN_TURKISH
SetRegionOwner:: ID_LIBYA FN_TURKISH

SetRegionOwner:: ID_POLAND FN_POLISH
SetRegionOwner:: ID_SILESIA FN_POLISH
SetRegionOwner:: ID_POMERNIA FN_POLISH
SetRegionOwner:: ID_CHERNIGOV FN_POLISH

SetRegionOwner:: ID_CASTILE FN_SPANISH
SetRegionOwner:: ID_LEON FN_ENGLISH

SetRegionOwner:: ID_ARMENIA FN_PAPIST
SetRegionOwner:: ID_RUM FN_PAPIST

SetRegionOwner:: ID_LORRAINE FN_SICILIAN
SetRegionOwner:: ID_SWABIA FN_SICILIAN
SetRegionOwner:: ID_FREISLAND FN_SICILIAN
SetRegionOwner:: ID_BAVARIA FN_SICILIAN
SetRegionOwner:: ID_FRANCONIA FN_SICILIAN
SetRegionOwner:: ID_SAXONY FN_SICILIAN
SetRegionOwner:: ID_PRUSSIA FN_SICILIAN
SetRegionOwner:: ID_BOHEMIA FN_SICILIAN
SetRegionOwner:: ID_BRANDENBURG FN_SICILIAN

//minor faction lands
//===================
SetRegionOwner:: ID_CROATIA FN_HUNGARIAN
SetRegionOwner:: ID_HUNGARY FN_HUNGARIAN
SetRegionOwner:: ID_CARPATHIA FN_HUNGARIAN

SetRegionOwner:: ID_NOVGOROD FN_NOVGOROD

SetRegionOwner:: ID_ARAGON FN_ARAGONESE
SetRegionOwner:: ID_DENMARK FN_DANISH

SetRegionOwner:: ID_SWITZERLAND FN_SWISS

//rebel lands
//===========

//SetRegionOwner:: ID_GOLDEN_KHANATE Cumans
//SetRegionOwner:: ID_VOLHYNIA Cumans
//SetRegionOwner:: ID_FINLAND Finns

//SetRegionOwner:: ID_KIEV Khazars
//SetRegionOwner:: ID_LITHUANIA Lithuanians
//SetRegionOwner:: ID_LIVONIA Livs
//SetRegionOwner:: ID_NORWAY Norse
//SetRegionOwner:: ID_NAVARRE Pamplonans
//SetRegionOwner:: ID_PORTUGAL Portuguese
//SetRegionOwner:: ID_MUSCOVY Rurikids
//SetRegionOwner:: ID_RYAZAN Slavs
//SetRegionOwner:: ID_SWEDEN Swedes
//SetRegionOwner:: ID_WALLACHIA Cumans
//SetRegionOwner:: ID_MOLDAVIA Turkics

Can anyone see something wrong with this?

------------------
Power to the Sultan!
-Clan Seljuk

I don't know Akech, can't trust Mithrandir with the newbies, he may try and create a Miny Mith.-NagatsukaShumi

Wellington
09-26-2002, 02:23
First problem is you've activated the Swiss as a playable faction (SetActiveFaction) but given them no money (SetTreasury)!

Therefore you have an invalid faction defined in the script and the script validation that occurs after entering 'New Campaign' will prevent the script being accessable in the 'Campaign Selection' menu.

NagatsukaShumi
09-26-2002, 02:32
Oh. That's it? My god, your a life saver dude.

------------------
Power to the Sultan!
-Clan Seljuk

I don't know Akech, can't trust Mithrandir with the newbies, he may try and create a Miny Mith.-NagatsukaShumi

NagatsukaShumi
09-26-2002, 02:40
Nope, doesn't work still.

------------------
Power to the Sultan!
-Clan Seljuk

I don't know Akech, can't trust Mithrandir with the newbies, he may try and create a Miny Mith.-NagatsukaShumi

giskard
09-26-2002, 03:19
SetCulture:: FN_BURGUNDIAN CATHOLIC_CULTURE is listed but i didnt see any regions assigned them. I doubt this would be a problem if they are not active but I did have serious problems with them and the swiss when i tried to activate them in pagan dawm. Other minor factions worked ok though.

Try removing them both and testing the mod again.

Giskard

Wellington
09-26-2002, 04:08
NagatsukaShumi,

If you've amended the factions then you MUST have changed other parts of the script that you ar'nt showing us.

What script did you base yours on (EARLY, HIGH, LATE)? What have you changed re- factions ?

Check the 'SetStartLeader', 'PlaceLeader', 'AddHeir' entries for any new factions you've enabled.

Have you specified 'cn_predefined::false' ?

If you still can't suss it post the WHOLE script and I'll take a look.

(BTW: if your changing factions in a script its a lot easier to check if you ensure all the different parameters pertaining to factions retain the same order. I see yours don't which suggest's you've been chopping it about a bit!)

USMCNJ
09-26-2002, 06:18
i had the same problem in a bunch of my MODS. This is most often cause byt the troops or building settings in the region. Try to erase all the troops, and then put them back one nation at the time. If that doesn't work try doing the same for buildings.
From what i noticed this isn't because you have muslim units/buildings on cathlic land (that's what i thought it was at first). it;s just a random thing.

spmetla
09-27-2002, 00:22
It;s pretty weird, in some laces your allowed to place units but others no.
I've had the the mod not work because I deleted a building in constantiople, or because i moved the leader somewhere.

Stupid illogical computers.

------------------
"samishika wa nai shitte irukara saigo wa itsumo hitori to"

"I'm not lonely Because I know I'll be Alone at the end"

email me at: Luftwaffle@mad.scientist.com

NagatsukaShumi
09-27-2002, 00:48
It works now, re-started it.

------------------
Power to the Sultan!
-Clan Seljuk

I don't know Akech, can't trust Mithrandir with the newbies, he may try and create a Miny Mith.-NagatsukaShumi

Target
09-27-2002, 03:35
you must make sure that, when adding buildings and units to provinces, that the units' and provinces' culture matches up. For example, you can't put an islamic unit into a non-islamic povince without resetting it's culture to that of the owner of the province (there are a few existing examples in the current startpos files with rebel factions), and you can't place islamic buildings or agents into non-islamic provinces at all.

------------------
"i even suspect Target is coming here to hype things up."
MagyarKhans Cham