PDA

View Full Version : Why has my mod stopped working??!!!



AvramL
08-11-2002, 13:08
Right, I was doing a bit of modding on 96mb's old 100 years war mod and it worked fine the first time I tested it. However, after making some tweaks (including changing the map) it simply displayed the loss dialog box as soon as the battle loaded(kill French and keep Richard alive being red). So I reversed the changes i made and more, yet it still doesn't work!!
here are the files

//
// Battle description file
//

Predefined::true
Title::"Jaffa_Title"
Author::"Tim Ansell"
Rating::"Jaffa_Rating"
Description::"Jaffa_Description"
Conditions::"Jaffa_Conditions"

IntroFMV::""
OutroFMV::""

MapName::"Jaffa"
Architecture::AT_WESTERN_EUROPEAN
Terrain::LUSH
BattleType::BATTLE_TYPE_HISTORICAL
Deployement::true
Season::SUMMER
WeatherSequenceId::0

Player::"Sultan Saladin" 6 6 ARTIFICIAL "saladin" 0 true 22066 5924 0 MUSLIM_CULTURE
Player::"Richard Coeur de Lion" 5 5 LOCAL "richard" 0 false 19588 28226 180 CHRISTIAN_CULTURE

//triggers
Trigger::1, BT_GENERAL DIED, factions 5, LABEL "Keep General Alive.", INVERT_CHECKBOX
Trigger::2, BT_INCAPACITATE, factions 5, LABEL "Kill the French.", INVERT_CHECKBOX
Trigger::3, BT_INCAPACITATE, factions 6, LABEL "Don't let your army rout."

//results
Result::1, alliances 5, style DEFEAT, battle "Jaffa"
Result::2, alliances 5, style VICTORY

//groups
Group::1, PRIMARY triggers 1 result_ids 1
Group::2, PRIMARY triggers 2 result_ids 1
Group::3, PRIMARY triggers 3 result_ids 2


//
// Army description file
//

UnitStart::"Unit"
InitialLeaderName::"Richard Coeur de Lion"
IsGeneral::true
Position:: 19668 29556
Direction::180
GeneralRank::4
LeaderHonour::4
UnitMon::1
TroopType::FeudalKnights
TroopNum::100
TroopHonour::4
Columns::15
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::true
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 21347 27000
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalManAtArms
TroopNum::100
TroopHonour::2
Columns::50
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 17909 27000
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalManAtArms
TroopNum::100
TroopHonour::2
Columns::50
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 27000
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Spearmen
TroopNum::100
TroopHonour::2
Columns::50
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 21347 27501
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::longbows
TroopNum::100
TroopHonour::2
Columns::25
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::3
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 17909 28166
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::longbows
TroopNum::100
TroopHonour::2
Columns::25
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::3
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 28105
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::longbows
TroopNum::100
TroopHonour::2
Columns::25
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::3
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 24465 27000
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalSergeants
TroopNum::100
TroopHonour::2
Columns::50
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 24465 27501
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::longbows
TroopNum::100
TroopHonour::2
Columns::25
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::3
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 18508 28891
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Spearmen
TroopNum::100
TroopHonour::2
Columns::10
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 21027 29012
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalFootknights
TroopNum::100
TroopHonour::3
Columns::10
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 29556
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalKnights
TroopNum::100
TroopHonour::3
Columns::10
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 24465 29556
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalKnights
TroopNum::100
TroopHonour::3
Columns::10
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 21027 29012
Direction::180
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::FeudalManAtArms
TroopNum::100
TroopHonour::2
Columns::10
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

//
// Army description file
//

UnitStart::"knights"
InitialLeaderName::"Roger Guiscard"
IsGeneral::true
Position:: 24465 7000
//Direction::0
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::FeudalKnights
TroopNum::100
TroopHonour::4
Columns::9
CurveRadius::0
FormationType::FORMATION_WEDGE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"spearmen1"
InitialLeaderName::"Philippe de Blois"
IsGeneral::true
Position:: 19900 7000
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::FeudalSergeants
TroopNum::200
TroopHonour::2
Columns::30
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"spearmen2"
InitialLeaderName::"Thibaut des Roches"
IsGeneral::true
Position:: 24092 7000
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::Spearmen
TroopNum::200
TroopHonour::2
Columns::30
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"archers1"
InitialLeaderName::"Louis de Brienne"
IsGeneral::true
Position:: 24305 5000
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::archers
TroopNum::100
TroopHonour::1
Columns::20
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"archers2"
InitialLeaderName::"Etienne de Bourbon"
IsGeneral::true
Position::21996 5000
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::archers
TroopNum::100
TroopHonour::2
Columns::20
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"enemy_infantry"

InitialLeaderName::"Andronicus Provencani"
IsGeneral::false
Position:: 19900 5500
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::Spearmen
TroopNum::200
TroopHonour::1
Columns::20
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"enemy_infantry"

InitialLeaderName::"Andronicus Provencani"
IsGeneral::false
Position:: 24092 5500
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::20
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"enemy_infantry"

InitialLeaderName::"Andronicus Provencani"
IsGeneral::false
Position:: 24092 6250
Direction::0
GeneralRank::4
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::FeudalManAtArms
TroopNum::200
TroopHonour::2
Columns::40
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"enemy_infantry"

InitialLeaderName::"Andronicus Provencani"
IsGeneral::false
Position:: 19900 6250
Direction::0
GeneralRank::4
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::40
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::


UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 5500
Direction::0
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::40
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 24465 5500
Direction::0
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::60
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 24465 5500
Direction::0
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::60
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 5500
Direction::0
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::40
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

UnitStart::"spearmen1"
InitialLeaderName::"Philippe de Blois"
IsGeneral::true
Position:: 19900 7000
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::FeudalSergeants
TroopNum::200
TroopHonour::2
Columns::30
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

UnitStart::"Unit"
InitialLeaderName::""
IsGeneral::false
Position:: 14591 5500
Direction::0
GeneralRank::1
LeaderHonour::0
UnitMon::1
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::40
CurveRadius::1
FormationType::FORMATION_CLOSE
MeleeMode::ENGAGE_AT_WILL
FatigueLevel::FRESH
HoldPosition::true
GeneralIsDaimyo::false
ArmourLevel::2
WeaponLevel::2
UnitEnd::

InitialLeaderName::"Andronicus Provencani"
IsGeneral::false
Position:: 24092 5500
Direction::0
GeneralRank::1
LeaderHonour::10 //?????
UnitMon::1 //?????
TroopType::Peasants
TroopNum::200
TroopHonour::3
Columns::20
CurveRadius::0
FormationType::FORMATION_CLOSE
//MeleeMode::ENGAGE_AT_WILL
//FatigueLevel::FRESH //?????
HoldPosition::true //????
UnitEnd::

barocca
08-11-2002, 13:35
they look fine from here,
zip your files up and email them to
barocca_x@hotmail.com
and i'll test the files.
http://www.totalwar.org/ubb/smile.gif

AvramL
08-11-2002, 13:38
Thanks, I'll send them

barocca
08-11-2002, 17:42
Avram,
the very last unit in the saladin.adf file is missing the unit start line!

UnitStart::"Unit"

(email sent as well)
simply edit this line in at the beginning of the last unit!

everyhting else wotrks fine
http://www.totalwar.org/ubb/smile.gif

AvramL
08-12-2002, 00:38
It Works!!!!
I must have copied the unit text with the unit start missing and then pasted it. Goes to show how a simple little text line can be catastrophic when missing. Thanks a lot for your help http://www.totalwar.org/ubb/smile.gif