FLFacHash Tool
-
adoxa wrote:
Having decoded the faction hash algorithm, I would’ve thought you’d know how it generates the location hash, too.Oh, I know how to generate it all right. I apologize if I conveyed otherwise.
Like you wrote, it hashes the base name, prepends the hex as a string plus the underscore to the room name, and then hashes the new string. I have been manually determining location hashes using this process via the original FLHash.exe tool. I simply thought of the entire process as calling on the default hash algorithm twice, which was what I meant as “applied twice over”.
On another note, I spotted a minor error with FLFacHash’s output formatting. I’ve corrected the error and will re-upload once the problems with the Downloads are gone.
– The Haen.
-
It’s a command-line program! Try running it through the command host (cmd)
tried that and it tells me
Error, wrong number of arguments
whatever that means
-
Dragnite_MU wrote:
It’s a command-line program! Try running it through the command host (cmd)
tried that and it tells me
Error, wrong number of arguments
whatever that means
That means you need to give FLFacHash a faction ID to process. This error message appears if you entered the FLFacHash in the command prompt by itself without supplying any IDs with which it can work.
For example, if you want find out the hash code for the Kusari State Police, then you’d enter the following in the command line:
C:\>FLFacHash ku_p_grp
This should return the hashcode of 552.
– The Haen.
-
ah i see, ill give that a try then
-
A suggestion, perhaps, Haen: if you have a help command, maybe default to its output if not arguments are given? Or at least, put a “type –help for more information” in the error message.
It’s something simple, but it can help a lot with usability
-
Tssk! Tssk!
8-)
-
FriendlyFire wrote:
A suggestion, perhaps, Haen: if you have a help command, maybe default to its output if not arguments are given? Or at least, put a “type –help for more information” in the error message.It’s something simple, but it can help a lot with usability
Actually, the tool already does that: if it detects that the wrong number of arguments were supplied, it prints the error message and then runs the usage function. The usage function, in turn, prints out the proper syntax for the tool.
Having said that, I can see perhaps the usage function may be better in conveying its message. Since I’ll be re-uploading FLFacHash to fix the output formatting issues, I’ll go ahead and write up a better help message. Thanks for the suggestion.
On a related note: any timetable on when the ability to upload will be fixed?
Cheers,
– The Haen.
-
Hard to say, I’m afraid. The forum uploads seem to be absolutely borked, but the downloads could be fixed in a little while, with some luck.
-
Eh, just upload the file to a 1-click-hoster like www.depositfiles.com and post the DL link here then.
-
The upload section seems to be working again. I’ve submitted the new version that should appear soon pending admin approval.
No big changes in the new version: I fixed a minor bug that caused output redirected to a text file to look odd, and I also expanded the help section to be a bit more…helpful.
The updated source code is included with the file, and I’ll also be updating the source code located on page 1 of this thread very shortly.
– The Haen.