[en] - Modding Corner > Coding

Changing the damage on towers

<< < (2/3) > >>

Prinz von Dol Amroth:
Copy your map.ini and write the error message.

Titan:
Here is the code I used in the .ini file:

--- Code: ---ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower2
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
--- Ende Code ---
This is what the error message says:
An upgrade mask references Upgrade_Upgrade_AllFacti onUpgrade, which is not an upgrade

Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.

Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.

Error parsing field 'TriggeredBy' in block 'Object' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini', line 8.

Error parsing INI block '         Triggered by' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini'.
7 adresses:
(unknown)(0): game.dat+239838 Debug::PostStaticInit+3390
(unknown)(0): game.dat+2334561 StringBase<char>::~StringBase<char>+250781
(unknown)(0): game.dat+11454 operator<<<char>2072
(unknown)(0): game.dat+6541831 Xfer::operator==+119943
(unknown)(0): kernell32.dll+78730 BaseThreadInitThunk+18
(unknown)(0): ntdll.dll+235778 RtInitializeExceptionCha in+99
(unknown)(0): ntdll.dll+235733 RtInitializeExceptionCha in+54

Because of this severety the game will now exit.

Prinz von Dol Amroth:
You need the ModifierList only once.
And replace, Upgrade_Upgrade_AllFacti onUpgrade witch Upgrade_AllFactionUpgrad e. Sry, this was my failure.

Titan:
Now I get another error message, almost identical:

Unknown block 'Modifier'.

Error parsing INI block 'Modifier' in file 'c:\users\****\appdata\roaming\my the lord of the rings, the rise of the witch king files\maps\tarnost\map.ini'.
7 adresses:
(unknown)(0): game.dat+239838 Debug::PostStaticInit+3390
(unknown)(0): game.dat+2334561 StringBase<char>::~StringBase<char>+250781
(unknown)(0): game.dat+11454 operator<<<char>2072
(unknown)(0): game.dat+6541831 Xfer::operator==+119943
(unknown)(0): kernell32.dll+78730 BaseThreadInitThunk+18
(unknown)(0): ntdll.dll+235778 RtInitializeExceptionCha in+99
(unknown)(0): ntdll.dll+235733 RtInitializeExceptionCha in+54

Because of this severety the game will now exit.

EDIT: The updated map.ini file I made:

--- Code: ---ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower2
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
--- Ende Code ---

Prinz von Dol Amroth:

--- Code: ---ModifierList MyDamageBonus
Modifier = DAMAGE_MULT 50% //100% change nothing. 0% is no Damage. 200% is double Damage
Duration = 0 //Always
End
Object AmonSulTower
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
Object AmonSulTower2
AddModule
Behavior = AttributeModifierUpgrade ModuleTag_PvDAiscool
TriggeredBy = Upgrade_AllFactionUpgrade //Always
AttributeModifier = MyDamageBonus
End
End
End
--- Ende Code ---

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln