Search the Community
Showing results for tags 'addon development'.
The search index is currently processing. Current results may not be complete.
-
(new member) I've been tearing my hair out over this for the past 2-3 days. I'm currently making a simple mod that calculates if a flight is possible given current delta-v's. However, I cannot figure out how to get the delta-v's of a ship in an editor, nor able to even get any sign of a ship being detected. I think it has to do with ShipConstruct, but I can't figure out how to get current vessel as a Ship. It could also be Vessel that handles editor, but I found nothing suggesting that to be the case. I've skimmed through the class index on the API site, and found nothing. Does anyone know about this? I'm very new to C# modding.
- 3 replies
-
- 1
-
- modding question
- modding help
-
(and 3 more)
Tagged with:
-
Hello, I am trying to create my first addon for KSP and I am having problems detecting which biomes my active vessel is currently. I've looked through the API calls, class calls and some old code on Github but none of it has really helped. I feel like I am on the right track but hung up. Below is a snippet of my code where I am getting ready to detect the current biome my vessel is in. CelestialBody Body = new CelestialBody(); CBAttributeMapSO.MapAttribute[] biome = Body.BiomeMap.Attributes; I feel like my Body variable is the right route or maybe my FlightGlobals.activevessel. As far as I can tell, biome above just gives me a list of the current CelestialBody biomes, is that correct? In my code, I already have access to the Vessel class and the FlightGlobals class and my program is inheriting from : monobehavior. Any help or hints you can give would be greatly appreciated. Thanks.
- 4 replies
-
- biome
- biome detection
-
(and 1 more)
Tagged with: