it's very unpolished, but since i tend to program to figure out how to do stuff, i never actually finish many of my programs once i figure out how to get the main part working as it should :\ i like this one so i probably will, but who knows. plus it shows a good way to grab some text from a website.
here's my readme:
download for 1.5fw: herewifi babelfish proof-of-concept
coded by razorrifh
-------------------------------
i got bored about 20 minutes into installing the psp toolchain (it ended up taking 6 hours, 52 minutes) so i decided to code something up with lua. i saw the coder of palib (i'm assuming a nds programming library? dunno) wrote a language translation program based on a dictionary.
i liked the idea, but i thought it would be a bit better to grab the translation from somewhere online, because then you could have an already built translation system with support for multiple languages. instantly i thought of babelfish. i loaded it up in the browser and viewed the source to see what i could see, and lo and behold... well there was the source. i typed up a querry string based on the variable names and it worked. yay.
i hadn't messed with wifi in lua before, but that's how you learn right? the hardest part was the string processing because I HATE STRING MANIPULATION IT IS THE DEVIL INDEED. so yeah, but after i figured out how to scroll through the string character by character it was cake. (its not string.char(). its string.sub(), you just have to make the substring 1 character long :D)
so anyways, here's the file. to use it (only for firmware 1.5 i'm pretty sure) just throw it in your x:/PSP/GAME/ folder. it's called "wifi babelfish poc". run it (with the wifi switch on!) and it will show you a list of your wifi connections. this is just the proof-of-concept, so it will automatically choose the first connection, and then start trying to get an ip address from the access point. please note that it may freeze if the signal strength isn't strong enough, or if it looses connection. hold start to reset, and if that doesnt work, use the home button to do so and try again.
the screenshot function DOES NOT WORK. i dont know why. anyone wanna clue me in?
i plan on making this a full little app including text input, and file saving. if i dont get around to it, someone else may. just lemme peek at your source if you do :)
ps, we are... PENN STATE :)
RELEASE NOTES:
RELEASE 1
NOTES
- initial release - it does what it should do
TODO
- add a better gui -- check the photoshop file in the WLAN directory to see what i'm thinking about doing. have at it if you'd like to use it.
- add text input
- get the screenshot function to work
- work out some bugs :D
BUGS
- may freeze, not really my fault. its how lua handles wifi. i'll see what i can do about it, but i'm not too sure :\
- email your bugs to [email protected], thanks!
THANKS TO:
- the ps2dev comunity
- everyone who's contributed to the programming of lua player
- shine for the wifi sample
- paradox, because without them, i wouldnt even know what i do about game programming (dev.paradogs.com)
- and DARPA for putting out such a kick ass network :D without it i'd be watching tv instead of learning how to do such cool things. woot.
DONATIONS:
ok, so lots of devs ask for money or whatever for what they program. i know it takes time, and i'm certainly not rich (debt sucks :|) but if you like this enough to donate, here are some links to good causes to donate to. these are probably all in america, but just find one in your area and give :)
http://www.worldvision.org
http://www.unitedway.org
http://www.goodwill.org
http://www.thehungersite.com
NOTE TO MY GF:
love you lindsey marie! sorry i sit on the computer debugging when you want me to be holding you watching tv. i appreciate ya :)
my girlfriend > *
download source (no lua player): here
and goto my website while you're at it. it gets lonely without visitors (pun intended, har)