Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Author Topic: [0.98a] N84PhasePack (v0.2.8)  (Read 19906 times)

Norath

  • Ensign
  • *
  • Posts: 18
    • View Profile
[0.98a] N84PhasePack (v0.2.8)
« on: March 21, 2025, 01:24:27 AM »

Small Mod Pack for Phase stuff
(Cost in Image are not final)



Download Here

The original idea was to split Phase Anchor into three different hullmods.
Atm they are set to "not Incompatibe with Adaptive Phase Coils" and "can be built-in".

I have added some more hullmods :)

If you tried one let me know what you think is a good cost.

Human pilot vrs AI phase pilot.
No surprise the AI is not the best at...Some things, so most but not all focus will be on human use

HullMod Features

Phase Flicker

Reduces the phase cloak's activation cost by 90%. (Ai did not like 0 cost)
Phase cooldown reduction 50%
sMod:+33% Time flow while in Phase

Emergency Phase Dive
Works like Emergency Dive from Phase Anchor.
Each ship now gets its own "unique key", so there is no longer a one-ship-per-battle limit.
Same upgrade has been applied to Phase Anchor.
(Stress-tested by ramming a swarm of frigates into a star fortress.)

Phase Arsenal Conduit
Doubles soft flux dissipation and weapon recharge rate while phased.
sMod: The flux dissipation is now x3 but +25% Phase upkeep

Phase Charge
80/60 bonus to forward speed for Cruiser & Capital but Large penalty to turning and no brake/reverse or strafe (while in phase and 2 sec after exit for the penaltys)
(100% intended for human pilot)

Adv Phase Thrusters
25/20/15/15Bonus to speed and +50% maneuverability (while in phase)

Rugged Phase Conduits
50% Phase upkeep but only fits hulls with Rugged Construction
sMod:+25%peak operating time and also reduces the rate at which combat readiness degrades by 10%.

Blast Displacement Field
Negates damage from ships exploding next to you.
sMod: Negates the damage from hits over "X" scaled by ship size. Has a 3s cooldown

Phase Arsenal Core
Gain 1 charge per sec, When entering phase with at least 10 charge, gain a buff that lasts 2 seconds after exiting phase. 
Range 20%, Projectile speed 100%, missile speed 100% (missile range calc to balance speed) and all damge 20%.
Charge is lost if you fire weapons or are affected by a flux effect while the buff is available.
loss of charged state resets the buff duration.
sMod:The duration/Triger window is now 4s

Weapons

Phase Beams:
Added "Paladin shoot over effect" and color change to PD/LRPD and Tac laser.
Added "Heavy Tactical Laser" Op 8, 150dps and Medium with the same "Paladin shoot over effect" (Now has larger sprite)
(will make optional once I figure out how, for now just del the files in /weapons if you dont want this)

Incompatibilities & Notes
This mod modifies the Phase Anchor hullmod.

OP cost might not balanced but is easy to change.

Low-skill modder warning: I'm slightly above the "I know what some of those numbers/words do" level, so please don't be too hard on me.

Let me know if you see anything to improve  :)
Ty to:
Ziggusy & Gacha for feedback on names (I had totaly forgoten how much I disliked the Chrono name)

Patch Notes:
Spoiler
Version 0.2.8 (April 14, 2024):
- Phase Arsenal Conduit accidentally got a 2.5 multiplier  last patch(fixed back to 2)
- Phase Arsenal Conduit now has a sMod: x3 multiplier  but +25% Phase upkeep
- 0.2.8 backup

Version 0.2.7 (April 14, 2024):
- The Heavy Tac Laser now has a bigger sprite than the small tac laser
- Some color tweaking on the weapons
- Nerf to Phase Charge :(
- Phase Arsenal Core is now out of "alpha" development
- Some under the hood code work
 
Version 0.2.6 (April 8, 2024):
- Added sMod effect to Phase Flicker and Rugged Phase Conduits
- Added Blast Displacement Field hMod with sMod effect
- 0.2.6 backup

0.2.5
-Added Version Checker Support
- 0.2.5 backup

0.2.4
-Started writing patch notes
-The tac laser was not given the shoot over effect only color (fixed)
-Added the Medium sized tac Laser
-Op cost of most hullmods up 1 step
-Added Hullmod Phase Arsenal Core (wip) testing "on exit phase" stuff
[close]
« Last Edit: April 15, 2025, 11:33:41 AM by Norath »
Logged

RazorTS

  • Ensign
  • *
  • Posts: 23
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.2)
« Reply #1 on: April 02, 2025, 10:33:37 AM »

