Jump to content


Patch File

  • Please log in to reply
5 replies to this topic

#1 VNS



  • Joined: 21-April 13

Posted 21 April 2013 - 11:16

What i want is:

When i click Button3, turn1.dll in destination folder is automatically moded inside (can be by decimal offset or hexadecimal)

Example: Change 0D to 00 that is in 200300 Offset (Hexadecimal mod)

#2 +Nik L

Nik L

    Where's my pants?

  • Tech Issues Solved: 6
  • Joined: 14-January 03

Posted 21 April 2013 - 12:16

What I want is:
Someone to do their homework?




  • Joined: 21-April 13

Posted 21 April 2013 - 12:36

nik louch if i know how do i dont ask for help.

#4 Andre S.

Andre S.


  • Tech Issues Solved: 17
  • Joined: 26-October 05

Posted 21 April 2013 - 15:14

All right, so you'll need to write a program that does that using some programming language, compile and run it! :) What are you looking for help with exactly and what technologies (language, libraries, etc) are you using?

#5 Lant


    Neowinian Senior

  • Tech Issues Solved: 1
  • Joined: 13-April 06

Posted 21 April 2013 - 15:43

const long offset = 200300;
const unsigned char to_write[] = { 0x00 };

FILE * f = fopen("turn1.dll", "rb");

fseek(f, offset, SEEK_SET);

fwrite(to_write, sizeof(unsigned char), sizeof(to_write) / sizeof(to_write[0]), f);


I've spent too long coding in C that it was the language I thought of for this, I need to go back to C# and Python!

Usually I wouldn't just give code, but this is such a trivial example in C that I may as well.
Also I'd like to point out this is untested, so make sure it writes the byte at the correct location in your test suite!
Also you will need to add a lot of error handling to this

#6 firey



  • Tech Issues Solved: 9
  • Joined: 30-October 05
  • Location: Alberta, Canada
  • OS: Windows 7
  • Phone: Android (4.4.2)

Posted 21 April 2013 - 15:49

Someone posted something like this a while back. I wrote a quick patching app not sure where it is but it was uploaded to here with source.