Creating new planet types
Posted: Tue Sep 03, 2019 2:44 pm
I'd like to make myself a mod with more planet types for variety's sake. Here are my notes so far, feel free to point out if I'm overlooking anything.
- Drawers/Planets/ dir with planet type
- Lua file with same name as directory contains rules for rendering the world type
- Source images: height map + layers, including at a minimum a color map
- City lights are handled with layers too, up to three levels of land use, and two shallow + one deep layer for oceanic uses for water worlds
- Clouds usually point to the Garden world, so it's possible to refer to another planet type instead of duplicating, at least for clouds
- Smoke and smog effects are also applied with layers
- Ice caps are usually applied as layers too, allowing worlds to be rendered with or without
- Desert and Steppes are just variants of Arid
- Encounters/planet_event_helpers.lua: supergrain resource candidates (by default: 'Coral','Island','Paradise','Garden')
- Galaxy/planet_types.lua: planet descriptions, habitats, and habitability per race
- Galaxy/~habitat_info.lua: habitat descriptions
- GUI/~GalaxyMap/@PlanetPane.lua: planet overlays, some planet art substitution hacks to work around missing art (e.g. Paradise worlds all use Gaia's look)
- Orders/colonization.lua: list of "easy" and "harder" planets
- Orders/farming.lua: planet fertility rules
- Orders/terraforming.lua: terraformation rules
- Setup/epic_systems.lua: hardcoded special systems (Tyl, Ephelos)
- Setup/forced_planets_fun.lua: semi-hardcoded special planets (minor native races)
- Setup/home_systems.lua: hardcoded planets for each empire's starting system (can be useful for quick tests)
- Setup/init_star.lua: assigns planet types to randomly-generated star systems (meanwhile, init_planets.lua is all about star types, irradiance, and goldilocks zones)
- Setup/pirate_systems.lua: planet types for pirates and marauders
- Setup/planet_decks.lua: puts planet types in decks (common, rare, epic, exotic), hints about temperature ranges, rules for special resources
- Setup/special_decks.lua: planet-based chances of special things (derelicts, abandoned colonies, refugees, monsters)