Lord Yanaek
Emperor
- Joined
- Aug 15, 2003
- Messages
- 1,663
Hi. After some discussion in the Strategy forum, i wanted to try and mod the animation speed of units, because i don't like how quick combat hides important informations, but don't like the long animations that much either.
Digging in the CivUP code, i found the SQL table that governs movement speed, and how to change it. Pretty basic, the table MovementRates and it has 5 columns : TotalTime, EaseIn , EaseOut, IndividualOffset and RowOffset. So far so good, works very well for fast movement vs instant moves.
However, i can't find a way to change combat speed. There is a table : ArtDefine_UnitMemberCombats with various columns (here are a few rows)
UnitMemberType MoveRadius ShortMoveRadius AttackRadius RangedAttackRadius MoveRate ShortMoveRate TurnRateMin TurnRateMax TurnFacingRateMin TurnFacingRateMax RollRateMin RollRateMax PitchRateMin PitchRateMax LOSRadiusScale TargetRadius TargetHeight HasShortRangedAttack HasLongRangedAttack HasLeftRightAttack HasStationaryMelee HasStationaryRangedAttack HasRefaceAfterCombat ReformBeforeCombat HasIndependentWeaponFacing HasOpponentTracking HasCollisionAttack AttackAltitude AltitudeDecelerationDistance OnlyTurnInMovementActions RushAttackFormation
ART_DEF_UNIT_MEMBER_ANTIAIRCRAFTGUN 1 1 1 1 1
ART_DEF_UNIT_MEMBER_ANTITANKGUN 1 1 1 1
ART_DEF_UNIT_MEMBER_ARCHER 12.0 0.699999988079071 8.0 1 1 1 1
ART_DEF_UNIT_MEMBER_ARTILLERY 1 1 1 1 1
ART_DEF_UNIT_MEMBER_ATOMICBOMB 64.0 4.800000190734863 0.4000000059604645 1.0 0 110.0
ART_DEF_UNIT_MEMBER_BATTLESHIP 1 1 0 1
ART_DEF_UNIT_MEMBER_BOMBER 64.0 7.199999809265137 0.6000000238418579 1.399999976158142 0
ART_DEF_UNIT_MEMBER_CANNON 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CARAVEL 1 1 0 1
ART_DEF_UNIT_MEMBER_CARRIER 1 1 0 1
ART_DEF_UNIT_MEMBER_CATAPULT 1 1 1 1
ART_DEF_UNIT_MEMBER_CAVALRY 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CHARIOTARCHER 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CROSSBOWMAN 12.0 0.699999988079071 8.0 1 1 1 1
ART_DEF_UNIT_MEMBER_DESTROYER 1 1 0 1
ART_DEF_UNIT_MEMBER_FIGHTER 45.0 6.400000095367432 1.0 2.0 0
ART_DEF_UNIT_MEMBER_FRIGATE 1 1 0 1
ART_DEF_UNIT_MEMBER_GUIDEDMISSILE 64.0 14.399999618530273 2.0 6.0 1.0 3.0 0 1 45.0
ART_DEF_UNIT_MEMBER_HELICOPTERGUNSHIP 1 1
ART_DEF_UNIT_MEMBER_HORSEMAN 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_INFANTRY 12.0 0.699999988079071 8.0 1 1 1
ART_DEF_UNIT_MEMBER_IRONCLAD 1 1 0 1
ART_DEF_UNIT_MEMBER_JETFIGHTER 135.0 8.0 1.0 2.0 0
ART_DEF_UNIT_MEMBER_KNIGHT 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_LANCER 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_LONGSWORDSMAN 12.0 0.699999988079071 8.0 1
ART_DEF_UNIT_MEMBER_MECH 5.0 72.0 12.0 1 1 1 1
From the CivUP code, it seems like they have been able to accelerate aircraft attacks by changing MoveRate, but when i try changing ShortMoveRate in hope that it would help with other units, i see no visible difference (whether i set it to 10* or 0.1*
)
There is also a ArtDefine_UnitMemberCombatWeapons table with some projectile speed column, but an archer has no value there
Has anyone been able to mod combat animations, or had any idea where to start looking. I searched the forums and found nothing, but that does not mean nothing can be done. CivUP already altered some of the animation speeds. It should be possible to change the remaining animations as well
Digging in the CivUP code, i found the SQL table that governs movement speed, and how to change it. Pretty basic, the table MovementRates and it has 5 columns : TotalTime, EaseIn , EaseOut, IndividualOffset and RowOffset. So far so good, works very well for fast movement vs instant moves.
However, i can't find a way to change combat speed. There is a table : ArtDefine_UnitMemberCombats with various columns (here are a few rows)
Spoiler :
ART_DEF_UNIT_MEMBER_ANTIAIRCRAFTGUN 1 1 1 1 1
ART_DEF_UNIT_MEMBER_ANTITANKGUN 1 1 1 1
ART_DEF_UNIT_MEMBER_ARCHER 12.0 0.699999988079071 8.0 1 1 1 1
ART_DEF_UNIT_MEMBER_ARTILLERY 1 1 1 1 1
ART_DEF_UNIT_MEMBER_ATOMICBOMB 64.0 4.800000190734863 0.4000000059604645 1.0 0 110.0
ART_DEF_UNIT_MEMBER_BATTLESHIP 1 1 0 1
ART_DEF_UNIT_MEMBER_BOMBER 64.0 7.199999809265137 0.6000000238418579 1.399999976158142 0
ART_DEF_UNIT_MEMBER_CANNON 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CARAVEL 1 1 0 1
ART_DEF_UNIT_MEMBER_CARRIER 1 1 0 1
ART_DEF_UNIT_MEMBER_CATAPULT 1 1 1 1
ART_DEF_UNIT_MEMBER_CAVALRY 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CHARIOTARCHER 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 1 1 1 1
ART_DEF_UNIT_MEMBER_CROSSBOWMAN 12.0 0.699999988079071 8.0 1 1 1 1
ART_DEF_UNIT_MEMBER_DESTROYER 1 1 0 1
ART_DEF_UNIT_MEMBER_FIGHTER 45.0 6.400000095367432 1.0 2.0 0
ART_DEF_UNIT_MEMBER_FRIGATE 1 1 0 1
ART_DEF_UNIT_MEMBER_GUIDEDMISSILE 64.0 14.399999618530273 2.0 6.0 1.0 3.0 0 1 45.0
ART_DEF_UNIT_MEMBER_HELICOPTERGUNSHIP 1 1
ART_DEF_UNIT_MEMBER_HORSEMAN 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_INFANTRY 12.0 0.699999988079071 8.0 1 1 1
ART_DEF_UNIT_MEMBER_IRONCLAD 1 1 0 1
ART_DEF_UNIT_MEMBER_JETFIGHTER 135.0 8.0 1.0 2.0 0
ART_DEF_UNIT_MEMBER_KNIGHT 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_LANCER 24.0 0.699999988079071 0.5 0.75 15.0 20.0 12.0 1 1 2 1 DefaultCavalry
ART_DEF_UNIT_MEMBER_LONGSWORDSMAN 12.0 0.699999988079071 8.0 1
ART_DEF_UNIT_MEMBER_MECH 5.0 72.0 12.0 1 1 1 1

There is also a ArtDefine_UnitMemberCombatWeapons table with some projectile speed column, but an archer has no value there

Has anyone been able to mod combat animations, or had any idea where to start looking. I searched the forums and found nothing, but that does not mean nothing can be done. CivUP already altered some of the animation speeds. It should be possible to change the remaining animations as well
