Addon icon

OHM D3D9 for Orbiter 2016 R4.26

Hello "kuddel"
thanks for your help, :salute:
i created the StartOrbiter.bat file
but i have some questions:
  • where is the Orbiter-Root folder in which to put the StartOrbiter.bat file?
  • my Orbiter is installed on the external hard drive D/ do i have to change the writing of the code?
  • i have to launch StartOrbiter.bat then start Orbiter?
  • i have to do it every time?

Sorry but i am not comfortable with programming :(
 
Hi,
no need to be sorry - let's try to answer your questions:

where is the Orbiter-Root folder in which to put the StartOrbiter.bat file?
The folder where Orbiter_ng.exe and Orbiter.exe are located.

my Orbiter is installed on the external hard drive D/ do i have to change the writing of the code?
No, the (.bat) Script is "location agnostic". As long as it is located where Orbiter_ng.exe and Orbiter.exe are located, it should work everywhere.

i have to launch StartOrbiter.bat then start Orbiter?
No. Just run (double click) the (.bat) Script and it starts Orbiter (NG Version) direct.
(This is done by tthe last line on the script.)

i have to do it every time?
No, but it doesn't hurt.
But you must start ist whenever you have changed something in the Config folder(s).
So it's best -and easier- to just use it every time.

Please just ask if you have any further questions.
 
Hello "Kuddel"
well it worked.
the Config file was created with everything inside.

Another question, after launching the StartOrbiter.bat file, I have a black window that appears for about 10 seconds



then Orbiter.ng opens.
Just to know if this is normal
 
Yes it is!
Dont' worry. That is just the cmd shell[*] that is still open.
I might improve the (shell-)script so that this "atrifact" will close itself too, but I'll have to think about how ;)
You see: This is working, but far from being perfect ;) The last tiny bits are the hardest. That's what even seasoned programmers face ALL the time :D.

[*] Command shell: This is what executes the script. The "window" just stays open, as I have forgot to tell it to close.
 
Addendum:
Just add this line at the end of the script and it will close:
exit 0

So "the complete" Script looks like this:
@echo off

rem **********************************************************************
rem For Filesystems that do not support Symbolic-Links (ExFAT for example)
rem This just makes a copy before starting Orbiter
rem **********************************************************************

if exist "Modules\Server\Config" (
rmdir /S /Q "Modules\Server\Config"
)

xcopy "Config" "Modules\Server\Config\" /S /E /Q

Orbiter_ng.exe

exit 0

The lines starting with "rem" are just comments. Just to remind me what exactly this script is good for ;)
These line do nothing (noops[*]) and can be omitted - it's just very good practice to add them,
as it is clear what any script does (it's code after all), but it's the why that comments try to explain.

[*] No Operation
 
Hello "Kuddel"
I thank you for improving your code. :salute::salute::salute::salute:
Everything works very well, even if it is not very "clean" for a symbolic link, it fixes the problem on an external hard drive that is not in NTFS.

Besides, I do not understand why since the number of years that Orbiter2016 and D3D9 work together, no one has had the same problem as me.

In any case, I thank you again a thousand times "Ruddel" and I hope that your "provisional" solution is useful to others. 😉
 
Back
Top