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 #26 Top

not solved, i'm talking to myself :(

Reply #27 Top

Is there anyway a dev could help on this? or is it just one person wondering and no one cares? :) either way

Reply #28 Top

bump

Reply #29 Top

thanks Tkins, can't believe no one cares about this

Reply #30 Top

I was also wondering. How come you can't give the star a passive ability like the jump inhibitor?

 

I don't know much about coding, so could you post the ability you have made and right below it the ability of the phase jump inhibitor?

Reply #31 Top

actually i did post it on the last page but we haven't figured anything out yet so i couldn't help you anymore than that.

Reply #32 Top

Yeah I saw you post the Star files, but I didn't see the JI. Maybe i'm too noob to figure out which is which lol.

Reply #33 Top

I could give it a shot...youd be amased how much you learn with just one and a half weeks of codding! Almsot got an entire race down (minus models of course)!!!

Planets are my groups (Kiedjor, SpardaSon, TEAL, Myself) next stop..after we both finish our races and enhancements!!

Just give me a nice recap of everything you need and Ill give it a shot when I come back from work..or whenever I have time (back from work) LOL!

 Also, be aware that you are not affected by your planets phase jump inhibitors,etc... (just a side note)

Justin S.

Reply #34 Top

"Also, be aware that you are not affected by your planets phase jump inhibitors,etc... (just a side note)"

Good point!

Reply #35 Top

Just wanted to make sure that when he was testing his mod..he was checking enemy mouvement in his grav well and not himself moving around..cus then its obvious nothing would have changed :)! LOL

 

:D  Justin S.

Reply #36 Top

So if that is the case, could he solve it by making the star neutral somehow? Because if you're right, the AI would be thinking he owned the star for some reason...

 

But what about when it's for a planet that is owned by the player?

Reply #37 Top

you have to change the star to a colonizable entity. Then place a phase disrupter there in map edit files.

Reply #38 Top

The man said it all!!!

:D  

Reply #39 Top

That is a good option.

 

I think Evil is trying to avoid that though. That's what I get from his posts. Maybe I'm just lost though.. hahah

Reply #40 Top

I wouldn't want to make a star colonizable.

But they have slots for ablilties, like its antimatter regen, and I want to put a jump inhibition into that and wormholes so you can't just jump in and jump out of systems for 1 sec attacks. You have to commit.

 

In the pics I posted on page 1 it shows it friendly AI in a star's grav well. So not a phase inhibitor structure at all.

It shows that it has the ability but it is not applying it correctly.

Reply #41 Top

I don't see a range modifier. Hover your mouse over the ability when selecting the star. Does is show the purple range?  Maybe your range is null right now? I just glanced over the coding but couldn't find it.

Reply #42 Top

I'll go over it soon enough too! The more the merrier!:D

 

Justin S.

Reply #43 Top

That pic on the right is mouse hover over the star's icon. no purple range. but I want it to affect the entire grav well, no range. Sorry I am in between novice and intermediate on this modding thing. ShadowMastiff is pretty good though, I like his work.

Reply #44 Top

Can't you just give it a range that is equal to the gravity well?

Reply #45 Top

you mean apply it just like the structure buff? i have tried that and it doesn't work. so i tried to write code for a new one but that's not giving the completely desired effect. i'm wondering if there is just some little things i am missing. btw, i just turned on my setting>out put errors> true and it said

"line 5 ability" not working (or to that effect)

 

does this help?

Reply #46 Top

Kay, I was finally able to sit down and actually try making this work myself, and I got it to work.

I set the second ability for every color star to "AbilitySolarPhaseInhibition" and for the Ability file...

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 1
levelSourceType "FixedLevel0"
aiUseTime "Invalid"
aiUseTargetCondition "Invalid"
isAutoCastAvailable False
isAutoCastOnByDefault FALSE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget FALSE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
isPassive TRUE
researchPrerequisites
 NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_CEASEFIRE_NAME"
descStringID "IDS_ABILITY_CEASEFIRE_DESCRIPTION"
hudIcon "HUDICON_ABILITY_CEASEFIRE"
smallHudIcon "HUDICON_ABILITY_CEASEFIRE"
infoCardIcon ""

 And for BuffSolarPhaseInhibition....

TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 0
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 1
entityModifier
 buffEntityModifierType "HyperspaceChargeUpRate"
 value
  Level:0 -10.00000
  Level:1 0.000000
  Level:2 0.000000
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
 finishConditionType "OutOfRange"

... Apparently I forgot how to properly quote...

Reply #47 Top

lol thanks

 

I forgot how to quote for a time also! [ quote ] and [/ quote ] (without the spaces)

 

now time to try

 

why the cease fire?

nameStringID "IDS_ABILITY_CEASEFIRE_NAME"
descStringID "IDS_ABILITY_CEASEFIRE_DESCRIPTION"
End of quote

Reply #48 Top

Ahh thats what it is, thanks! The Cease Fire stuff is there because I copied from another ability I made which was initially a copy of Cease Fire itself, I have just been too lazy to fix it and give them both real names and desctriptions.

Reply #49 Top

OH also, I tried it and it didn't apply it correctly to the ship.

you tested it? the log error shows something about the passive ability.

 

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

Reply #50 Top

It was working for the red star... Damnit... Wasn't getting errors about passive abilities either...