-
Ortho4XP for FSX/P3D
For those of you that are having trouble with resample and scenproc running. Here is what I had to do. But first a little explanation on why: running programs from within other programs usually involves cmd. But cmd does not like spaces in the cmd to be run. so setting the Ortho4XP_FSX_P3D.cfg files to ESP_resample_loc=F:\\Program Files\\Lockheed Martin\\Prepar3D v4 SDK 4.5.14.34698\\World\\Terrain\\resample.exe ESP_scenproc_loc=F:\\Program Files\\scenproc_latest_development_release_x64\\scenProc.exe will have issues running. See the F:\\Program Files - Program then a space then Files. Does not work. You need to quote these long pathnames with spaces, but adding quotes in the cfg file is not what you want to do. @kjjj11223344 The python program code in O4_ESP_Utils.py should change You can leave in the @0@ and @1@ in the default.spc files so it spawns the proper files. If you are brave and backup that file make the following change: (you are basically going to add the quotes in the code) near line 222 # TODO: cleanup processes when main program quits def worker(queue): # """Process files from the queue.""" for args in iter(queue.get, None): try: file_name = args[0] inf_abs_path = \"args[1]\" and near line 265 def run_scenproc_threaded(queue): # """Process files from the queue.""" for args in iter(queue.get, None): try: scenproc_script_file = \"args[0]\" scenproc_osm_file = \"args[1]\" texture_folder = \"args[2]\" spawn_scenproc_process(scenproc_script_file, scenproc_osm_file, texture_folder) except Exception as e: # catch exceptions to avoid exiting the # thread prematurely print('%r failed: %s' % (args, e,)) WARNING: if you don't understand python and the important thing about indentation - you can mess up the code so make a backup of this file. The \" basically adds quotes around the things to run the resample command and scenproc. This is what it looks like in my case without quotes and with F:\Program Files\scenproc_latest_development_release_x64\scenProc.exe F:\default.spc /run F:\Program Files\Ortho4XP_FSX_P3D\OSM_data\+40-090\+43-082\scenproc_osm_data\scenproc_osm_data0_0.osm F:\Program Files\Ortho4XP_FSX_P3D\Orthophotos\+40-090\+43-082\BI_12\ADDON_SCENERY\texture What happens is at the first space the cmd thinks it's done and there is no such program as F:\Program it needs to be quoted. "F:\Program Files\scenproc_latest_development_release_x64\scenProc.exe" "F:\default.spc" /run "F:\Program Files\Ortho4XP_FSX_P3D\OSM_data\+40-090\+43-082\scenproc_osm_data\scenproc_osm_data0_0.osm" "F:\Program Files\Ortho4XP_FSX_P3D\Orthophotos\+40-090\+43-082\BI_12\ADDON_SCENERY\texture" People that do things like make simple folder names without spaces don't have this issue and the program just works. Oh and since this is trying to run a program - windows does not like that security wise so run Ortho4x as admin too. Anyways this helped me. Thanks for the fantastic program for P3D You should see many windows running resample and scenproc all at the same time screenshot
ronh99
Members
-
Joined
-
Last visited