Search the Community
Showing results for tags 'getinfo'.
-
For my mod I would like to access information in the CFG file, that is not loaded by KSP. Specifically I can have two (or more) atmosphereCurve nodes, which I found no way to get KSP to load automatically into my class like [KSPField] does. What I do with the nodes is to switch the curve when enginemode is switched. However, I can/do load them using "part.partConfig.GetNode(..)". This is not possible in the "GetInfo()" method of the PartModule, and does therefore limit me in which information I can give in game... I implemented a workaround, defining two fields for vac/atm values. However, this is ugly and not that flexible. Is there a way to get access to the cfg file info in the "GetInfo()" method? Reference code: https://github.com/WarezCrawler/Guybrush101/blob/master/GTI_MultiModeEngine/MultiModeEngine.cs
- 6 replies
-
- partmodule
- getinfo
-
(and 1 more)
Tagged with: