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 :P

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

 

 

5,611 views 5 replies
Reply #1 Top
Can you also put in the Ability file please, couple of things I want to check.
Reply #2 Top
Can you also put in the Ability file please, couple of things I want to check.
End of quote

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 ""

I Made a new file so that the Tech Capital Ship Dreadnought would not be using this as that would be way overpowering and might cause problems.

FILE: "BuffRadiationBombDamage1.entity"TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 0
numPeriodicActions 0
numOverTimeActions 1
overTimeAction
buffOverTimeActionType "DoDamage"
damageRate
Level:0 70.000000
Level:1 0.000000
Level:2 0.000000
damageAffectType "AFFECTS_SHIELDS_AND_HULL"
damageType "PHYSICAL"
isDamageShared TRUE
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 10.000000
Level:1 0.000000
Level:2 0.000000
Reply #3 Top
Sorry, didn't realise you used the original, didn't read the first post correctly. Ok, Having looked at the other Super weapons, in particular, the Vasari one, the file structure is slightly different when it affects ships as well. You will need to make another buff that affects ships and structures. This one refers to both Planet and units, but the "CannotBeColonized" modifier can only be applied to planets. I suspect that is the cause of the dump, so either you remove that and try it (no guarantees), or you follow the same structure as the Vasari Cannon Shell buffs. It has -Spawn, which refers to -OnStructures and -OnShips buff files.

That may be slightly incoherent, so if you need it explaining further, just ask.
Reply #4 Top
Ok mate, Ill try it out, thanks for the help. My mod also incorporates your wonderful mod v1.3a If I get it to fly I'll be giving you credit for sure.
Reply #5 Top
Thats fine ;)

I think this is the problem, but making abilities and buffs was the hardest part of v1.3, I just ending up testing every small change until I got it to work how I wanted.

Good luck :D