Bit too strong

Would love to see effects scaled down and balanced OP costs so i dont feel like im punching cripple babies while using it. There's quite lack of phase hullmods this would be fun to use.
Logged

DinoZavarski

  • Lieutenant
  • **
  • Posts: 81
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #2 on: April 14, 2025, 02:32:36 PM »

0.2.7 crashes game on startup with this error:

Code
350539 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error loading [data.scripts.dpl_phase_labModPlugin]
java.lang.RuntimeException: Error loading [data.scripts.dpl_phase_labModPlugin]
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: File 'data/scripts/world/systems/dpl_helheim.java', Line 157, Column 47: Thrown exception of type "java.lang.CloneNotSupportedException" is neither caught by a "try...catch" block nor declared in the "throws" clause of the declaring function
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:226)
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:178)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File 'data/scripts/world/systems/dpl_helheim.java', Line 157, Column 47: Thrown exception of type "java.lang.CloneNotSupportedException" is neither caught by a "try...catch" block nor declared in the "throws" clause of the declaring function
at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:10174)
at org.codehaus.janino.UnitCompiler.checkThrownException(UnitCompiler.java:7981)
at org.codehaus.janino.UnitCompiler.checkThrownExceptions(UnitCompiler.java:7904)
at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:7400)
at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:5663)
at org.codehaus.janino.UnitCompiler.access$13800(UnitCompiler.java:185)
at org.codehaus.janino.UnitCompiler$16.visitMethodInvocation(UnitCompiler.java:5132)
at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:3971)
at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159)
at org.codehaus.janino.UnitCompiler.findMostSpecificIInvocable(UnitCompiler.java:7533)
at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:7429)
at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:7333)
at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3873)
at org.codehaus.janino.UnitCompiler.access$6900(UnitCompiler.java:185)
at org.codehaus.janino.UnitCompiler$10.visitMethodInvocation(UnitCompiler.java:3263)
at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:3974)
at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:3290)
at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4368)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2662)
at org.codehaus.janino.UnitCompiler.access$4400(UnitCompiler.java:185)
at org.codehaus.janino.UnitCompiler$7.visitMethodInvocation(UnitCompiler.java:2627)
at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:3974)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2654)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1643)
at org.codehaus.janino.UnitCompiler.access$1100(UnitCompiler.java:185)
at org.codehaus.janino.UnitCompiler$4.visitExpressionStatement(UnitCompiler.java:936)
at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:2097)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:958)
at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1007)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2293)
at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:822)
at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:794)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:507)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393)
at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185)
at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347)
at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354)
at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322)
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:224)
... 5 more

0.2.6 worked.

Running on Linux, so this may be file name case mishmash related error.
Logged
Me no know, me no understand, me just root...

Norath

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #3 on: April 15, 2025, 09:32:40 AM »

this looks to be DPL, odd it worked with 0.2.6

from DPL thread:
Spoiler

Just a heads up but as of v0.98 the Janino compiler can no longer compile any .java files that make use of the .clone() method. I did a findstr check and these files in your mod currently make use of the method. It's probably either time to compile those files yourself with an IDE or figure out some kind of workaround.

Spoiler
[close]

Quote from: PriestOfVanedu on March 30, 2025, 06:05:37 AM

    I really love the mod but when I try to launch the game it says:


    Fatal: Error loading [data.scripts.dpl_phase_labModPlugin] Cause: File 'data/scripts/world/systems/dpl_helheim.java', Column 47: Thrown exception of type
    Line 157,
    "java.lang.CloneNotSupportedException" is neither caught by a
    "try...catch" block nor declared in the "throws" clause of the declaring
    function
    Check starsector.log for more info.


1) It is not updated for 0.98 yet;

2) Check ViceGrip's post above yours for one of the reasons why it crashes right now.
[close]

