Jump to content
Sign in to follow this  
Vlad

Made a website "GUI" for the Legal.exe

Recommended Posts

Any newbie could do this, I just had the exe run the .pkm file you upload and the script just parsed the code that is printed out on the screen by the program.

Nice for mass-scanning a whole box, if you just want to know what is valid and what counts as hacked. I want to release the source but it is really messy and depends on a half-used database I got from Veekun.com so it would just confuse the newbies around, I will most likely post it later when I get to clean it up a bit and structure the script a bit more. :)

You can use the site on my host meanwhile:

http://vlacula.no-ip.com/pokemon/legality_checker/

*Edit*

Released the sources, check this post for download link.

Edited by Vlad

Share this post


Link to post
Share on other sites

You stole my idea!

Well, yours is web-based, and mine does the eqivilant of dragging the pkm file or folder onto Legal.exe.

Edited by evandixon
fixed typo

Share this post


Link to post
Share on other sites

Didn't notice this earlier. 0.o

That's pretty slick, do let me know when you release the source. It might be worth implementing something like this on the site.

EDIT: This would only work on a windows server, right?

Share this post


Link to post
Share on other sites

Thanks for the nice replies, and the PMs. ;)

The server simply takes the uploaded files and runs them trough the legal.exe file so you need a server that indeed supports running executables.

I kinda build it in a rush so the source is kinda messy you might say, not so customizable. Anyway I cleaned it up a bit at least, added some options you can use if you like and here are the sources for the site:

- http://www.ziuo.net/poke/legality_checker.rar

You may edit and tweak the site, it's nice to help the community out. :)

Share this post


Link to post
Share on other sites

If Sabresite shares his formula work that is used in that program, it should be possible to convert the calculations into PHP and then instead of having the PHP run the file trough the executable.

I was working a bit on figuring out how pkm files are constructed so if I can map it all (where the different stats are stored, e.g.) and can make a PHP script that can read and write to the different types of values then I could also add formulas to check for legality -as many of these are available on the documentation and main sites, I've noticed. But don't expect it to happen over night as it takes time and I got a math hand-in to work with, lol. :D

Share this post


Link to post
Share on other sites

Better let him finish and see the results then, I don't see why rushing him in any way. ;)

Share this post


Link to post
Share on other sites

Yeah, made it so you can use:

http://vlacula.no-ip.com/pokemon/legality_checker/?file=&user=&pass=

You can remove "user" and "pass" if you do not wish to use http authorization. Otherwise you may if you want to protect the files from public access directly from the server. Also the "file" must have a path ending in .pkm or .zip to be accepted. Max sizes are 100-256 byte for pkm and 1mb for zip. It's so I don't get flooded or abused.

Also sorry that my PC is offline sometimes but I need to sleep in silence from time to time. I plan to migrate the legality checker to my webhost but I must check if it supports EXE too! :P

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...