Need help from the Experts please
Update to my help request
Hey all,
OK HERE IS WHERE I NEED THE HELP, WITH THE CURRENT SYNTAX BELOW I CAN RESEARCH THE CANNON, BUILD THE CANNON, TARGET THE DESIRED PLANET, THE CANNON FIRES AND I SEE THE MISSILE GOING BUT WHEN IT HITS THE TARGET THE GAME CRASHES.
This is a big inprovement so far, before the game wouldnt even load ![]()
Below are all the files involved in the process, from top down in line with the game usage, if you can see my error I would love the help and will mention it in my mod.....THANKS ![]()
FILE: ABILITYTECHORBITALCANNON.ENTITY
TXT
entityType "Ability"
buffInstantActionType "ApplyTargettedBuffToSelfNoRange"
instantActionTriggerType "AlwaysPerform"
buffType "BuffTechOrbitalCannon"
targetFilter
numOwnerships 1
ownership "Enemy"
numObjects 1
object "Planet"
numConstraints 1
constraint "IsExplored"
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName ""
largeEffectName ""
soundID ""
needsToFaceTarget TRUE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 1
levelSourceType "ResearchWithoutBase"
improveSourceResearchSubject "RESEARCHSUBJECT_PLANETMODULEACCESS_CANNONTECH"
aiUseTime "Anytime"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
isPassive FALSE
antiMatterCost
Level:0 200.000000
Level:1 0.000000
Level:2 0.000000
cooldownTime
Level:0 300.000000
Level:1 0.000000
Level:2 0.000000
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_TECHORBITALCANNON_NAME"
descStringID "IDS_ABILITY_TECHORBITALCANNON_DESC"
hudIcon "HUDICON_ABILITY_TECHORBITALCANNON"
smallHudIcon "HUDICON_ABILITY_TECHORBITALCANNON"
infoCardIcon ""
-------------------------------------------------------
FILE: BUFFTECHORBITALCANNON.ENTITY
TXT
entityType "Buff"
onReapplyDuplicateType "StackNewBuff"
buffExclusivityForAIType "NotExclusive"
isInterruptable TRUE
isChannelling TRUE
numInstantActions 2
instantAction
buffInstantActionType "PlayAttachedEffect"
instantActionTriggerType "OnDelay"
delayTime 0.000000
effectInfo
effectAttachInfo
attachType "Ability"
abilityIndex 0
smallEffectName "Ability_OrbitalCannonTechChargeUp"
largeEffectName "Ability_OrbitalCannonTechChargeUp"
soundID "WEAPON_TECHORBITALCANNON_CHARGE"
instantAction
buffInstantActionType "CreateCannonShell"
instantActionTriggerType "OnDelay"
delayTime 5.000000
cannonShellType "CannonShellTech"
effectInfo
effectAttachInfo
attachType "Ability"
abilityIndex 0
smallEffectName "Ability_OrbitalCannonTechMuzzle"
largeEffectName "Ability_OrbitalCannonTechMuzzle"
soundID "WEAPON_TECHORBITALCANNON_MUZZLE"
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 7.000000
Level:1 0.000000
Level:2 0.000000
---------------------------------------------------------------------------
FILE: "CANNONSHELLTECH.ENTITY"
TXT
entityType "CannonShell"
acceleration 500.0
startingSpeed 500.000000
maxSpeed 15000.000000
buffToApplyOnImpact "BuffCannonShellTechspawn" !NEW FILE HERE!
planetImpactEffectName "Ability_OrbitalCannonTechSurfaceImpact"
planetImpactSounds
soundCount 1
sound "EXPLOSION_CANNONSHELLTECH"
planetImpactCameraShakeMaxSize 980000.000000
planetImpactCameraShakeStrength 1.500000
planetImpactCameraShakeDuration 0.000000
meshName "CannonShellTech"
mainViewIcon "MainViewIconCannonShellTech"
picture "PictureCannonShellTech"
nameStringID "IDS_CANNONSHELLTECH_NAME"
descStringID "IDS_CANNONSHELLTECH_DESC"
renderMesh FALSE
minZoomDistanceMult 4.500000
hudIcon "HUDIconCannonShellTech"
smallHudIcon "HUDIconSmallCannonShellTech"
infoCardIcon "HUDIconSmallCannonShellTech"
minShadow 0.000000
maxShadow 0.500000
----------------------------------------------------------------------------
FILE: "BUFFCANNONSHELLTECHSPAWN.ENTITY"
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 3
instantAction
buffInstantActionType "DoDamageToPlanet"
instantActionTriggerType "OnDelay"
delayTime 0.000000
damage
Level:0 5500.000000
Level:1 0.000000
Level:2 0.000000
populationKilled
Level:0 350.000000
Level:1 0.000000
Level:2 0.000000
instantAction
buffInstantActionType "ApplyBuffToTargetsInRadiusWithTravel"
instantActionTriggerType "OnDelay"
delayTime 0.000000
buffType "BuffCannonShellTechOnStructures" !NEW FILE HERE!
targetFilter
numOwnerships 1
ownership "Enemy"
numObjects 1
object "PlanetModule"
numConstraints 0
range
Level:0 40000.000000
Level:1 0.000000
Level:2 0.000000
maxTargetCount
Level:0 -1.000000
Level:1 -1.000000
Level:2 -1.000000
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName "Buff_CannonShellPhaseImpactWave"
largeEffectName "Buff_CannonShellPhaseImpactWave"
soundID ""
travelSpeed 6000.000000
effectStaggerDelay 0.000000
hasWeaponEffects FALSE
instantAction
buffInstantActionType "ApplyBuffToTargetsInRadiusWithTravel"
instantActionTriggerType "OnDelay"
delayTime 0.000000
buffType "BuffCannonShellTechOnShips" !NEW FILE HERE!
targetFilter
numOwnerships 1
ownership "Enemy"
numObjects 2
object "CapitalShip"
object "Frigate"
numConstraints 0
range
Level:0 40000.000000
Level:1 0.000000
Level:2 0.000000
maxTargetCount
Level:0 -1.000000
Level:1 -1.000000
Level:2 -1.000000
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName "Buff_CannonShellPhaseImpactWave"
largeEffectName "Buff_CannonShellPhaseImpactWave"
soundID ""
travelSpeed 6000.000000
effectStaggerDelay 0.000000
hasWeaponEffects FALSE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "AllOnDelayInstantActionsDone"
-----------------------------------------------------------------------
FILE: "BUFFCANNONSHELLTECHONSTRUCTURES.ENTITY"
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "DoDamage"
instantActionTriggerType "OnDelay"
delayTime 0.000000
damage
Level:0 800.000000
Level:1 0.000000
Level:2 0.000000
damageAffectType "AFFECTS_SHIELDS_AND_HULL"
damageType "ENERGY"
isDamageShared TRUE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 5
entityBoolModifier "DisableAbilities"
entityBoolModifier "DisableConstruction"
entityBoolModifier "DisableModuleFunctionality"
entityBoolModifier "DisableRegeneration"
entityBoolModifier "DisableWeapons"
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 180.000000
Level:1 0.000000
Level:2 0.000000
--------------------------------------------------------------------------------
FILE: "BUFFCANNONSHELLTECHONSHIPS.ENTITY"
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "DoDamage"
instantActionTriggerType "OnDelay"
delayTime 0.000000
damage
Level:0 200.000000
Level:1 0.000000
Level:2 0.000000
damageAffectType "AFFECTS_SHIELDS_AND_HULL"
damageType "ENERGY"
isDamageShared TRUE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 6
entityBoolModifier "DisableAbilities"
entityBoolModifier "DisableRegeneration"
entityBoolModifier "DisableWeapons"
entityBoolModifier "DisablePhaseJump"
entityBoolModifier "DisableLinearEngines"
entityBoolModifier "DisableAngularEngines"
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 15.000000
Level:1 0.000000
Level:2 0.000000