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.

Help using Seph's Virtual Database (v2.01)

Dko

Member

I downloaded and installed this script but when I call any objects like $game_virtualdb.data_actors all I get from them is having no value at all. Do I some how have to initialize the virtual database to contain the info the regular DB has?
 
The instances (such as @data_actors) are nothing but a hash collection of changes. This is to limit space of the objects.

Just read the comments. I tried to explain it clearly. I don't remember the exact syntax off the top of my head (I do so many scripts, I remember the RTP scripts more than my own :D).

Just let me know if you have any trouble, and I shall return.
 

Dko

Member

I have looked at the comments. Though im not tottaly sure what a hash is.
I do exactly as the comments suggest like this.
Code:
class Test
  @test_VDB = $game_virtualdb.data_actors
  def initialize
    print @test_VDB[1].name 
  end
end
and I get an error undefined method data_actors for nil class.
 
I just now thought of something. I slightly lied in the script heading, which is probably the reason you are having trouble.

Give me a while, and I am going to update this script to make it even more simple to use.
 

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