Squ1zZy - Some Knowledge

Topics about game solutions, and success or failure in getting them to work.
squ1zzy
Insiders
Insiders
Posts: 251
Joined: 11 Jan 2007, 14:46

Squ1zZy - Some Knowledge

Post by squ1zzy »

Dope: Thanks for posting this!

Maybe it's a good idea to make a different tutorial to make a codecave?
User avatar
Paddy the Wak
Editors
Editors
Posts: 3436
Joined: 27 Jul 2004, 17:42

Squ1zZy - Some Knowledge

Post by Paddy the Wak »

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 !
El1iP3S01D
Posts: 6
Joined: 14 Nov 2007, 06:50

Resolution....

Post by El1iP3S01D »

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

Re: Resolution....

Post by squ1zzy »

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.
Tanuki
Posts: 2866
Joined: 07 Jul 2007, 23:55

Squ1zZy - Some Knowledge

Post by Tanuki »

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?
Mesh
Posts: 845
Joined: 28 May 2007, 03:10

Squ1zZy - Some Knowledge

Post by Mesh »

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.
User avatar
dopefish
Insiders
Insiders
Posts: 1514
Joined: 14 Apr 2007, 02:13

Squ1zZy - Some Knowledge

Post by dopefish »

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

Widescreen Fixer Twitter - https://twitter.com/widescreenfixer
Personal Twitter - https://twitter.com/davidrudie
El1iP3S01D
Posts: 6
Joined: 14 Nov 2007, 06:50

Squizzy...

Post by El1iP3S01D »

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

Re: Squizzy...

Post by squ1zzy »

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.
deve
Posts: 4
Joined: 27 Nov 2011, 22:26

squ1zzy wrote:I've decided to

Post by deve »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests