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.

Game within a game, CDs?

Hello, I have been working on a non-game porject I am was curious if its possible through RGSS, to open another game exe or project with in the same window? I.E. the original game does its tasks, the opens a new game.exe within the same window?

Also one last thing, Is it possible for RGSS to access a CD from the user computer or check if one is in the drive? If so can it read / open files from the disc? :huh:

Thanks for the help! :thumb:
 

khmp

Sponsor

Not the same window. A new window is the only thing I know of.
http://www.rmxp.org/forums/index.php?topic=26419.0

How to check drives for a certain directory. I don't know how to get a list of the logical drives a system has. Although I wouldn't be surprised if Ruby had a method for it. So here's the hack solution.
Code:
drive = 'B:/'
stop_on = 'Z:/'
dir_worked = nil
loop do
  break if drive == stop_on
  if File.exists?(drive + path) # Where path is what you want
    dir_worked = drive + path
    # Do work based on whether the dir was found.
    break
  end
  drive[0] += 1
end

Good luck with it dragontear! :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