Wierd ability problem

Whenever I use this buff, the game crashes. I've done alot of tests, and it is not the buff following this buff, nor is it the previous buff.

This buff causes the game to crash, and I do not know wihy. (It is being applied to non-colonized planets)

 

TXT
entityType "Buff"
onReapplyDuplicateType "KeepOldBuff"
buffExclusivityForAIType "NotExclusive"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 0
numPeriodicActions 1
periodicAction
 actionCountType "Infinite"
 actionIntervalTime
  Level:0 2.000000
  Level:1 0.000000
  Level:2 0.000000
 buffInstantActionType "ApplyBuffToTarget"
 instantActionTriggerType "AlwaysPerform"
 buffType "BuffSmuggleTarget"
 targetFilter
  numOwnerships 1
  ownership "Friendly"
  numObjects 2
  object "CapitalShip"
  object "Frigate"
  numConstraints 0
 range
  Level:0 60000.000000
  Level:1 60000.000000
  Level:2 60000.000000
 effectInfo
  effectAttachInfo
   attachType "Invalid"
  smallEffectName ""
  largeEffectName ""
  soundID ""
numOverTimeActions 1
overTimeAction
 buffOverTimeActionType "EarnResources"
 earnRate
  Level:0 10.000000
  Level:1 10.000000
  Level:2 10.000000
numEntityModifiers 0
numEntityBoolModifiers 1
entityBoolModifier "CannotBeColonized"
numFinishConditions 2
finishCondition
 finishConditionType "OwnerChanged"
finishCondition
 finishConditionType "FirstSpawnerNoLongerHasBuff"
 buffTypeToQuery "BuffSmuggleSelf"

4,680 views 10 replies
Reply #1 Top

well if its for planet..shouldnt the target be "localorbitbody"!!!

Look at the planet shield buff and compare...that might be your mistake! Self does not apply to a planet! :)

Reply #2 Top

no, the previous buff targets the planet, and puts this buff on the planet. This buff makes the planet uninhabitable, and it gives a friendly ship in orbit the buff "BuffSmuggleTarget"

I do know that this buff is applied correctly.

 

For, before, I had the "Applybufftotarget" set as an instant action.

This buff was appling correctly, and made the planet unihabitable, but it would never "Applybufftotarget"

so, I changed it from and instant action to a periodic action, which then crashed the game.

 

It isn't the buff that it is appling (BuffSmuggleTarget in this case) that is crashing the game eiether, as I have tried a few differnt buffs in place of "BuffSmuggleTarget"

Reply #3 Top

TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 2
instantAction
 buffInstantActionType "PlayPersistantAttachedEffect"
 instantActionTriggerType "OnDelay"
 delayTime 0.000000
 effectInfo
  effectAttachInfo
   attachType "Ability"
   abilityIndex 1
  smallEffectName "CapitalAbility_ResourceDrainActivate"
  largeEffectName "CapitalAbility_ResourceDrainActivate"
  soundID "EFFECT_RESOURCEDRAIN_LOOP"
instantAction
 buffInstantActionType "ApplyBuffToTargetNoFilterNoRange"
 instantActionTriggerType "OnDelay"
 delayTime 0.000000
 buffType "BuffRevengeBountyRECYCLER3"
numPeriodicActions 0
numOverTimeActions 1
overTimeAction
 buffOverTimeActionType "EarnResources"
 earnRate
  Level:0 10.000000
  Level:1 10.000000
  Level:2 10.000000
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 3
finishCondition
 finishConditionType "TimeElapsed"
 time
  Level:0 10.000000
  Level:1 0.000000
  Level:2 0.000000
finishCondition
 finishConditionType "OwnerChanged"
finishCondition
 finishConditionType "TargetOwnerIsFriendly"

 

Try this sequence (change the end conditions to those of my recycler ship) as well as the SECOND INSTANT ACTION (not first)!

And tell me if those changes help in any way?

Reply #4 Top

BTW what does the develloper error log tell you? (sorry if it does say anything...) but its an eventuality I must cover :)

Reply #5 Top

um.....what?

recycler ship?

 

Developer log says nothing usefull.

 

That won't work for what I want I think, becouse to keep this from being overpowered, I need to make sure that more ships using this ability  (in one gravity well) don't equate to more resources.

 

I don't know if you've taken a look at my loot ability, but I use the same trick in that ability I am trying here.

Reply #6 Top

No no no dont be put off by my ships name... what im trying to make you see..is HELL NO to make a clone of my ship! you have your design and attributes I have mine!

But to try and nulify the error..I would propose changing the end conditions to :

numFinishConditions 3
finishCondition
 finishConditionType "TimeElapsed"   <===or whatever time you want...put -1 for infinity!
 time
  Level:0 10.000000
  Level:1 0.000000
  Level:2 0.000000
finishCondition
 finishConditionType "OwnerChanged"
finishCondition
 finishConditionType "FirstSpawnerNoLongerHasBuff"
 buffTypeToQuery "BuffSmuggleSelf"

Reply #7 Top

....I'm so confused.......who is cloning your ship? You said in an earlier post that your race can clone ships, maby they got out of control or something.

 

I was just trying to figure out why you meantioned a recycler ship.

.....anyway.....

 

 

so you have no clue as too why this crashes the game?

Reply #8 Top

NURT!!!!!

lol,

 

I was just looking at that code up thier and figured it out

that buff has a planet creating reasources. Which, is impossible, as the game asks "who are the reasources for?"

and the game crashes.

 

 

.....but that doesn't fix my problem.

Reply #9 Top

LOL! HUGE MISUNDERSTANDING!!!!

forget everything I wrote!

As for your ressource issue...apply that buff to the ship that is targeted!

If my memory serves me right, you said that your ability calls a buff to make colonisation impossible and gives ressources to one ship? or something like that!

That being said, my answer would be to create your uncolonisation ability and make it trigger a buff that an ally/foe (whichever you want) that THEN triggers the earn ressource bonus!

I hope you can follow the lines of what ive been trying to explain :(

Reply #10 Top

that is what I've been trying to do.

Consider this thread Null, I have a completely differnt problem.

Posted it on the Annatat thingamajig.