Welcome Guest.   Make a donation to an author on the site December 20, 2014, 02:40:57 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: SOLVED: GDF File Reader  (Read 2799 times)
gameaddict20
Member
**
Posts: 24


Where is my crowbar?

View Profile WWW Give some DonationCredits to this forum member
« on: February 25, 2012, 06:11:19 PM »

It's me again. This time I think I have a tough challenge (possibly I really have no idea how hard it is going to be).
What I require is a GDF file reader, that is Game Definition File reader.
Under Win vista and 7 games are added to game explorer using a Game Definition File usually integrated into an exe or a dll which is basically an XML file embedded into that file.
I can retrieve the data with GDFTrace.exe which is available in the DirectX SDK but this program is copyrighted under Microsoft and so I cannot distribute it with my program, Photon Game Manager.
So what I require is a small app that when given the path to the file containing the GDF then outputs the GDF information to a file (with the text formatted in any way best for you).
Note: A sample file with a GDF in it is minesweeper found at "C:\Program Files\Microsoft Games\Minesweeper\minesweeper.exe"

Thank you for any help you provide

EDIT: The GDF data is also available from tools like Resource Editor but I can't find a command line tool
« Last Edit: February 26, 2012, 05:39:22 PM by gameaddict20 » Logged

Check out my large database of free games: http://thefreegamesdb.com
fenixproductions
Honorary Member
**
Posts: 1,181



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: February 27, 2012, 07:03:09 PM »

@gameaddict20
This one may be hard to implement because there seems to be is no easy way to be 100% sure where the GDF file is embedded in (i.e. Batman has BmGDFBinary.dll, Damnation - DamnGame.exe and Fallout 3 - GDFFallout3.dll).
The only possible solution would be to get some resource editor code and iterate through all exe/dll files looking for DATA\__GDF_XML and DATA\__GDF_THUMBNAIL binary resources but it is not efficient by any means.

Maybe the best would be to check Registry for just HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\GameUX\Game entries?
Or try to contact with guys behind these projects:
http://gameeditor.webnode.com/
http://www.extensiblesoft.com/gamex/
Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
gameaddict20
Member
**
Posts: 24


Where is my crowbar?

View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: February 28, 2012, 04:40:17 AM »

hi, thanks for your comment.
I've already found the registry entries that point to each games specific file containing the GDF. Its getting at the GDF that I am having problems with, I can do it with resource hacker and GDFTrace but both are copyrighted so I cannot distribute them with my program.
What I require is a program I can give an exe/dll path to and it dumps out the DATA\__GDF_XML and DATA\__GDF_THUMBNAIL to a path I specify on the command line.
Thanks again for any help
Logged

Check out my large database of free games: http://thefreegamesdb.com
gameaddict20
Member
**
Posts: 24


Where is my crowbar?

View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: March 01, 2012, 04:52:22 AM »

Never mind, after hours and hours (I really do mean hours!) I found a freeware program that is copyrighted but under the license allows me to distribute it.
But it was like finding a needle in a haystack.
For anyone interested its found here: http://www.nirsoft.net/ut...ls/resources_extract.html
Logged

Check out my large database of free games: http://thefreegamesdb.com
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.03s | Server load: 0.08 ]