Log in

View Full Version : help with illegal toc


jop
March 1st, 2012, 20:41
hi, sorry to clog the forum with another thread,
but i am trying to patch a game to run without the cd.
it's an older game, with cd-checks. i am usually very
good at patching cd-checks, but this one appears to have an
illegal TOC. it doesn't call the getdrivetype function, but that
is not the problem. one of the data files reports as being
around 1.5 gb on a 650mb cdrom. i need to analyse the
game a bit more, but it appears to be calling getfilesize
to check it, but is there any way to rip the real data off the
file, although it has the illegal toc?

also, i will continue analysing the game to see if i can patch
the size checks.

any help would be much appreciated

Woodmann
March 1st, 2012, 22:34
Howdy,

PM the name.

Woodmann

evlncrn8
March 2nd, 2012, 11:00
it could use FindFirstFileA / W, file size can be obtained from that

jop
March 4th, 2012, 19:14
yes, it actually uses CreateFileA,FindFirstFileA,GetVolumeInformationA among others to verify the files.
i've bypassed the main checks, so the game works now without the CD, but it still pops up a few "no disk in drive" messages at startup, so clicking cancel will just let the game continue. what i think is happening is that the game is attempting to acces I: (my cd drive) in ntdll and windows is returning the error box.
anyway, here is some info on it : i've attached the patch list and some bits of code




00424D4E 6. Active JL 00424E01 NOP
00424DB6 2. Active JNZ SHORT 00424E01 NOP
00424DCD 2. Active JNZ SHORT 00424DED NOP
00424DDD 2. Active JNZ SHORT 00424DED NOP
004255B5 5. Removed CALL 00424CE0 NOP
00486663 14. Active JNZ SHORT 00486671 JMP SHORT 00486671
00486687 2. Active JNZ SHORT 00486691 JMP SHORT 00486691
004866FF 2. Active JNZ SHORT 00486712 JMP SHORT 00486712
0048687D 2. Active JE SHORT 00486891 NOP
00486888 2. Active JNZ SHORT 004868A5 JMP SHORT 004868A5

Aimless
March 6th, 2012, 10:16
Quote:
[Originally Posted by jop;92019]
...but it still pops up a few "no disk in drive" messages at startup, so clicking cancel will just let the game continue. what i think is happening is that the game is attempting to acces I: (my cd drive) in ntdll and windows is returning the error box...


And I hope you have first copied all files from the CD to the game folder, yes?

Have Phun

personmans
March 7th, 2012, 23:16
Mind PMing me the name as well?

I'm just curious