Kuribo64
Views: 19,994,640 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-19-24 01:45 PM
Guest:

0 users reading Hash Calculator for SMG | 1 bot

Main - Archived forums - SMG hacking tools development - Hash Calculator for SMG Hide post layouts | New reply

Pages: 1 2
SunakazeKun
Posted on 02-28-15 10:09 PM (rev. 4 of 03-08-15 07:33 PM) Link | #57039
[image]


No more need for Python! 'Hash Calculator for SMG' automatically converts a string to a hash. Hashes are used for BCSV files.

Downloads:
https://kuribo64.net/get.php?id=Gz00NOB3Z3AvEn8X

Source Code:
Coming soon...

Credits:
  • SunakazeKun
  • NWPlayer123


This started off as a small test but it turned to be useful. I present you, pyHashGUI.
It's based on pyTools and it still requires Python!

Download: https://kuribo64.net/get.php?id=Lqs63sAJeg8Ch4dZ

Credits:
- NWPlayer123
- SunakazeKun




Youtube | Github | Neo Mario Galaxy | Super Mario Galaxy & Super Mario 3D Land Modding


Jesse
Posted on 03-01-15 01:27 PM Link | #57068
Yay python! because fuck .net and ease windows GUI.

What does the tool actually do?

Arisotura
Posted on 03-01-15 01:31 PM (rev. 2 of 03-01-15 01:32 PM) Link | #57069
It's a graphical interface to a command line tool that computes the SMG hash of the given string (for use with BCSV files).


All in all, kinda pointless. You could as well directly implement the hashing into the GUI utility instead of calling another program. Not like the hashing algorithm is terribly complex. Hell, Whitehole C# had a little form that did just that.

You would also be able to give clean output, ie. just the computed hash without a ton of command line output crap around it.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

SunakazeKun
Posted on 03-01-15 01:48 PM (rev. 2 of 03-01-15 01:57 PM) Link | #57070
Posted by StapleButter
You could as well directly implement the hashing into the GUI utility instead of calling another program.

I planned to do this first, but it caused many problems.

Posted by StapleButter
You would also be able to give clean output, ie. just the computed hash without a ton of command line output crap around it.

A newer version will fix this...hopefully...



Youtube | Github | Neo Mario Galaxy | Super Mario Galaxy & Super Mario 3D Land Modding


Stygmax
Posted on 03-01-15 02:00 PM Link | #57077
Idk, I find this pretty helpful. When I was first diving into this kind of thing, I had no idea how to use pytools properly and it took me a whole day to figure out. This will come in handy.
Status: It was really, really fun, guys - thanks for the ride!

shibboleet
Posted on 03-01-15 05:29 PM Link | #57091
Why do you still need python? Just compile it into a windows executable.

____________________
a

Arisotura
Posted on 03-02-15 03:07 PM Link | #57134
Python is portable, a 'Windows executable' is not. Although something like C# would work too for an utility this simple.


>I planned to do this first, but it caused many problems.

What kind of problems? The hash algorithm is really just "start with hash=0; for each character, hash = (hash * 31) + character)", a really basic operation that can be expressed in any language.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

shibboleet
Posted on 03-02-15 08:23 PM Link | #57144
That's my point, really. There isn't anything that could really break, since the python program is just a hash converter (even though it really should do it internally.)

____________________
a

Arisotura
Posted on 03-02-15 08:40 PM Link | #57146
And actually knowing how to program is a real bonus. Far better than just slapping a GUI onto a process call. Well, that makes sense for more complex command-line tools, but for something this simple, it's silly.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Splitwirez
Posted on 03-02-15 11:55 PM Link | #57154
Posted by StapleButter
...for something this simple, it's silly.

Logically, yes, but in this particular case...



...some people are rather phobic about command line stuff, so it kinda makes sense, in a weird, counter-intuitive way.

Marionumber1
Posted on 03-03-15 12:02 AM Link | #57155
If people are afraid of the command line, I honestly think they shouldn't be doing SMG hacking. The command line is pretty simple to grasp compared to almost anything you'd want to mod in SMG.

Arisotura
Posted on 03-03-15 12:16 PM Link | #57166
Posted by Splitwirez
Posted by StapleButter
...for something this simple, it's silly.

Logically, yes, but in this particular case...



...some people are rather phobic about command line stuff, so it kinda makes sense, in a weird, counter-intuitive way.

My point is that it's silly to make a GUI that calls a command line program for something this simple. You could very well implement the hashing directly into the GUI.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Splitwirez
Posted on 03-03-15 01:05 PM Link | #57168
Posted by StapleButter
Posted by Splitwirez
Posted by StapleButter
...for something this simple, it's silly.

Logically, yes, but in this particular case...



...some people are rather phobic about command line stuff, so it kinda makes sense, in a weird, counter-intuitive way.

My point is that it's silly to make a GUI that calls a command line program for something this simple. You could very well implement the hashing directly into the GUI.

Eh...fair enough. I guess I kinda missed that part.

Posted by Marionumber1
If people are afraid of the command line, I honestly think they shouldn't be doing SMG hacking. The command line is pretty simple to grasp compared to almost anything you'd want to mod in SMG.

Point taken. I didn't even consider that .__.

SunakazeKun
Posted on 03-04-15 05:56 PM Link | #57220
[image]

Preview Time :P
Works good so far, but you can't use more than 6 letters ATM.



Youtube | Github | Neo Mario Galaxy | Super Mario Galaxy & Super Mario 3D Land Modding


Arisotura
Posted on 03-04-15 05:58 PM Link | #57221
>you can't use more than 6 letters ATM

o_O



Other than that, good start.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

SunakazeKun
Posted on 03-04-15 05:59 PM Link | #57222
Yeah, I have no idea how to fix that yet :/

Thank you :)



Youtube | Github | Neo Mario Galaxy | Super Mario Galaxy & Super Mario 3D Land Modding


Arisotura
Posted on 03-04-15 06:01 PM Link | #57223
There's no reason you would have that limitation if you implement the hashing the way I described (basically a for loop).

What are the problems exactly?

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

SunakazeKun
Posted on 03-04-15 06:04 PM (rev. 3 of 03-06-15 02:44 PM) Link | #57225

Arisotura
Posted on 03-04-15 06:05 PM Link | #57226
The code looks okay. The only issue I can see is integer overflow causing hash values to become negative. Change 'blarg' to an unsigned integer and that should be fixed.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

SunakazeKun
Posted on 03-04-15 06:07 PM Link | #57227
Pages: 1 2

Main - Archived forums - SMG hacking tools development - Hash Calculator for SMG Hide post layouts | New reply

Page rendered in 0.064 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 233/233, time: 0.012 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.