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.

Messages - Freetimez

Pages: [1]
1
Thanks, that fixed it! The planet size was way too big tho, took up half the screen  ;D

2
Anyone have an example on how to add a terran planet? I see the console command posted multiple times in the thread, however there isn't a clear example on how to do so. I looked into the java file to try and find an example however I couldn't locate it.
you need to know that terran in the planet type is in small letters

RunCode Global.getSector().getStarSystem("System_Name").addPlanet("Added_Planet_Name", Global.getSector().getStarSystem("System_Name").getStar(), "Added_Planet_Name", "Planet_type", Planet_Angle, Planet_Size, Planet_orbit_radius, Planet_Orbit_length)

for example
I'm in Gaap System, I want to name the planet herpa derp, and is Terran
now where do I want the planet to start example I want it to spawn at 90 degree north, and I want this planet to support a boggled Astropolis Station (IIRC it might be a minimum size of 2000 but I'm not sure), now the tricky part placing the orbit it is measured in radius and in pixels a standard system map is somewhere around 30000 pixels radius (this is better with save scumming). and then how fast do you want the planet to rotate in the map, say you want earth days = 1 year then 366 is you answer
now you can change terran to other things like gas_giant, water, barren,

RunCode Global.getSector().getStarSystem("Gaap").addPlanet("Herpa Derp", Global.getSector().getStarSystem("Gaap").getStar(), "Herpa Derp", "terran", 90, 2300, 15000, 366)

Excuse my ignorance of coding/java, but why does this return java.lang.nullpointerexception? Thanks to anyone for help in advance!

RunCode Global.getSector().getStarSystem("Kapre Star System").addPlanet("Exos", Global.getSector().getStarSystem("Kapre Star System").getStar(), "Exos", "terran", 80, 2400, 6000, 250)

Pages: [1]