Version: 1.1
By: Gustavo Bicalho
Introduction
The RGSS Web Kit (RWK) was designed to allow simple HTTP access through RGSS. I wanted to download resources from the web, so that's what it does: download resources from the web. However, this isn't a script for people who don't know RGSS, at least some basic stuff. There's no ready-to-use "Scene_ResourceDownloader" or something like that. RWK gives you a way to get online, but it's completely up to you to make it useful.
What you can do with RWK: download resources, send Post data to a server and read the response, send requests with special headers and check the headers of the response.
You can use this to create an Online Ranking, or some kind of chat or bulletin board in your game, or to check and download updates. Like the whole game making thing, it's all up to your creativity.
Remember: this is a HTTP library, not a browser. It won't do everything for you. If you want to access some service that needs cookies, you will have to emulate those cookies by yourself and deal with the HTTP headers. The same applies to everything else beyond the normal "Get" and "Post like a web form". RWK gives you only the basic stuff.
The Demo
RWK Version 1.1 Demo has an interesting system to show the Kit's power: GusForum, an in-game forum system. It uses AWorks Input scripts for user input, REXML for XML processing (in external files) and RWK to connect to a web server and, using simple PHP scripts (that you can download below to install in your own web server), allow users to create threads and send messages that can be seen by other people through the internet.
You are free to use and modify the GusForum scripts, just remember to credit me
You can download the Demo below.
Download
Demo: http://www.gust.projetorpgmaker.com/RWK_1_1/RWK 1_1.rar
RWK Scripts in txt files: http://www.gust.projetorpgmaker.com/RWK_1_1/RWK 1_1_txt.rar
AsyncHTTP.dll Source Code: http://www.gust.projetorpgmaker.com/RWK_1_1/AsyncHTTP.src.rar
GusForum Server Scripts: http://www.gust.projetorpgmaker.com/RWK_1_1/GusForum_Server.rar
Instructions
Download the Demo and copy the scripts of the section named RGSS Web Kit (the Documentation is not necessary) and the AsyncHTTP.dll to your project. The SDK is not needed.
Read the RWK Docs to learn more.
FAQ
Q: Can I use RWK with RPG Maker VX?
A: I created and tested (a lot) the script on XP, but there's no reason it wouldn't work on VX since it's completely independent from all Game classes, it uses only the core Ruby classes... I tested it briefly on VX and it looks like it's OK. There could be some incompatibility somewhere... but I don't think so =P Just remember to copy all the Scripts (the Docs pages aren't necessary) and copy AsyncHTTP.dll from the demo to your VX project.
Compatibility
RWK should be compatible with any normal scripts. The only way you could have a problem is if some script changes classes from the core Ruby library (like class Thread or class Proc), which (I think) is not frequent.
Credits and Thanks
Special thanks to Diovanni "AntiCasper" de Souza, for support and testing.
Terms and Conditions
RWK is released under Creative Commons BY license. That means you must give me credit for the script if you use or redistribute it.