Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Uxion

Pages: [1]
1
Modding / [0.96a] Add Stable Locations using Console Commands
« on: August 13, 2023, 07:21:57 PM »
I made this mod because I wanted to add more Stable Locations in a system.
Obviously this is a cheat.

Instructions:
1) Park your fleet where you want to make a new Stable Location.
2) Open Console Commands
3) Type 'AddStableLocation'
4) Done

Requirements: Console Commands by LazyWizard

Credit to Histidine and Algester's posts, quoted below.

Editing the save is probably too complicated, but you can use the Console Commands mod with the following command (copy and paste):

Code: java
runcode SectorEntityToken fleet = Global.getSector().getPlayerFleet();  
      StarSystemAPI sys = (StarSystemAPI)fleet.getContainingLocation();
      SectorEntityToken stable = fleet.getContainingLocation().addCustomEntity(null, null, "stable_location", "neutral");
      float orbitRadius = com.fs.starfarer.api.util.Misc.getDistance(fleet, sys.getCenter());
      float orbitDays = orbitRadius / (20f + new Random().nextFloat() * 5f);
      float angle = com.fs.starfarer.api.util.Misc.getAngleInDegrees(sys.getCenter().getLocation(), fleet.getLocation());
      stable.setCircularOrbit(sys.getCenter(), angle, orbitRadius, orbitDays);
This creates a new stable location at your fleet's current location. You can tweak orbitDays for realism if you want.

this is the more simplified version of the Stable Location based on the player location found way earlier of this forum post you can search for it though unless you are a lazy person
Code
runcode PlanetAPI star = ((StarSystemAPI) $loc).getStar(); if (star != null) { $loc.addCustomEntity(null, null, "stable_location", "neutral").setCircularOrbitPointingDown(star, VectorUtils.getAngle(star.getLocation(), $playerFleet.getLocation()), MathUtils.getDistance(star.getLocation(), $playerFleet.getLocation()), 180f); }
you can change stable location to "nav_buoy", "comm_relay", "sensor_array" while adding "nav_buoy_makeshift" so on and so forth turns them into makeshift variants

I got autogenerate Hyperspace jump points to work
Code
runcode Global.getSector().getStarSystem("System Name").autogenerateHyperspaceJumpPoints(true,true)
// the first true statement is for Gas Giants
// the second true statement is for generating Fringe Jump Points

2
Suggestions / Leveled Marines
« on: October 10, 2012, 02:45:43 PM »
Could we have marines that also follow the crew experience model?
So that they would have different amount of competence in their roles where the less component they are the more of them would die along with the ships getting damaged.
I was just thinking the way marines worked in X3 Terran Conflict.

Also when they are defending a facility they have a higher defense rating with their experience along with other stackable such as their CO being trained in ground warfare as with everything else.

I need to clarify this a bit more.

3
General Discussion / Admirals?
« on: March 09, 2012, 12:26:25 PM »
I read on the forums about how you can promote admirals or something. But how do I do that? I can't seem to find an option for that.

4
Can we have some sort of upgrade that allows us to see at what distance from a planet/star we have to be to retain our speed bonus along with a waypoint system on the system map so that we don't have to press our mouse button down for 5 minutes to get anywhere?

Its more for convenience's sake.

Pages: [1]