X4: Foundations

X4: Foundations

Not enough ratings
Higher Dimensional Space
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
22.914 KB
30 Aug @ 2:06am
1 Change Note ( view )

Subscribe to download
Higher Dimensional Space

Description
Higher Dimensional Space

Version: 0.1.0 [BETA] · Author: Reithan

Make X4’s universe actually feel 3D. This mod sphericalizes GOD-driven placements at game start and during AI-driven builds by replacing vanilla “flat/polar” randomization with a sector-centered spherical (or configurable ellipsoidal) distribution.

✨ What it does

  • Gamestart spawns (GOD): Listens to event_god_created_factory and event_god_created_station and repositions eligible creations using a Y-up sphere/ellipsoid around the sector core. Uses safe placement (<safepos includeplotbox="true">).
  • AI economy & goals: Patches vanilla MD (economy/goal/station finders) to use a rand-in-sphere helper instead of the stock polar RNG for many flows (build-in-sector, faction goals, core fallbacks).
  • Respects mods/updates: Classification is based on runtime object props (isgodproductionentry, godentry, zone, position), not hardcoded ID lists.
  • Configurable shape: The helper library supports radius (“R”) and vertical squash (“squash”) so you can go from perfect spheres to gentle ellipsoids.

Result: fewer “pancake layers”, more vertical variety for NPC construction while keeping vanilla logic intact.
15 Comments
Reithan  [author] 12 Sep @ 4:28pm 
@PKster

In the base implementation there's a 50/50 chance a new station gets placed 'next to' an existing one.

With this mod, it lowers it to 25%, but you'll still see 'clusters' of stations from time-to-time when that 25% rolls success a few times in a row.

Basically: working as intended. It's just more 'visually noticeable' when it happens at a high or low point in the system.
PKster 12 Sep @ 6:14am 
I am noticing that some sectors will cluster 5-8 stations together in a grid at full 'north pole' or sometimes 'south pole'. However, this is rare. Most stations are distributed in an interesting way. Placing sats is more challenging, but I think this mod's station placement is more organic than the 2d plane.
Valador 11 Sep @ 8:05pm 
Look forward to testing this, thanks for the work and effort.
Reithan  [author] 11 Sep @ 3:22am 
In general this should be pretty compatible with most mods, unless those mods place 'static' stations. This doesn't modify 'statically' placed stations at game-start.
Sentenza 10 Sep @ 9:56am 
AI already sstruggle with 2D plan and you want to make it 3D?
Preliator 10 Sep @ 8:37am 
Is this compatible with Galaxy Remake STARS mod from Nexus?
Godis 10 Sep @ 8:11am 
This sounds pretty amazing. As far as I understand it, it's compatible with most mods out there due to its runtime patching (which would respect modded assets, as long as they're in place already on game load)?
Elec Frost 9 Sep @ 8:00pm 
quite the opportunity for paranid humor you got there
Jacky Treehorn 8 Sep @ 10:54pm 
I'm right in my first playthrough, but this sounds interesting.
Reithan  [author] 7 Sep @ 12:31pm 
Yep!