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.

Random Map Generator

I'm using a random map genorator script and had compatability errors with so it got slightly edited causing not to work anymore ':|

Anywho, Im just seeing if anyone can help me. The error is:

Script 'Maze' line 28: NoMethodError occured
undefined method 'floor=' for Tile:Class

HERE IS THE PROPER DOWNLOAD!!
http://www.megaupload.com/?d=15U5K8IT

Hope you can help XD
 
I loaded the program, but no errors occurred. Actually nothing happened really. How do you trigger the error in game?

I'm very new to Ruby, but I don't see a problem as I glance through the scripts. Perhaps the Maze script is being called before the Tile class is setup?

If you could tell me what you do exactly to trigger the error, I could probably be more helpful.
 
Hmm, not sure, but I noticed that immediately before the Tile Module in the Tile script, the class Spriteset_Map is defined...again. This has already been defined in the script Spriteset_Map, so I removed it.

This gets rid of the error, but brings up a message saying "Player may start in a wall (Y position is even")...then an error pops up saying "NoMethodError occured while running script [Random Map Genorator]. undefined method "hud_hide" for #<Scene_Map:0x13643d0>". So I guess this is a good sign, as the script works but does...but makes a reference to a method called Hide_Hud, which I could not find.
 

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