Rinart73 Posted December 4, 2017 Share Posted December 4, 2017 I mean, is there any way to get generated planet or sun image data (to display it in the GUI for example) or someway change it? It can help people to make sector more unique, I think. Link to comment Share on other sites More sharing options...
Laserzwei Posted December 4, 2017 Share Posted December 4, 2017 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 More sharing options...
Rinart73 Posted December 4, 2017 Author Share Posted December 4, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now