.dll Question Modified DeltaGlider.dll not working after computer rebuild

Stebb

New member
Joined
Feb 5, 2018
Messages
16
Reaction score
4
Points
3
Hi,

Some time ago I modified the DeltaGlider source code located in the Orbiter2016 SDK in order to alter some DG's attributes. e.g. Exhaust smoke appearance and behaviour, greater degree of movement to aerodynamic control surfaces and a tweak to allow vertical lift-offs from Earth with a full fuel load etc.. It compiled (for release) successfully and after some iterations all mods worked perfectly. The modified .dll was bigger at 518KB than the original DeltaGlider.dll which is 308KB, despite only tweaking existing code and not adding any code at all. I had used the modified version for months without issues.

After a computer rebuild with new SSD and Windows11 installed, I copied across a complete back-up copy of my working build of Orbiter2016 expecting it to work with no problem on the new system. First issue : There wasn't a Video tab visible on the Orbiter_ng Launch window despite D3D9 being selected in the Modules list. The cure was to download DirectX which then allowed Orbiter to run beautifully.

However, the modified DeltaGlider.dll did not work properly. External view of the DG was not present/visible. Only the glass cockpit view of the MFDs were visible. 2D and Virtual cockpit views were not accessible and all controls not operational.

Orbiter Log shows
============================ ERROR: ===========================
Could not load vessel module: DeltaGlider
[Vessel::LoadModule | .\Vessel.cpp | 5747]
===============================================================


The modified .dll was compiled using Visual Studio C++ 2017 which is not present on the new build computer. I'm guessing that the modified .dll needs to access some resource which is not currently present. I'm thinking that some version of .NET Framework may be required or perhaps C++ Runtime Libraries need to be downloaded. I am a bit out of my depth on these things.

Many thanks in advance for any help or advice to get it working again.
 
The modified .dll was compiled using Visual Studio C++ 2017 which is not present on the new build computer. I'm guessing that the modified .dll needs to access some resource which is not currently present. I'm thinking that some version of .NET Framework may be required or perhaps C++ Runtime Libraries need to be downloaded. I am a bit out of my depth on these things.

Yep, seems likely you're missing the Microsoft Visual C/C++ runtimes for the version of visual studio your DLL was built against. You can get that here -> https://learn.microsoft.com/en-us/c...-170#latest-supported-redistributable-version - you want to download the x64 and x86 files and just install both of those. That one package includes all the redistributables for 2015->2022.
 
Thanks, those redistributable files were already present in my list of installed apps. Nevertheless, via your link I downloaded and installed the x64 and x86 Visual C++ Redistributables 2015 - 2022 14.44.35211.

Unfortunately the modified DeltaGlider.dll still doesn't work.

I also already had previously downloaded and installed x64 and x86 Visual C++ 2010 10.0.40219 redistributables. Perhaps I should try uninstalling these just in case they interfere with the VC++ 2015-2022 Redists.

Could .NET Framework have any connection with this issue ? Or perhaps the location of the new installation of Orbiter on the C drive being different from the original might affect things. Original location was C:\Orbiter2016. New location is C:\Sims\Orbiter2016
Any pointers would be greatly appreciated.
 
Ok... Problem was solved simply by installing Visual Studio C++ 2022. My modified DeltaGlider.dll is now working again ! It would be interesting to know why this is the case though ?

Another mod, not mentioned above, that I inflicted on the DG was to, in effect, reduce the undercarriage to ground contact friction which now allows the rudder to adjust course while accelerating for take-off. It also allows a rogue pilot like me to slew the DG sideways by applying one wheel brake, or even do a 180 hand-brake turn at a 100 Knots on the runway. So realistic !

But seriously, thanks Xyon for your assistance.
 
Back
Top