EviliroN EviliroN

Solar and Wormhole Phase Disruption.

Solar and Wormhole Phase Disruption.

Has anyone tried this, and or do you know the code for,

adding the type of phase disruption that the structures have

to stars and wormholes?

 

When you just cut and paste the structures ability it crashes the game.

I want to make it so it effects the whole grav well, no rings.

Ideas? Thanks.

128,206 views 64 replies
Reply #51 Top

double post see below

Reply #52 Top

its giving me a clickable button on the star and saying "sting not found" i cut and pasted right from this post

obviously i changed the name and desc to "hyperspace disruption" because i do not have a cease fire one. but that shouldn't matter

 

this is the first error log:

Text FileArchive missing Label.

File: C:\Documents and Settings\Administrator\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods\v1.11 Evilmod\GameInfo\AbilitySolarPhaseInhibition.entity
Label: useCostType
Line Number:36
Line Contents:isPassive TRUE
End of quote

Reply #53 Top

EviliroN, are you using 1.11?  Because if you are, then "isPassive" needs to be changed to "ResourceCostType".  And instead of TRUE, it should say PASSIVE.

Reply #54 Top

GAH! thanks this is why i need help sometimes! thanks

 

And tested and still same error as above. I'll keep fiddling

Reply #55 Top

Oh wait.  I haven't really looked at the 1.1 files yet, so try what it said.  Namely, "useCostType".  And I just looked, and that is the line they use.  So try "useCostType" this time.  It should still say PASSIVE after it though.

Reply #56 Top

OK this is what I have:

TXT
entityType "Ability"
buffInstantActionType "ApplyBuffToTargetsAtOrbitBody"
instantActionTriggerType "AlwaysPerform"
buffType "BuffSolarPhaseInhibition"
targetFilter
 numOwnerships 2
 ownership "Enemy"
 ownership "Friendly"
 numObjects 2
 object "CapitalShip"
 object "Frigate"
 numConstraints 0
maxTargetCount
 Level:0 -1.000000
 Level:1 -1.000000
 Level:2 -1.000000
effectInfo
 effectAttachInfo
  attachType "Center"
 smallEffectName ""
 largeEffectName ""
 soundID ""
needsToFaceTarget FALSE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 0
levelSourceType "FixedLevel0"
aiUseTime "Invalid"
aiUseTargetCondition "Invalid"
isAutoCastAvailable False
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget FALSE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
useCostType "Invalid"
researchPrerequisites
 NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_HYPERSPACEDISRUPTION_NAME"
descStringID "IDS_ABILITY_HYPERSPACEDISRUPTION_DESCRIPTION"
hudIcon "HUDICON_ABILITY_HYPERSPACEDISRUPTION"
smallHudIcon "HUDICON_ABILITY_HYPERSPACEDISRUPTION"
infoCardIcon ""
End of quote

AND instead of returning this error at game load:

Text FileArchive missing Label.

File: C:\Documents and Settings\Administrator\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods\v1.11 Evilmod\GameInfo\AbilitySolarPhaseInhibition.entity
Label: useCostType
Line Number:36
Line Contents:isPassive TRUE
End of quote

 

IT gives me this error again:

Entity 'STAR_BLUE' can only support passive abilities and ability:1 'AbilitySolarPhaseInhibition' is not passive
End of quote

 

WHICH means that it is now half fixed...right?

It's a direction at least.

thanks guys let's keep running :)

Reply #57 Top

It should say Passive instead of Invalid as the entry for "useCostType".  I did mention that before.

Reply #58 Top

yeah and when I tried passive it gives this message:

Text FileArchive missing Label.

File: C:\Documents and Settings\Administrator\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods\v1.11 Evilmod\GameInfo\AbilitySolarPhaseInhibition.entity
Label: useCostType
Line Number:36
Line Contents:useCostType Passiv
End of quote

And:

" enums
End of quote

or something like that

then the above about sun and blah blah

Reply #59 Top

Passive has an "e" at the end.  So its "Passive" not "Passiv".

Reply #60 Top

yeah I know it's a typo here not in game

Reply #61 Top

I know the problem.  Stars can only have one ability.  Its a hardcode.  You need to add the buffs to the star's Solar Radiation ability, and change the strings around so solar radiation isn't slowing down your phase jumps.

 

Don't worry, planets can have four abilities.

Reply #62 Top

I'll give that a try tonight, if I can

Reply #63 Top

Sounds like a good solution. Hopefully this turns out!

Reply #64 Top

Before I try this it should be noted that the planets that I place this in also are unable to initialize the game also.

such as:

Entity 'wormhole' can only support passive abilities and ability:1 'AbilitySolarPhaseInhibition' is not passive
End of quote

 

So imho if the planets can have 4 abilities it doesn't seem like changing the code into the sun's would do me any good since it still hasn't fixed the problem for the planets.

 

Maybe I should give up?