Main Menu
  • Welcome to The RPG Maker Resource Kit.

Need a little help with Speh's Virtual Database v2.01

Started by Dko, December 20, 2006, 02:16:18 AM

0 Members and 1 Guest are viewing this topic.

Dko

Hey I was wondering could someone help me understand how to use this script. I looked at the header info but what was there didn't seam to work and I asked Seph about it and he said there was some mis information in the header. Also not being the best coder I have a hard time figuring it out looking at just the code.I was told he would be updating this script to be easier to use but id rather not wait if I can help it. Please any help would be greatly appreciated.

feildmaster

I'll take a lookie and see... n post what i find...
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...


feildmaster

#3
alright so which one did u have a problem with...? each one of them...?

well what you do is copy the script... open the script editor, right click the script box and insert a page and then copy a script per page...
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Dko

I know how to do that just fine. I just can't get the script to work right it self. I do something like this.

randomvar = $game_virtualdb.data_actors
randomvar[1].name
and I get good old errors. Too tired to see what they are right now. I just want to know what im doing wrong from these intructions.

------------------------------------------------------------------------------
# * Instrucions :
#
#   Place The Script Below the SDK and Above Main.
#
#   ** General Guideline For Modifing Database **
#
#   Retrieve Modifed Hash From Virtual Database
#     - object = $game_virtualdb.data_<object>
#
#   Modify the Object (It is a hash, so all properties of hash remain)
#     - object[index] = <something>
#
#   Send Modified Hash Back to Virtual Database
#     - $game_virtualdb.data_<object> = object
#------------------------------------------------------------------------------


P.s this is from the Virtual Database script to answer your question (though its in the title of the thread)

feildmaster

----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Me™

ALL HAIL ME™

Dko

Yep SDK is in place and please don't assume im new at coding. As I have lots of experience with C++ and know quite a bit about Ruby. I just have a hard time understand other peoples codes. Especially when its incorrectly documented.  The error I generally get something like this using the example I gave earlier.

NoMethod Error
undefined method 'name' for nil:NilClass


Blizzard

Post the complete error message. The line that gves the error is vital. That's where the debug starts, lol!
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Dko

In my example it would be randomvar[1].name. Though im not sure why your all asking for the error when I never asked to have the error solved. I know why its coming up. Its because I don't know how to properly use the script. What im asking is how does the Virtual Database work since the instructions are flawed?

Me™

Well, apparantly  $game_virtualdb.data_actors is being empty.
ALL HAIL ME™

Dko

Im sorry but im really starting to feel like no one is even really reading my posts and its irritating me. I know that its empty. Why I don't know and that most likely can be solved if someone can tell me what Seph didn't explain correctly in his scripts header.

Me™

Well, for instance, could you tell me where you did

randomvar = $game_virtualdb.data_actors
randomvar[1].name
ALL HAIL ME™