PDA

View Full Version : hon_update.exe that doesn't start HoN, for people that use mods



hitei
12-02-2011, 09:38 AM
Those of us that use mods need to re-apply them after every patch, but annoyingly enough, hon_update starts HoN after patching, forcing you to do the following if you don't use an alternative patcher:

1. Start HoN, download patch
2. Patch
3. Close HoN, update mods
4. Start HoN

This alternative hon_update won't start HoN after patching. It's the hon_update from 2.3.2, just with the call to CreateProcess replaced with NOPs.

If you know how to patch executables, just jump to 0x40233b and replace the call with NOPs.

Alternatively, use this Python script (not tested), passing it the path to hon_update.exe as the first parameter:

hon = open(sys.argv[1], "wb")
hon.seek(0x40233b)
hon.write("\x90"*6)
hon.close()

http://www.mediafire.com/?jb9ensie0r3iw37

Roguecube
12-13-2011, 10:04 AM
This is soooo cool, what about for the Linux based hon client?

hitei
12-20-2011, 10:14 PM
Upload just the hon_update and I'll do the same for it.

boblehest
04-28-2012, 07:53 PM
Gonna necrobump this one.
Not finding anything when I search for that string, but I tried to replace the call to CreateProcessW with noops, but the program crashes as a result (Maybe the callee is responsible for stack cleanup? My debugging skills are non-existant.)

Any idea what I'm doing wrong?

Edit: I figured it out, the callee was responsible for cleaning up the stack. I replaced the call (ff15 1c404000) with add esp 28 (81c4 28000000), and it seems to be working.