Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: DirectX and Game Explorer Integration  (Read 5436 times)

0 Members and 1 Guest are viewing this topic.

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
DirectX and Game Explorer Integration
« on: February 08, 2008, 02:12:04 PM »

Hello,

I have a problem with the installation of my game and I need some help. I'm using Inno Setup to create a setup for my game and I add the following line at the end of my setup script to register the game in Vista's Game Explorer:

Code: [Select]
[Run]
Filename: "{app}\Game.exe"; Parameters: "-gameexplorer add"

The problem is that if I don't have the proper version of DirectX installed on the machine, this line causes WME to display an error regarding the missing DirectX dll. I'm well aware of the DirectX problem and I even prepared a game launcher to help the user install DirectX if it is missing, but the game launcher is designed to run when the user runs the game and not during the installation process.

Is DirectX needed during the Game Explorer registration? If it is not, then why does WME display that error message even if the "-gameexplorer add" parameter is used?

The same goes for the following line:

Code: [Select]
[UninstallRun]
Filename: "{app}\Game.exe"; Parameters: "-gameexplorer remove"

I get the DirectX error message when I uninstall the game if DirectX is not installed.

Thanks.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #1 on: February 08, 2008, 02:22:21 PM »

Which DLL? Are you using the Direct3D 9 version of WME?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Re: DirectX and Game Explorer Integration
« Reply #2 on: February 08, 2008, 02:47:47 PM »

Yes, I'm using the Direct3D 9. The error message says it can't find D3DX9_34.dll.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #3 on: February 08, 2008, 02:55:18 PM »

This DLL is linked statically to wme_D3D9.exe. Which means, it has to be present, no matter if wme is currently using it or not. The error is reported by Windows.
There's not much I can do about it, it's not feasible to load this one dynamically (that's what WME does with the other DX libraries). So I'm afraid your options are:
1) install DirectX first
2) include the DLL with your game (which technically violates DirextX EULA, however I've seen several commercial games doing it)
3) search the web for a minimal installer which only installs the D3DX library (someone's been maintaining those in the past) and install it prior to invoking the GameExplorer integration
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #4 on: February 08, 2008, 02:59:02 PM »

4) ugly but effective: include both the DX 8 and DX 9 versions of wme.exe, and use the DX 8 version to integrate with GameExplorer and DX 9 to actually run the game.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Re: DirectX and Game Explorer Integration
« Reply #5 on: February 08, 2008, 03:15:00 PM »

Ok, please explain how to do this.

I'm compiling my game with the Direct3D 9 version of WME and my resulting game has two files: Game.exe and Settings.exe. What do I need to do next in order to have also the DirectX 8 version of wme.exe?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #6 on: February 08, 2008, 03:53:45 PM »

You'd have to copy it manually from WME directory to your compiled game directory under a different name, and use that name when invoking the GE integration from your installer.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Re: DirectX and Game Explorer Integration
« Reply #7 on: February 11, 2008, 08:18:15 PM »

So if my final game folder now has Game.exe and Settings.exe, should I now copy the file wme.exe (of size 1,839,104 bytes) from the WME installation folder to my game folder, name it whatever I like, and then call it from the Inno Setup to register/unregister the Game Explorer integration?

Have I got it right?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #8 on: February 11, 2008, 10:46:47 PM »

Yes, that's what I meant.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Re: DirectX and Game Explorer Integration
« Reply #9 on: February 15, 2008, 12:40:19 PM »

I tried this and nothing happened. The Game Explorer remains empty after the installation. When I think of it, I don't understand how it can work at all. I mean, the gdf and the thumbnail reside in my Game.exe so how is the command:

Code: [Select]
Filename: "{app}\wme.exe"; Parameters: "-gameexplorer add"

supposed to know what to do?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: DirectX and Game Explorer Integration
« Reply #10 on: February 15, 2008, 12:49:37 PM »

Hm, right, stupid me. I forgot the GE info is stored in the executable, so this approach won't work...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.021 seconds with 18 queries.