Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 11-05-2015, 12:30 AM   #3226
Interceptor
Orbinaut
 
Interceptor's Avatar
Default

Quote:
Originally Posted by Marg View Post
 I wanted to write down that smoke during lift off is still visible below ground level in d3d9 client...
which version orbiter beta,or orbiter 2010?
Interceptor is offline   Reply With Quote
Old 11-05-2015, 07:26 PM   #3227
Marg
Orbinaut
Default

in Orbiter Beta...
Marg is offline   Reply With Quote
Thanked by:
Old 11-07-2015, 11:59 AM   #3228
asbjos
tuanibrO
 
asbjos's Avatar
Default

While launching a scenario with OrbiterBeta (v.151104) with D3D9Client for Orbiter Beta r38 found here (http://orbiter-forum.com/showthread....postcount=3210), I get an error saying
Quote:
D3D9Client Initialization Failed
DirectX Runtimes may be missing. See /Doc/D3D9Client.doc for more information
I have gotten this the last few weeks with several versions of Orbiter and D3D9Client (but this is a new computer, so I have never gotten it to work).
But D3D9Client works on Orbiter2010. Any tips?

---------- Post added 7th Nov 2015 at 12:59 ---------- Previous post was 6th Nov 2015 at 20:13 ----------

By the way, Orbiter.log:
Code:
**** Orbiter.log
000000.000: Build Oct 31 2015 [v.151031]
000000.000: Timer precision: 3.94757e-007 sec
000000.000: Found 0 joystick(s)
000000.000: Module AtlantisConfig.dll .... [Build 150906, API 150906]
000000.000: Module AtmConfig.dll ......... [Build 150906, API 150906]
000000.000: Module DGConfigurator.dll .... [Build 150906, API 150906]
000000.000: Module D3D9Client.dll ........ [Build 151030, API 151028]
000000.000: 
000000.000: **** Creating simulation session
000000.000: D3D9Client: [DirectX 9 Initialized]
000000.000: D3D9Client: Sytem has XNA math support
000000.000: D3D9Client: [3DDevice Initialized]
000000.000: D3D9Surface.cpp Line:2274 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)
000000.000: D3D9TextMgr.cpp Line:581 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)
000000.000: D3D9Pad.cpp Line:107 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)
000000.000: D3D9Effect.cpp Line:251 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, 0, 0, &FX, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/D3D9Client.fx)
000000.000: D3D9Client: [Compiling Effects for Shader Model 3.0]
000000.000: PlanetRenderer.cpp Line:137 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, 0, 0, &pShader, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/Surface.fx)
000000.000: Scene.cpp Line:2016 Error:-2147024770 D3DXCreateEffectFromFile(pDev, name, 0, 0, 0, 0, &FX, &errors)
000000.000: Failed to create an Effect (Modules/D3D9Client/SceneTech.fx)
I'm using Windows 10, vanilla Orbiter install, only with required texture packs. Orbiter.exe with inline client works.
asbjos is offline   Reply With Quote
Old 11-07-2015, 11:10 PM   #3229
kuddel
Donator
Default

