The Orbiter developer docs state that it is possible to add custom entries to the vessel's config file. I can't find an API function that allows these to be read. Does anyone know how to do this?
You can read the scenario files and vessel configuration files, but only inside clbkSaveState, clbkLoadState, opcSaveState, opcLoadState, clbkSetClassCaps, and sorry if I am forgetting any others.
You need to have the file handle, and the above functions provide you that. You can read parameters using:
oapiReadItem_bool, oapiReadItem_float, oapiReadItem_int, oapiReadItem_string, oapiReadItem_vec, oapiReadItem_nextline
Computerex to the rescue again! Yes, clbkSetClassCaps(FILEHANDE cfg) is passed the config file handle. I missed that one.
ED doesn't help that I am reading my huge printout of the Orbiter 060503 API doc rather than the latest version! I don't want to print it all again, it took me hours to file it all! /ED
ED doesn't help that I am reading my huge printout of the Orbiter 060503 API doc rather than the latest version! I don't want to print it all again, it took me hours to file it all! /ED