Starbound

Starbound

TrueSpace
NorthWestTrees 2019 年 11 月 22 日 下午 12:34
Developer & Planet patching?
Does your mod support other mods with planets or do the developers of those mods have to patch their mod to work with True Space. If so how does a developer like my self go about patching there mod to get it working with True Space?
最后由 NorthWestTrees 编辑于; 2019 年 11 月 22 日 下午 12:34
< >
正在显示第 1 - 3 条,共 3 条留言
HammyHammerGuy  [开发者] 2019 年 11 月 22 日 下午 2:34 
I believe you setup a sub-bracket set in "celestial.config.patch" to test for True Space components, then have compatibility content added on in there:
Like for example:
[ [ Base Modded Stuff ], [ { "op":"test", "path":"/planetaryTypes/<Planet Type>/baseParameters/terrestrialType/-", "inverse": true },
Then follow it up with this several times over depending on how many planet biomes you got going on:
{ "op":"add", "path":"/planetaryTypes/<Planet Type>/baseParameters/terrestrialType/-", "value":"<Your planet biome here>" } ] ]
planetaryTypes would be: HotPlanet, WarmPlanet, MildPlanet, CoolPlanet, ColdPlanet, FrostyPlanet, DrkPlanet
satelliteTypes are similarly named but "NSat"s instead of "Planet"
You really only need one test to make sure True Space content is available to be used.
最后由 HammyHammerGuy 编辑于; 2019 年 11 月 22 日 下午 2:44
bk3000  [开发者] 2019 年 11 月 22 日 下午 8:37 
If you want an actual example of a mod that adds optional TS compatibility to their mod from their end - https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1397706778

Just in case you didn't understand the example. Oh one other thing is you should control load order in _metadata. That's because if you are testing for TS, you'd want to be sure your mod loads after. The example mod there does this of course.

edit: Let me know if you need help/have further questions.
最后由 bk3000 编辑于; 2019 年 11 月 22 日 下午 8:39
NorthWestTrees 2019 年 11 月 23 日 下午 3:38 
Thank you, this will help a tone! I will check the example out and see how it is set up, thank you again :)
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50