Vlad Posted April 8, 2009 Posted April 8, 2009 (edited) 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 April 15, 2009 by Vlad
evandixon Posted April 13, 2009 Posted April 13, 2009 (edited) 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 April 18, 2009 by evandixon fixed typo
Poryhack Posted April 14, 2009 Posted April 14, 2009 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?
Vlad Posted April 15, 2009 Author Posted April 15, 2009 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.
Poryhack Posted April 16, 2009 Posted April 16, 2009 Thanks, I'm pretty sure our server won't run exe's but I'll look into it.
coolbho3000 Posted April 16, 2009 Posted April 16, 2009 Thanks, I'm pretty sure our server won't run exe's but I'll look into it. Yeah, our server is running Debian.
Vlad Posted April 16, 2009 Author Posted April 16, 2009 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.
Poryhack Posted April 17, 2009 Posted April 17, 2009 I'm not sure if that's something he'd wanna do or not. The latest version of the program he is working on will be cross-platform I don't know...
Vlad Posted April 17, 2009 Author Posted April 17, 2009 Better let him finish and see the results then, I don't see why rushing him in any way.
evandixon Posted August 23, 2009 Posted August 23, 2009 Could you modify this to check a pokemon from a URL specified in a query string? If so, I wouldn't have to check to see if my server can run EXE's for my Upload Bin, so it can feature online legality checking too.
Vlad Posted August 26, 2009 Author Posted August 26, 2009 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now