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.

Opening a web page while in game

Is there a way to launch a web page on command while in game? I have been working on this for hours, but I guess I don't really know what I'm doing. I was trying to use:

require 'open-uri'
require 'uri'

open("http://www.google.com")

However 'open-uri' must not be a part of Ruby 1.8? And I don't even think this is right.

I also tried using file.open, and putting a google.htm file in my folder, but that isn't proper usage I don't think.

I know it's possible, but I don't know what to do.
Any suggestions?

Please help!
 
you have the right method - just looked it up in the pickaxe's class library
however I am unsure about the version of ruby RMXP RGSS is running,
I believe it simply may not have the URI and URL classes defined,
so you're going to simply need to google their code and the code for any undefined superclasses
should be an easy fix :thumb:
 

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