Quote:
Originally Posted by asbjos View Post
 While launching a scenario with OrbiterBeta (v.151104) with D3D9Client for Orbiter Beta r38 found here (http://orbiter-forum.com/showthread....postcount=3210), I get an error saying
[...]
I have gotten this the last few weeks with several versions of Orbiter and D3D9Client (but this is a new computer, so I have never gotten it to work).
But D3D9Client works on Orbiter2010. Any tips?
[...]
I'm using Windows 10, vanilla Orbiter install, only with required texture packs. Orbiter.exe with inline client works.
Hi, I am not sure what exactly your setup is so my 'tips' might be wrong.
First: Do you *always* get the error on your new machine? Or only on some installations. If only some installations fail, this might be due to Win10 behavior I can't reproduce (I am working on Win7 and have no experience with Win10).

Second: Did you install the runtime libraries? The message "DirectX Runtimes may be missing" assumes that you did not.
The download location for the runtime libraries are in the D3D9Client documentation (as stated by the error message).

Sorry if I can't provide any better help.
/Kuddel

Last edited by kuddel; 11-07-2015 at 11:12 PM.
kuddel is offline   Reply With Quote
Thanked by:
Old 11-08-2015, 10:15 AM   #3230
asbjos
tuanibrO
 
asbjos's Avatar
Default

Quote:
Originally Posted by kuddel View Post
 Hi, I am not sure what exactly your setup is so my 'tips' might be wrong.
First: Do you *always* get the error on your new machine? Or only on some installations. If only some installations fail, this might be due to Win10 behavior I can't reproduce (I am working on Win7 and have no experience with Win10).

Second: Did you install the runtime libraries? The message "DirectX Runtimes may be missing" assumes that you did not.
The download location for the runtime libraries are in the D3D9Client documentation (as stated by the error message).

Sorry if I can't provide any better help.
/Kuddel
Yes, the D3D9Client for Beta always gives me this error when loading up a scenario. But the D3D9Client works for Orbiter2010, and both Orbiter2010 and OrbiterBeta work with inline graphics.
Yes, I have the runtimes linked to in the documentation installed. Dxdiag tells me I have DirectX version 12.

And yes, I use Windows 10 (Intel Core i7-4720HQ, Intel HD Graphics 4600, NVIDIA GeForce GTX 950M).
asbjos is offline   Reply With Quote
Old 11-08-2015, 07:19 PM   #3231
kuddel
Donator
Default

Quote:
Originally Posted by asbjos View Post
 Yes, the D3D9Client for Beta always gives me this error when loading up a scenario. But the D3D9Client works for Orbiter2010, and both Orbiter2010 and OrbiterBeta work with inline graphics.
Ah! This might be the clue.
Note that there are two different releases for D3D9Client:
one for Orbiter BETA (named like D3D9ClientBeta12-forBETA r##(r#####).zip )
and one for Orbiter 2010-P1 (named like D3D9ClientR15-for2010-P1(r#####).zip )!
You cannot mix these. Be sure you download and install the correct release for the installation.

/Kuddel
kuddel is offline   Reply With Quote
Thanked by:
Old 11-08-2015, 10:31 PM   #3232
asbjos
tuanibrO
 
asbjos's Avatar
Default

Quote:
Originally Posted by kuddel View Post
 Ah! This might be the clue.
Note that there are two different releases for D3D9Client:
one for Orbiter BETA (named like D3D9ClientBeta12-forBETA r##(r#####).zip )
and one for Orbiter 2010-P1 (named like D3D9ClientR15-for2010-P1(r#####).zip )!
You cannot mix these. Be sure you download and install the correct release for the installation.

/Kuddel
I did not mix them. I used D3D9ClientBeta12-forBETA r38(r37214).zip for OrbiterBeta and D3D9ClientR15.zip for Orbiter2010
But as I'm the only one reporting this problem, I guess it's something on my end.
I will not take too much of your time, so I will just accept the problem, and hope that everything magically works by the next release.
I will notify you if it suddently works later. Thank you for your time.
asbjos is offline   Reply With Quote
Old 11-09-2015, 12:19 AM   #3233
jarmonik
Beta Tester

Default

Latest beta build requires d3dx9_43.dll instead of d3dx9_42.dll. So the required DX run-times are newer/later than February 2010. Very likely June 2010 if I remember correctly.
jarmonik is offline   Reply With Quote
Thanked by:
Old 11-09-2015, 08:00 AM   #3234
asbjos
tuanibrO
 
asbjos's Avatar
Default

Quote:
Originally Posted by jarmonik View Post
 Latest beta build requires d3dx9_43.dll instead of d3dx9_42.dll. So the required DX run-times are newer/later than February 2010. Very likely June 2010 if I remember correctly.
Thank you! After downloading the new runtimes, it works swimmingly!
asbjos is offline   Reply With Quote
Old 11-17-2015, 05:41 PM   #3235
fred18
Addon Developer

Default

Hi there,

is there any limit to dialogs with D3D9? I'm having a CTD while defining the 9th dialog as dialogParam, while this is not happening with inline client.
Since the procedure is exactly the same of the previous eight I wonder if the problem is within d3d9 client.

a bit of code:
The main dialog process function (the added redline is the one causing the CTD):
Code:
switch (uMsg) {
case WM_INITDIALOG: 
	{
	InitDialog(hWnd,uMsg,wParam,lParam);
	SetDlgItemText(hWnd,IDC_FILENAME,CompleteFileIniName);
	SendDlgItemMessage(hWnd,IDC_FILENAME,EM_SETREADONLY,TRUE,0);
				
	hChild[CD_VIEW]= CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_VIEWTXT),hDlg,DlgProcViewTxt,LPARAM(this));
	hChild[CD_FAIRING]= CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_FAIRING),hDlg,DlgProcFairing,LPARAM(this));
	hChild[CD_PLD]= CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_PAYLOADS),hDlg,DlgProcPld,LPARAM(this));
	hChild[CD_PARTICLE] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_PARTICLE),hDlg,DlgProcParticle,LPARAM(this));
	hChild[CD_MISC] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_MISC),hDlg,DlgProcMisc,LPARAM(this));
	hChild[CD_TEX] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_TEX),hDlg,DlgProcTex,LPARAM(this));
	hChild[CD_BOOSTER] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_BOOSTERS),hDlg,DlgProcBooster,LPARAM(this));
	hChild[CD_CURVE] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_BOOSTER_CURVE),hDlg,DlgProcCurve,LPARAM(this));
	hChild[CD_STAGE] = CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_STAGES),hDlg,DlgProcStage,LPARAM(this));
	ShowWindow(GetDlgItem(hWnd,IDC_SAVEINI),SW_HIDE);
	return FALSE;
	}