I still should get better at offering backup tho :(
Edit: Now have backup links to 2.5 / 2.6 and 2.8 in the Patch Notes log
« Last Edit: April 15, 2025, 11:43:21 AM by Norath »
Logged

firdaus

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #4 on: May 19, 2025, 11:05:47 AM »

safe to add mid save?
Logged

Astrefernal

  • Lieutenant
  • **
  • Posts: 89
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #5 on: May 22, 2025, 08:30:20 AM »

Would it be possible to download it from something over than Dropbox ?
Logged

Norath

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #6 on: May 23, 2025, 02:16:08 PM »

Would it be possible to download it from something over than Dropbox ?

Dropbox has been working fine for me, is there a reason you (cant/dont wanto) use dropbox ?

safe to add mid save?

safe to add but not remove
Logged

Astrefernal

  • Lieutenant
  • **
  • Posts: 89
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #7 on: May 24, 2025, 03:50:55 AM »

Would it be possible to download it from something over than Dropbox ?

Dropbox has been working fine for me, is there a reason you (cant/dont wanto) use dropbox ?


Just need an account to download the mod, and I don't want to create one for something I'll never use later.
Logged

NDogmeat

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #8 on: May 24, 2025, 07:34:20 AM »

Would it be possible to download it from something over than Dropbox ?

Dropbox has been working fine for me, is there a reason you (cant/dont wanto) use dropbox ?


Just need an account to download the mod, and I don't want to create one for something I'll never use later.

I just downloaded the mod without a Dropbox account. I just clicked on File, Download, Download Only... And that was it. Strange you couldn't download it!
Logged

Astrefernal

  • Lieutenant
  • **
  • Posts: 89
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #9 on: May 25, 2025, 03:12:41 AM »

Would it be possible to download it from something over than Dropbox ?

Dropbox has been working fine for me, is there a reason you (cant/dont wanto) use dropbox ?


Just need an account to download the mod, and I don't want to create one for something I'll never use later.

I just downloaded the mod without a Dropbox account. I just clicked on File, Download, Download Only... And that was it. Strange you couldn't download it!

Frack ! It's a small line at the bottom ! Fracking corporate BS... Thanks.
Logged

IanYonders

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #10 on: June 02, 2025, 11:23:38 AM »

Crashing the moment I kill a Hound-class having the Emergency Phase Drive without the Phase Cloak skill
My fortunate workaround is just console command killing everything else in the battle to get the credit for the kills & then killing the fleet in space... would love for these hullmods to not suddenly show up on incompatible ships, but I'm currently unsure if other mods are allowing this.

Code
[Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.api.combat.ShipSystemAPI.getSpecAPI()" because the return value of "com.fs.starfarer.api.combat.ShipAPI.getPhaseCloak()" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.api.combat.ShipSystemAPI.getSpecAPI()" because the return value of "com.fs.starfarer.api.combat.ShipAPI.getPhaseCloak()" is null
at data.hullmods.N84_PhaseEscape$PhaseEscape.advance(N84_PhaseEscape.java:70)
Logged

Norath

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #11 on: June 03, 2025, 01:45:41 PM »

Crashing the moment I kill a Hound-class having the Emergency Phase Drive without the Phase Cloak skill
My fortunate workaround is just console command killing everything else in the battle to get the credit for the kills & then killing the fleet in space... would love for these hullmods to not suddenly show up on incompatible ships, but I'm currently unsure if other mods are allowing this.

Code
[Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.api.combat.ShipSystemAPI.getSpecAPI()" because the return value of "com.fs.starfarer.api.combat.ShipAPI.getPhaseCloak()" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.api.combat.ShipSystemAPI.getSpecAPI()" because the return value of "com.fs.starfarer.api.combat.ShipAPI.getPhaseCloak()" is null
at data.hullmods.N84_PhaseEscape$PhaseEscape.advance(N84_PhaseEscape.java:70)

yes this is from some mod adding random hmod to npc ships, normaly Emergency Phase Drive can not be equiped by ships with out phase drive.

here is a hotfix file
Logged

IanYonders

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.98a] N84PhasePack (v0.2.8)
« Reply #12 on: June 03, 2025, 11:49:59 PM »

Thanks Norath, glad I broke my lurking streak to ask for help.
Logged