How to recomple rb to rvdata2

LueLusten

Veteran
Veteran
Joined
Apr 9, 2015
Messages
67
Reaction score
8
First Language
English
Primarily Uses
OK I was able to find a means to save the scripts to rb files, but this is only the scripts how would I do this for the database also?

I want to create a online database for my game where the launcher it will check for the update and pass it to the game, I don't want to include two of the same file each time in the engine, I want over ride the old one with the new scripts and DB

I need a means at the moment to repack the scripts to the rvdata2 this also I need a way to pack and unpack the save.
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
Use Marshal.dump and Marshal.load

For more details look at how the Default Scripts make savefiles and load them. 
 

LueLusten

Veteran
Veteran
Joined
Apr 9, 2015
Messages
67
Reaction score
8
First Language
English
Primarily Uses
Use Marshal.dump and Marshal.load

For more details look at how the Default Scripts make savefiles and load them. 
What file will they be hiding in do you know :)
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
DataManager module, towards the top in the default script list.
 

LueLusten

Veteran
Veteran
Joined
Apr 9, 2015
Messages
67
Reaction score
8
First Language
English
Primarily Uses
DataManager module, towards the top in the default script list.
I will give that one a look but don't the save option get the detail from a table not from a file? as I will have my own tool create the rb file for game maker to edit on load.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
When saving, the DataManager builds a Hash where it stores game data under specific symbols :)variables -> $game_variables, :actors -> $game_actors, etc). That Hash is then serialized and written to a file.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
 

LueLusten

Veteran
Veteran
Joined
Apr 9, 2015
Messages
67
Reaction score
8
First Language
English
Primarily Uses
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
I am not sure where you moved it from but I am sure it was in a scripting section but if its in the wrong place sorry.

The scripts are under the Scripts.rvdata2 are not called by that file, isn't that file in the Scripts.rvdata2? I want to be able to 

call the files myself the rb files or recomplie the rvdata2, where is the Scripts.rvdata2 called.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
The files in your "Data" folder are probably loaded by the Game.exe, since their contents don't change between saves. The DataManager only deals with savefiles, that is data that can and will change while you are playing.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
The script call used for loading the .rvdata2 script files is load_data; as it says in the help file, this is essentially the equivalent of

Code:
File.open(filename, "rb") { |f|  obj = Marshal.load(f)}
 

LueLusten

Veteran
Veteran
Joined
Apr 9, 2015
Messages
67
Reaction score
8
First Language
English
Primarily Uses
The script call used for loading the .rvdata2 script files is load_data; as it says in the help file, this is essentially the equivalent of

File.open(filename, "rb") { |f| obj = Marshal.load(f)}
I know the game or the one of the other scripts call it but I need to have the exe not to load the rvdata2 versions but the rb versions, I am thinking of controlling 

the game versions fixs and database via online means, 

The files in your "Data" folder are probably loaded by the Game.exe, since their contents don't change between saves. The DataManager only deals with savefiles, that is data that can and will change while you are playing.
I understand that already lol Getting my head around another scripting language what to me makes no logical sense tho is doing my nut in :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top