Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 19:50

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: Help with DirectDraw proxy dll
PostPosted: 07 Jun 2009 16:07 

Joined: 31 Jan 2009 04:46
Posts: 18
I want to draw something on a directdraw game's screen.
So i find the proxy dll project here.
http://www.mikoweb.eu/
And i find the directdraw proxy dll ,but it has no own stuff to show how to draw something to a directdraw game's screen.
I sent a mail to the author,but the author also have no solution of it.
Can you take a look of it and find a way to draw something to a directdraw game's screen? Or can you make a new ddraw proxy dll?


This is the mail from the author
---------------------------------
Hello there,
thanks for the kind words. I did have a look into the code. You did a lot of good work creating the myIDDrawSurface7 !

Please have a look at ???myIDDraw::CreateSurface???. Here, I added the creating of our own ???myIDDrawSurface7??? object and passing the new pointer back to the caller. So that the proxy code gets called afterwards. For testing, I used a free game that needs DX7, downloaded from the internet: ???BoXiKoN.exe???.

As you can see (picture attached), DebugView now reports the creation of a ???myIDDrawSurface7 object???, but I ran into an endless loop of lock/unlock/blt afterwards.

So, this solution might not be complete yet (or it is a problem in ???BoXiKoN.exe???).
The project is here for download. Gmail wouldn???t let me send it directly. Bah. http://www.mikoweb.eu/tmp/work_ddrawproxy_1.1_mod.zip

You could test this with your target application and see if there is the problem, too.
Sorry for not having a solution ???out of the box???. I did think about it some time now, but couldn???t find a solution yet.
Please tell me about your findings.

Greetings

Michael


Attachments:
work_ddrawproxy_1.1_mod.zip [245.21 KiB]
Downloaded 161 times
Top
 Profile  
 
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 07 Jun 2009 21:33 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the problem is that personally I have really zero experience with directx, I don't know where to start too for showing the object on the screen.
sorry


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 09 Jun 2009 05:47 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
kind a same here, i don't know much about directX (exept what it is and what it does) however i may know what may help. There is a tool called DX9 Window Overlay DLL 2.0 which should do what you want. i have only heard of it and never used, so don't ask me how, ask Racer_S.


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 09 Jun 2009 10:01 

Joined: 31 Jan 2009 04:46
Posts: 18
Very thanks!


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 14 Jun 2009 10:27 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm other than having just no documentation that project doesn't seem to do what stevenx needs


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 20 Jun 2009 19:18 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
never tried it because ...
uh only reason what i can think of why anyone would need to put some text on game is for videos (like for youtube..etc) and i always do it after i record the video, with camtasia or after effects (after fx)


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 21 Jun 2009 15:39 

Joined: 31 Jan 2009 04:46
Posts: 18
I want to draw text on game's screen beacuse i want to translate it.
I want to recognize the english subtitle in backsuface and draw chinese subtitle in frontsuface to translate the game.


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 21 Jun 2009 15:40 

Joined: 31 Jan 2009 04:46
Posts: 18
The DX9 Window Overlay DLL 2.0 is not for DirectDraw,it is not a proxy dll ,but anyway thanks for you, Sethioz .


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 23 Jun 2009 12:07 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
so you wanna translate a game with the overlay ? isnt there better methods, like modding some language files ?


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 23 Jun 2009 17:23 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
then as far as I know almost no games use the overlay method, usually they convert each character in the string to an image (the font version of that char) through the GetGlyph* function and then each image is pushed on the screen.
this is only an example obviously


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 24 Jun 2009 20:51 

Joined: 26 Apr 2008 21:50
Posts: 27
You may wants to modify directly the string in the binary, but you may have troubles if your string is bigger than the actual one. Try to use a hex editor and take a look into the binary or game resources files. It may be more cleaner to do that than filtering the messages.


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 25 Jun 2009 10:09 

Joined: 31 Jan 2009 04:46
Posts: 18
Thanks for all the advices!
I know the way you said above,i just want to find a way when all above the methods are failured.
My language is chinese, two byes language ,so just edit subtitle in the resource file is difficult to translate them.

So,I want to find another way,for example.proxy dll.
I already have working dx3d9 proxy dll,but no ddraw one.
I just know a little of OD,so this way maybe easier for me.


Top
 Profile  
 
 Post subject: Re: Help with DirectDraw proxy dll
PostPosted: 25 Jun 2009 10:49 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
wait, it's 2 bytes in UTF-16 but you don't have this problem in UTF-8 which should be the default charset used (if the english text occupies 2 bytes for each char it's UTF-16).
for example some games use the windows fonts to generate the bitmap chars to put on the screen (the GetGliphOutline thing about I talked before) and they decide the needed font and the charset using the CreateFont function.

for example a japanese game will set the charset of CreateFont to SHIFTJIS_CHARSET (128), an english one to ANSI_CHARSET (0) and I guess the chinese one is CHINESEBIG5_CHARSET (136).
well I have had experience with this stuff only on a series of japanese games made by the same developers (Ys) and worked so I don't know if it's the same also in your case.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron