hello again everyone! i have returned with but a single question
1) is there a way to edit a rules.csv $memory_whatsit with code?
thanks again for answering my question in the past everyone. its been helpful.
Yes. Exactly how depends on which one but it'll be something using the MemoryAPI, obtained via a call like:
Global.getSector().getMemoryWithoutUpdate()
FactionAPI.getMemoryWithoutUpdate()
SectorEntityToken.getMemoryWithoutUpdate()
MarketAPI.getMemoryWithoutUpdate()
And similar.
well, the bombs have 0 proj speed, and a non-zero launch speed, so they're supposed to slow down to zero and stay there
and the multiplier is 2f, a +100% speed bonus
which should result in the same 0 proj speed
i tested again and the issue only happens when getProjectileSpeedMult.modifyMult is above zero and proj speed is lesser than launch speed
something suspicious happening tbh, i guess something odd in the prox fuze code?
... probably! Offhand I'm not surprised something goes weird if proj speed is zero. Launch speed being > proj speed is a fairly common occurrence, though.
Hi, is there a way to force a fighter to do its "landing" animation at any time other than landing back at its carrier? I'm envisioning a sort of 'boarding' animation where a fighter would 'land' on top of an enemy ship, and disappear from there.
ShipAPI.beginLandingAnimation(ShipAPI target)
How well that'll actually work, I don't know; not enough may be exposed to make it work out.
hello i copied ballistic rangefinder hullmod from original files to a mod file to edit i changed its location from com.fs.starfarer.api.imp to data.hullmods for both hull_mods.csv and from the script and no addational changes were made when i run the game it crashes saying assignment conversion not possible how can i fix it
Probably because it's now a script being compiled with Janino (a compiler the game uses to compile loose scripts) and the code from that hullmod uses Java in a way Janino does not support. The way to get around this would be to either tweak the code based on what exactly the error is, or to compile it into a jar yourself instead of having the game compile it.