Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 17 Jun 2024, 06:03

All times are UTC [ DST ]




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Squ1zZy - Some Knowledge
PostPosted: 12 Dec 2007, 01:45 
Offline
Insiders
Insiders

Joined: 11 Jan 2007, 14:46
Posts: 251
Dope: Thanks for posting this!

Maybe it's a good idea to make a different tutorial to make a codecave?


Top
 Profile  
 


 Post subject: Squ1zZy - Some Knowledge
PostPosted: 12 Dec 2007, 09:39 
Offline
Editors
Editors
User avatar

Joined: 27 Jul 2004, 17:42
Posts: 3436
Thanks for the info guys ... especially squ1zzy for starting this ... 8)

It is a bit over my head right now but you never know ... :P

Really it is great that you are sharing your knowledge ... Thank you !


Top
 Profile  
 
 Post subject: Resolution....
PostPosted: 17 Dec 2007, 09:10 
Offline

Joined: 14 Nov 2007, 06:50
Posts: 6
Squizzy, what is the Hex for 1824x1026?


Top
 Profile  
 
 Post subject: Re: Resolution....
PostPosted: 17 Dec 2007, 13:26 
Offline
Insiders
Insiders

Joined: 11 Jan 2007, 14:46
Posts: 251
Squizzy, what is the Hex for 1824x1026?


Read the XVI32 tutorial in this thread. Convert Dec to Hex and flipflop the first two bytes with the last two bytes. So 1824 will be 0720. Flipflop and we have 2007. The same for 1026 in hex will be 0402 and after the flipflop 0204. So the value you need is 2007x0204.


Top
 Profile  
 
 Post subject: Squ1zZy - Some Knowledge
PostPosted: 17 Dec 2007, 18:22 
Offline

Joined: 07 Jul 2007, 23:55
Posts: 2866
First of all some offsets to set the resolution using an executable. Most executables I got from http://www.gamecopyworld.com since when the executable is packed you can't find the resolution using an hex-editor.


I have never encountered this until recently.

How often do companines format their exe files like this?

Once you find the values in the cracked version can you use that info to locate them in the original?


Top
 Profile  
 
 Post subject: Squ1zZy - Some Knowledge
PostPosted: 17 Dec 2007, 23:31 
Offline

Joined: 28 May 2007, 03:10
Posts: 845
personnaly I use the dec/hex calculator part of tsearch side by side with xvi32

while I can count in hex or even binary, there's no reason to do it the hard way.


Top
 Profile  
 
 Post subject: Squ1zZy - Some Knowledge
PostPosted: 18 Dec 2007, 13:33 
Offline
Insiders
Insiders
User avatar

Joined: 14 Apr 2007, 02:13
Posts: 1514
:?:

_________________
Widescreen Fixer - https://www.widescreenfixer.org/

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie


Top
 Profile  
 
 Post subject: Squizzy...
PostPosted: 20 Dec 2007, 01:37 
Offline

Joined: 14 Nov 2007, 06:50
Posts: 6
Your technique doesn't work...Can you help me? The game i'm playing is called Test Drive Unlimited....


Top
 Profile  
 
 Post subject: Re: Squizzy...
PostPosted: 23 Dec 2007, 14:28 
Offline
Insiders
Insiders

Joined: 11 Jan 2007, 14:46
Posts: 251
Your technique doesn't work...Can you help me? The game i'm playing is called Test Drive Unlimited....


Test Drive can't be patched using the executable. Maybe the resolution is set elsewhere. Don't know since I don't own the game.


Top
 Profile  
 
PostPosted: 29 Nov 2011, 17:37 
Offline

Joined: 27 Nov 2011, 22:26
Posts: 4
I've decided to make a tutorial using a freeware hex editor called XVI32. You can download it here:

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

Thanks to Mesh! ( There's a comma at the end of Mesh his link. To make that link to work remove the comma ;) )

Here we go:

Open XVI32:



Open the executable you want to edit. I've used NFS:Pro Street v1.0 that i've downloaded from http://m0003.gamecopyworld.com/games/pc_nfs_prostreet.shtml :



Hit control+F to find a HEX string. Were need to look for a resolution you can set in-game. I normally look for the lowest resolution possible to set in-game. For NFS:Pro Street it was 640x480. So we need to look for 640x480 in HEX. Use the windows calculator to check what 640 would be in HEX. Simply enter the value in decimal and hit the HEX button. You can see that 640 would turn up in 280. We need to flipflop the first 2 bytes with the third and forth byte. Since a calculator doesn't show a 0 we need to fill that before 280. So it would be 0280 ( we need 4 bytes ). So if it ever show up with 3 bytes, just add a 0 to the beginning.

So we got 0280 and we need to flipflop the bytes. 02 80 would be 80 02. Do a search for 8002:



The first hit would be this:



Ok we see the value 80 02 or 640 in decimal here. But nothing else. I don't see the 480 ( E0 01 ) value anywhere in the next 20 bytes. So we hit control+F again and hit enter. The next hit would show up:



Nothing usefull either. So we do it again ( control+F and Enter ). Sometimes you must do this multiple times to find the correct value. Sometimes it takes for about a half an hour to find it. At the next screenshot you can see the value 8002 ( 640 ) and E001 ( 480 ) pretty close to each other. Sometimes between the values it shows 00 00 so it would be 8002 00 00 E001 but that only 10% of the games i've done. So I just did a new search. You could do the first search for 80020000E001:



Now it's time to change it to whatever resolution you like and see if it changed the resolution. Let's say you want the resolution of 2560x1600 ( like I do ). Open the windows calculator and enter 2560 in decimal and hit the HEX radio button. It will turn up with A00. there's only 3 bytes so we add 0 in front of it so it would be 0A00. Now flipflop the first 2 bytes with the third and fourth and we got 00 0A. Edit E001 to with you liking. For me it was a vertical resolution of 1600 so it would turn up with 640, add a 0 to it that it would be 0640 and flipflop the values 40 06. Edit it like this:



Start the game, set the resolution to 640x480 and see if it runs at 2560x1600.


thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


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:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group