@Corjan
I am trying to retrieve a file located somewhere in the Xplane folder.
Since AM has no way I know of to retrieve the current XPlane installation path (such feature would be GREATLY useful), I ended up by writing a two line FlywithLua script to get the current path.
The FlywithLua is as follows
Code: Select all
install_string = create_dataref_table("JZ/install_path", "Data")
install_string[0]=AIRCRAFT_PATH
"D:\XP11 BETA/X-Plane 11/Aircraft/T-6A Texan II/"
But when I try to reuse this path in static_data_load()
Code: Select all
data=static_data_load("D:\\XP11 BETA\\X-Plane 11\\Aircraft\\T-6A Texan II\\".."UHF_Presets.txt")
Code: Select all
data=static_data_load("D:/XP11 BETA/X-Plane 11/Aircraft/T-6A Texan II/".."UHF_Presets.txt")
Code: Select all
WARN - logic.lua:221: Static data file 'D:\XP11 BETA\X-Plane 11\Aircraft\T-6A Texan II\UHF_Presets.txt' not found in resource folder
Jacques