Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tut]Hex editing non-strings.

Initiate Mage
Joined
Jun 23, 2015
Messages
48
Reaction score
15
All these tutorials teach you how to hex edit strings, but what about things that aren't strings? What about hex editing ints, shorts, longs, functions, variables?

Well first you need a good understanding of both hex and c++/C#/c assembly



but to start off small we'll just turn Psiken dog into an NPC.

You need to understand how we can turn a monster into an NPC.

http://forum.ragezone.com/f901/tut-adding-custom-monsters-npcs-1052220/

Why would you hex edit this? Because Nifskope cannot edit the Psykendog.kfm file. I've tested it on other versions and other servers.

In order to turn the dog into an NPC all we need to do is replace the event code "102000" with "101000" and then we can test it out by setting an NPC to use that folder.

Open the Psykendog.kfm file in HxD and search for the string "psykendog_Bip01_Stand.kf"
spectra51 - [Tut]Hex editing non-strings. - RaGEZONE Forums


Now find a decimal to hex converter.



You'll find that "102000" converts to the hex "18E70" = "1 8E 70" = "01 8E 70"

Mind you, hex is read backwards so it should look something like this: "70 8E 01"
Do not just flip it "07e81" is not the correct value, you need to reorganize the hex values.

Now you just have to look around and see what looks like "70 8E 01" because it will be very close to the string or at least in between it and another string.
spectra51 - [Tut]Hex editing non-strings. - RaGEZONE Forums


Now you have to find out what 101000 is in hex. The converter will give you "18A88" and this translates to "88 8A 01". Make sure when editing you replace the values and do not simply add to them because you can damage the structure.

spectra51 - [Tut]Hex editing non-strings. - RaGEZONE Forums


For testing you can just replace an existing NPC's "Filename" column in MobViewInfo.shn

spectra51 - [Tut]Hex editing non-strings. - RaGEZONE Forums


Now you can have Psiken's dog as an NPC without worrying about nifskope breaking your client.
 
Back
Top