First thing is that you use "readInteger", "readString" etc, however, those method names can change very release! Such as the "readInteger". ;)
Printable View
I thought that the person who uses the program can use str + h to rename these strings..
But oke, I'll code a function which detects the names automatic :rolleyes:
--------------------------------------------------
Edit:
I added the automatic detection for the function names :)
http://puu.sh/aAeXd/4539a03a5f.png
Your program is pretty good, I also did a similar one.
This is an example output: http://pastebin.com/1hTs7X74
Is programmed in Java
I posted an updated version on GitHub. There is only one issue (Posted here: https://github.com/EmGeneer/Updater/issues)
The version on Git is more clean. Maybe someone can fix the duplicate error
http://puu.sh/aAQRb/4da5e92dc8.png
Finally fixed the duplicate error. The structure finder seems to work without bugs now. I'll push the update now on Git.. :=)
Still don't know how to get Habbo_script.txt , I had download AS3 Sorcerer .
http://puu.sh/aBmXM/3d5d358be2.png
http://puu.sh/aBnjN/3c113f2488.png
Later I'll set this on Git. I implemented the Levenshtein algorithm to compare the old structure with the new one.
And it compares the old parse method with the new one.
There is still a lot todo.
http://en.wikipedia.org/wiki/Levenshtein_distance
It is an algorithm to get the difference count from two strings. So there is some work left you have to do yourself :)
But I'm working on this. I have some problems with comparing a whole method.
But in my tests it updates 3/4 headers :)
Here is an example for a structure like "S,S"
There is only one match with 0 difference, so this is the packet..
http://puu.sh/aBnSP/af03e69cea.png