RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Need a little help with Speh's Virtual Database v2.01

0 Members and 1 Guest are viewing this topic.

pokeball DkoOffline
**
Rep: +0/-0Level 88
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.

***
Rep:
Level 88
Hell... What did I mess up now... I'm Back!
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...


***
Rep:
Level 88
Hell... What did I mess up now... I'm Back!
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...
« Last Edit: December 20, 2006, 03:38:39 AM by 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...

pokeball DkoOffline
**
Rep: +0/-0Level 88
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.
Code: [Select]
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.
Code: [Select]
------------------------------------------------------------------------------
# * 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)
« Last Edit: December 20, 2006, 06:31:46 AM by Dko »

***
Rep:
Level 88
Hell... What did I mess up now... I'm Back!
did you copy the SDK script?
----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...

***
Rep:
Level 88
Random-Idiot
And coul you still give me the error message?
ALL HAIL ME™

pokeball DkoOffline
**
Rep: +0/-0Level 88
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

« Last Edit: December 21, 2006, 03:51:42 AM by Dko »

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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!

pokeball DkoOffline
**
Rep: +0/-0Level 88
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?
« Last Edit: December 21, 2006, 03:43:42 PM by Dko »

***
Rep:
Level 88
Random-Idiot
Well, apparantly  $game_virtualdb.data_actors is being empty.
ALL HAIL ME™

pokeball DkoOffline
**
Rep: +0/-0Level 88
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.

***
Rep:
Level 88
Random-Idiot
Well, for instance, could you tell me where you did

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