Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Review] RGSS Web Kit 1.1

Wow... that's just... great!

But I'm a noob to script, and how can I edit those script? XD

But all that scripts are necessary for that sort of chat room? And how to create a server (I'm a noob, sorry if you find some questions stupid...)?
 

Gust

Member

First of all: you should never edit the script in the "RGSS Web Kit" section (unless, of course, you are an experienced programmer and knows exactly what you are doing). You should only use those classes and methods, without editing them. Read the DOCS to learn what each class/method do.

Second: Yeah, all those scripts in the "Gus Forum" section AND the AWorks input library are needed for that small chat room. But GusForum is actually just a little example of what you could do with RWK... It's not really meant to be used in games. Of course one could use it, but one should work to make it better and more stable. You see, that's why I said in the first post: "this isn't a script for people who don't know RGSS. RWK gives you a way to get online, but it's completely up to you to make it useful".

Third: A server for RWK is any HTTP server. A server for GusForum, though, can be created using the GusForum Server Scripts, available in the first post.
 

Chap

Member

Say, I want to make a basic message of the day window in my titlescreen. What is the easiest way to accomplish this? Im no noob at RGSS and neither at PHP, but I just can't figure out how to do that.
 

Gust

Member

Give a look at Example 8. You could do something like this:

Code:
conn = $session.connect("your host")

      path = "/motd.php" # this is the page that will provide the MOTD. A simple php "echo" is enough.

      msg_file = "motd.txt"

      callback = Proc.new() { |req, done, error|

        req.close();

        if !done

          create_motd_window("Couldn't read MOTD");

          File.delete(msg_file)

          break

        end

        s = ""

        File.open(msg_file) { |f|

          f.each_line { |line| s += line }

        }

        File.delete(msg_file)

        create_motd_window(s);

      }

      

      conn.send_get_request(path,false,nil,msg_file,&callback)

 

Maybe there's some sintax error somewhere, but that's the idea.
 

djr

Member

Hi there,

All of the download links are now broken. Any chance this could be re-uploaded? I'd like the DLL source as well.

Thanks
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top