View Single Post
  #167  
02-10-2011, 07:10 AM
Namida's Avatar
Namida
Bolamite
 
: Feb 2010
: New Zealand
: 60
Rep Power: 0
Namida  (7)

:
Nope the game code loads compressed cams, whats done it done it can't be changed unless you use a proxy DLL as I already said which would unprotect the code section in memory and overwrite it (EXTREMELY dangerous thing to do).
Hm, wondering if you got what I meant...
I'll use the Commander Keen format as an example here.

The way it's compression works is that a byte of A7 marks a "near" reference, and a byte of A8 marks a "far" reference. Should either of those bytes actually be part of a word, the word is replaced with 00 Ax xx. However, someone had a genius idea of writing the most inefficient (but thus quick and simple) algorithm ever - no compression *at all*, it just puts the 00 in so A7 and A8 aren't interpreted as flags.

So... why couldn't something similar be done? (ie: the only modification from the uncompressed file is "escaping" (to use MySQL terminology.. xD) the flags) Of course I'm guessing there *is* some reason, but I'm wondering what it might be?
__________________
Signature

Reply With Quote