Starbound

Starbound

Better Barren - Elysium Worlds
Azure Fang 2017 年 7 月 23 日 上午 6:35
"Pool" version of celestial.config.patch
[{ "op": "add", "path": "/terrestrialHorizonGraphics/elysium", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/garden_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumsnow", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/snow_<selector>.png", "maskPerPlanetRange": [ 0, 0 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiummidnight", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/midnight_<selector>.png", "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumscorchedcity", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/scorchedcity_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 2, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumvolcanic", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/volcanic_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumocean", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/ocean_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/ocean/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 1, 2 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumearth", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/garden_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysium", "value": { "baseImages": "/celestial/system/terrestrial/biomes/garden/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ], "baseCount": 5 } }, { "op": "add", "path": "/terrestrialGraphics/elysiumsnow", "value": { "baseImages": "/celestial/system/terrestrial/biomes/snow/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/arid/<num>.png", "dynamicsRange": [ 1, 50 ], "baseCount": 4 } }, { "op": "add", "path": "/terrestrialGraphics/elysiummidnight", "value": { "baseImages": "/celestial/system/terrestrial/biomes/midnight/maskie<num>.png", "liquidImages": "", "dynamicsImages": "/celestial/system/terrestrial/dynamics/arid/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumscorchedcity", "value": { "baseImages": "/celestial/system/terrestrial/biomes/scorchedcity/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumearth", "value": { "baseImages": "/celestial/system/terrestrial/biomes/garden/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ], "baseCount": 5 } }, { "op": "add", "path": "/terrestrialGraphics/elysiumocean", "value": { "baseImages": "/celestial/system/terrestrial/biomes/ocean/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/ocean/<num>.png", "dynamicsRange": [ 1, 20 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumvolcanic", "value": { "baseImages": "/celestial/system/terrestrial/biomes/volcanic/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/0/planetaryTypes/3", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/1/planetaryTypes/2", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/2/planetaryTypes/3", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/planetaryTypes/ElysiumPool", "value": { "satelliteProbability": 0, "baseParameters": { "worldType": "Terrestrial", "description": "An Elysium Planet", "smallImage": "/celestial/system/planet_small.png", "terrestrialType": [ "elysiumvolcanic", "elysiumocean", "elysiumscorchedcity", "elysiumearth", "elysiummidnight", "elysiumsnow", "elysium" ] }, "variationParameters": [{ "imageScale": 0.075, "smallImageScale": 0.4, "worldSize": "small" }, { "imageScale": 0.1, "smallImageScale": 0.5, "worldSize": "medium" }, { "imageScale": 0.15, "smallImageScale": 0.6, "worldSize": "large" } ] } } ]

Already tested to confirm function, and to make sure I didn't forget a comma or mismatch a bracket anywhere.

Everything should function exactly as your original version, just using a pool instead of individual entries, and a rather substantial reduction in codespace due to consolidation :happymeat:
最後修改者:Azure Fang; 2017 年 7 月 23 日 上午 6:40
< >
目前顯示第 1-3 則留言,共 3
Azure Fang 2017 年 7 月 23 日 上午 6:57 
And here's a slight alternate version:
[{ "op": "add", "path": "/terrestrialHorizonGraphics/elysium", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/garden_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumsnow", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/snow_<selector>.png", "maskPerPlanetRange": [ 0, 0 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiummidnight", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/midnight_<selector>.png", "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumscorchedcity", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/scorchedcity_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 2, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumvolcanic", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/volcanic_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumocean", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/ocean_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/ocean/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 1, 2 ] } }, { "op": "add", "path": "/terrestrialHorizonGraphics/elysiumearth", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/garden_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysium", "value": { "baseImages": "/celestial/system/terrestrial/biomes/garden/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ], "baseCount": 5 } }, { "op": "add", "path": "/terrestrialGraphics/elysiumsnow", "value": { "baseImages": "/celestial/system/terrestrial/biomes/snow/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/arid/<num>.png", "dynamicsRange": [ 1, 50 ], "baseCount": 4 } }, { "op": "add", "path": "/terrestrialGraphics/elysiummidnight", "value": { "baseImages": "/celestial/system/terrestrial/biomes/midnight/maskie<num>.png", "liquidImages": "", "dynamicsImages": "/celestial/system/terrestrial/dynamics/arid/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumscorchedcity", "value": { "baseImages": "/celestial/system/terrestrial/biomes/scorchedcity/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumearth", "value": { "baseImages": "/celestial/system/terrestrial/biomes/garden/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ], "baseCount": 5 } }, { "op": "add", "path": "/terrestrialGraphics/elysiumocean", "value": { "baseImages": "/celestial/system/terrestrial/biomes/ocean/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/ocean/<num>.png", "dynamicsRange": [ 1, 20 ] } }, { "op": "add", "path": "/terrestrialGraphics/elysiumvolcanic", "value": { "baseImages": "/celestial/system/terrestrial/biomes/volcanic/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 30 ] } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/0/planetaryTypes/-", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/1/planetaryTypes/-", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/systemTypes/White/orbitRegions/2/planetaryTypes/-", "value": { "weight": 0.04, "item": "ElysiumPool" } }, { "op": "add", "path": "/planetaryTypes/ElysiumPool", "value": { "satelliteProbability": 0, "baseParameters": { "worldType": "Terrestrial", "description": "An Elysium Planet", "smallImage": "/celestial/system/planet_small.png", "terrestrialType": [ "elysiumvolcanic", "elysiumocean", "elysiumscorchedcity", "elysiumearth", "elysiummidnight", "elysiumsnow", "elysium" ] }, "variationParameters": [{ "imageScale": 0.075, "smallImageScale": 0.4, "worldSize": "small" }, { "imageScale": 0.1, "smallImageScale": 0.5, "worldSize": "medium" }, { "imageScale": 0.15, "smallImageScale": 0.6, "worldSize": "large" } ] } } ]

By switching the add paths from
"path": "/systemTypes/White/orbitRegions/<x>/planetaryTypes/3"
TO
"path": "/systemTypes/White/orbitRegions/<x>/planetaryTypes/-"
You ensure compatibility with future updates and most universe generation mods by adding adaptively to the bottom of the list rather than a locked position, while retaining the exact same functionality.
最後修改者:Azure Fang; 2017 年 7 月 23 日 上午 6:59
Amber Talamasca  [開發人員] 2017 年 7 月 24 日 下午 1:58 
ok, i'll work the second option into my mod. will test it later this week and throw it up there.. thanks!
Azure Fang 2017 年 7 月 24 日 下午 2:11 
引用自 Amber Talamasca
ok, i'll work the second option into my mod. will test it later this week and throw it up there.. thanks!
Not a problem. Glad I could help!
< >
目前顯示第 1-3 則留言,共 3
每頁顯示: 1530 50