I'm putting in a few planned but missing features for IMS, one of which is the support for other starsystems (only really concerns thermodynamics). A long time ago I have written a framework for just such things for OrbiterGalaxy, a file format that allows developers to describe the system in more detail. It even got used in some cases.
Anyways, the only problem I'm really having is that I need the systems name from the scenario file. I thought opcLoadState might be the best way to go, since that information is at the beginning of the scenario file, and clbkLoadState gives me the scenario with the position already in the vessel block. The trouble is just, opcLoadState doesn't seem to get called in a vessel dll. Currently I just have the function defined in the cpp that contains #define ORBITER_MODULE, and it builds without problems, but it seems I have to register something more that the function gets called, or maybe it just can't be used from inside a vessel dll. Any advice?
Anyways, the only problem I'm really having is that I need the systems name from the scenario file. I thought opcLoadState might be the best way to go, since that information is at the beginning of the scenario file, and clbkLoadState gives me the scenario with the position already in the vessel block. The trouble is just, opcLoadState doesn't seem to get called in a vessel dll. Currently I just have the function defined in the cpp that contains #define ORBITER_MODULE, and it builds without problems, but it seems I have to register something more that the function gets called, or maybe it just can't be used from inside a vessel dll. Any advice?