Jump to content

Sector background 'image' - is there any way to get it or affect it?


Rinart73

Recommended Posts

If I saw it correctly, the sector background is bound to the sector Seed. The planets however are moddable.

Some reference code:

\data\scripts\sectorspecifics.lua

    SectorSpecifics:generatePlanets()

    SectorSpecifics.generatePlanet(planets, random)

    SectorSpecifics.generateMoon(random)

    SectorSpecifics.generateBlackHole(random)

    SectorSpecifics.getPlanetPosition(random, size)

 

\data\scripts\entity\merchants\planetarytradingpost.lua

    PlanetaryTradingPost.generatePlanetGoods(planet)

 

\data\scripts\entity\story\wormholeguardian.lua

    WormholeGuardian.createChannelBeam()

 

code to get you the planets of a secot

package.path = package.path .. ";data/scripts/?.lua"
local SectorSpecifics = require ("sectorspecifics")

local specs = SectorSpecifics(x, y, Server().seed)
local planets = {specs:generatePlanets()}

 

API:

Planet

enum PlanetType

PlanetSpecifics

 

Link to comment
Share on other sites

I read the Documentation and searched in the code, so I found these too.

But I don't see any way to modify planet data. We can either trigger generation or get list of the planets and from this list we can know the type of the planet at most.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...