Patches with Blitz

Blitz3D Forums/Blitz3D Beginners Area/Patches with Blitz

MattVonFat(Posted 2004) [#1]
Is it possible to make patches in blitz? If so can anyone give me some help? I cant see how it is possible to edit a program that has already been compiled.

Matt


soja(Posted 2004) [#2]
Well, to edit a program that is already compiled (like an exe), you would use ReadFile, WriteFile, ReadByte, WriteByte, etc.

Of course, if the pre-patched and post-patched file sizes are different (like if you changed the code and re-compiled), it makes it considerably harder. But if you're just editing string tables (like for a language hack) or something, I don't see a reason why you can't use this method.


jhocking(Posted 2004) [#3]
Often (not just in Blitz) "patches" are a new compiled exe which overwrites the old. The exe is tiny compared to the other files for a game (ie. images, sounds, etc.) so including a new exe as part of a patch is usually not a big deal.


Kev(Posted 2004) [#4]
its possable using blitz and some external dll calls im doing this in blitzlockit to patch new anti crack code into the final compiled execuable file.


Ice9(Posted 2004) [#5]
Patches before the internet and high speed use to be downloaded via modem from the manufacturer. To limit the amount of data that would have to be transfered they just did a binary compare on the new exe to the old exe and only sent the data that was needed to change the old one.
With the internet and higher transfer rates that's no longer needed. just over write the executable with a new one.


Agamer(Posted 2004) [#6]
@Arbitrage thats not really true. ID your programs 100mg and you only want to patch one thing you need t o make a patch see


mearrin69(Posted 2004) [#7]
Except I doubt your executable would be 100mb unless you're binding content (images, models, etc.) directly to the exe. I don't know many programs that are anywhere near that large - if any.
M


MattVonFat(Posted 2004) [#8]
Ok thanks for all your help. The way fils are made up is becoming easier to understand from the ASCII to Binary and vice versa scripts. Thanks for all your help on this subject, youve helped alot!!


xmlspy(Posted 2004) [#9]
.