the dialog param process function is simply:
Code:
BOOL DevModeDlg::StageProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return oapiDefDialogProc (hWnd, uMsg, wParam, lParam);
}
I used the very same procedure for other 8 dialogs and this is working with inline, so I cannot figure out what disturbes d3d9

EDIT: I'm using orbiter BETA
fred18 is offline   Reply With Quote
Old 11-17-2015, 06:54 PM   #3236
fort
Orbinaut
Default

Quote:
Originally Posted by jarmonik View Post
 Latest beta build requires d3dx9_43.dll instead of d3dx9_42.dll. So the required DX run-times are newer/later than February 2010. Very likely June 2010 if I remember correctly.
d3dx9_43.dll, 26/05/2010 here.
fort is offline   Reply With Quote
Old 11-17-2015, 08:44 PM   #3237
kuddel
Donator
Default

Quote:
Originally Posted by fred18 View Post
 Hi there,

is there any limit to dialogs with D3D9? I'm having a CTD while defining the 9th dialog as dialogParam, while this is not happening with inline client.
Since the procedure is exactly the same of the previous eight I wonder if the problem is within d3d9 client.
The D3D9Client doesn't do anything with any CreateDialogParam() calls. It's just the win32 library (User32.lib/dll) function you are using.

Did you really make the hChild member big enough to hold 9 handles?
And is CD_STAGE really defined as 8?

Sometimes the most obvious things are hardest to see*
[*] personal experience

Quote:
Originally Posted by fred18 View Post
 I used the very same procedure for other 8 dialogs and this is working with inline, so I cannot figure out what disturbes d3d9

EDIT: I'm using orbiter BETA
This is strange, but there is nothing in the D3D9Client that should interfere with the CreateDialogParam() calls. But as every DLL used memory different, the behavior is unpredictable when e.g. the Array is not big enough.

Last edited by kuddel; 11-17-2015 at 08:46 PM.
kuddel is offline   Reply With Quote
Old 11-17-2015, 09:21 PM   #3238
fred18
Addon Developer

Default

Thanks!

yep basics were fine and checked already: CD_STAGE is actually 1 and hChild i hChild[10] (I'm not over yet).

What I found out is that it's the dialog itself that is causing some troubles: i tried to use another dialog and it worked. For the time being I'm keeping the work with the inline, in order to see if I found out what element of the dialog is causing the crash with d3d9 (could be a combobox not filled in?).

---------- Post added at 22:21 ---------- Previous post was at 22:19 ----------

Quote:
Originally Posted by kuddel View Post
 Sometimes the most obvious things are hardest to see*
[*] personal experience
That's an absolute truth. Sometimes I start to write questions here in the forum and I find what the error is while writing. So if I get to the end of the message without finding the mistake I press submit, otherwise I press cancel
fred18 is offline   Reply With Quote
Thanked by:
Old 11-17-2015, 09:54 PM   #3239
SolarLiner
It's necessary, TARS.
 
SolarLiner's Avatar
Default

Quote:
Originally Posted by fred18 View Post
 That's an absolute truth. Sometimes I start to write questions here in the forum and I find what the error is while writing. So if I get to the end of the message without finding the mistake I press submit, otherwise I press cancel
That is why, I sometimes use my bedroom wall as a quiet listener to talk to him about my code and what I am writing. More than once I've been talking out loud to it, and then stopped, finally understanding what causes the bug I've been tracking for 3 days.

Using alternatives such as invisible aliens, or for waifus for the ones that want some realism thrown into the explaining experience might help if the plain wall version doesn't help.
SolarLiner is offline   Reply With Quote
Thanked by:
Old 11-18-2015, 03:04 AM   #3240
fred18
Addon Developer

Default

Situation is getting a bit worse. I get CTD with two specific windows when I try to open them plus some random CTD when I press buttons here and there in the various dialogs...

This does not happen at all with the inline client, which is totally stable, I can do pretty much whatever I want and nothing ever happens there.

Could it be related to this? (from the documentation)
Quote:
There is also a conflict between a GDI based dialog (i.e. pop-up) windows and
anti-aliasing in a true fullscreen mode which will disable the anti-aliasing.
Even if this happens in all full screen and in window mode...

---------- Post added at 04:04 ---------- Previous post was at 03:55 ----------

It seems also to be related to focus...

I have no idea of what happens with D3D9 and dialogs

This is really a big issue for me, I want my system to be fully compatible with both inline and D3D9 but there is something that D3D9 doesn't like about my dialogs
fred18 is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project

Tags
d3d9client, graphicsclient


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 08:18 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.