Data transfer plugin? [MV]

Status
Not open for further replies.

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
So I wanted to include a data transfer where if you've cleared a previous game, you can transfer friendship data over to the sequel (ex: max friendship with a mage gets transferred over to the sequel and everyone else is at low friendship level and abilities from max friendship also get transferred over)

Is there a way to do this?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Depends on how you want to do this.
"Easiest" way (which is far from simple and requires programming knowledge) is to specify which data you want to have saved and save it into a Text file, with then a difference code to load that Text file into the new game.

If you want to use the original data by "just" transferring savefiles, then the first and the second program need to have identical databases (the second one might be expanded, but needs to contain the first database as a subset), an identical transfer map and a few more conditions.
 

Gamefall Team

Nebula Games Leader
Veteran
Joined
Jan 10, 2017
Messages
348
Reaction score
473
First Language
Italian
Primarily Uses
RMMZ
Another way that needs programming knowledge as well (similar to the one proposed by Andar), It concerns some little edits on the code that makes the save contents for the global.rpgsave (or the default save file or It can be created a similar file ad hoc). You can store the data you need there, and then It can be created a specific code inside the game you need to transfer the data to read the contents of that file.

Example:
You have the global.rpgsave of your precedent game. You can make a copy of the file and maybe you can rename it as "example.rpgsave". You can choose the destination in a folder of your next game, maybe you can insert it in the project/save folder as well.
You can develop a code like that for read the contents data:

Code:
    var xhr = new XMLHttpRequest();
    xhr.open('GET', './save/example.rpgsave')
    xhr.onload = function() {
        var decode = LZString.decompressFromBase64(this.responseText)
        var obj = JSON.parse(decode)
        console.log(obj)
    }
    xhr.send(null)
This code will return in the console as object the contents of the file, where you can store any kind of information you need.
But, as I said, this needs a coding knowledge, and in particular the complete code needs to be developed specifically for the needs of the user.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
The way we did it with the Aveyond games (Mel series), and the way I plan to do it with my game, is to simply let the player load a save file from completed game 1 into new game 2 and continue from there. It does require programming/plugins and some design decisions about how/whether you will 'reset' certain things or carry them forward.
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
The way we did it with the Aveyond games (Mel series), and the way I plan to do it with my game, is to simply let the player load a save file from completed game 1 into new game 2 and continue from there. It does require programming/plugins and some design decisions about how/whether you will 'reset' certain things or carry them forward.
Is the plugin setup possible with Yanfly engine?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I don't have a plugin that does this - I have yet to write it. But I don't plan to make it compatible with any other plugins that I'm not using in my game (and at this stage I'm only using a couple of Yanfly's independent - non-engine - plugins).

If you want something written (which you do, given where you posted), you should specify what plugins you have, to ensure compatibility.
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
I don't have a plugin that does this - I have yet to write it. But I don't plan to make it compatible with any other plugins that I'm not using in my game (and at this stage I'm only using a couple of Yanfly's independent - non-engine - plugins).

If you want something written (which you do, given where you posted), you should specify what plugins you have, to ensure compatibility.
I don't need to pay someone do I? I'm on a budget
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
That's up to you. If you can get someone to do it for free, get someone to do it for free. I didn't say anything about paying anyone.

Did you search to see if something like this already exists?
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
That's up to you. If you can get someone to do it for free, get someone to do it for free. I didn't say anything about paying anyone.

Did you search to see if something like this already exists?
I tried but it just gets a bunch of unanswered threads from the older RPGM programs
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
Odds are high for something that custom you'll either have to pay someone to do it, or figure out a way to make the existing plug-ins work, since it would need to be something custom to your game.
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
Odds are high for something that custom you'll either have to pay someone to do it, or figure out a way to make the existing plug-ins work, since it would need to be something custom to your game.
Ugh, I hate paying for plugins all the ones I've seen are unreasonable prices, like 150-300 USD

I'm paid minimum wage, I don't have that kinda money to just throw into the wind.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
Sorry, but coders command a high wage as it is not something everyone can do. It's not uncommon for them to ask $20 - $30 an hour for coding, as if you won't pay it, everyone else will so you're out of luck.

May just need to start saving up for it. You can do what I did and work extra hours at another job and bank the money for the game (yes, game dev time will take a hit while you do it, but it might be necessary). Or...see if there is another way to do what you want. Maybe someone can suggest another way below?
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
Sorry, but coders command a high wage as it is not something everyone can do. It's not uncommon for them to ask $20 - $30 an hour for coding, as if you won't pay it, everyone else will so you're out of luck.

May just need to start saving up for it. You can do what I did and work extra hours at another job and bank the money for the game (yes, game dev time will take a hit while you do it, but it might be necessary). Or...see if there is another way to do what you want. Maybe someone can suggest another way below?
I might just go with moving a save file over like Shaz or someone said where the sequel just picks up right where the first left off
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
That might work. Or maybe you could make a little 'game' which takes your old data, loads it, then changes it to what you used in the 2nd game by using the add/remove commands, and just have your players run it before they start game 2. This way if in your 1st game weapon 105 was Excalibur, and that is weapon 110 in your 2nd, you could remove weapon 105 then add weapon 110 using event commands. This could all be done in an autorun event. I've thought of doing that in my game if I do allow imports of old saves to the new game.

Would take a bit of work to set up though, and you would not be able to do it until after you finish both games, but I *think* it could work. I'll have to let you know after I finish 2 games and try it (which, at my pace, might be 2022 or so I'm afraid).
 

Lyseth

Potato Mage
Veteran
Joined
May 26, 2015
Messages
716
Reaction score
43
First Language
English
Primarily Uses
RMMV
That might work. Or maybe you could make a little 'game' which takes your old data, loads it, then changes it to what you used in the 2nd game by using the add/remove commands, and just have your players run it before they start game 2. This way if in your 1st game weapon 105 was Excalibur, and that is weapon 110 in your 2nd, you could remove weapon 105 then add weapon 110 using event commands. This could all be done in an autorun event. I've thought of doing that in my game if I do allow imports of old saves to the new game.

Would take a bit of work to set up though, and you would not be able to do it until after you finish both games, but I *think* it could work. I'll have to let you know after I finish 2 games and try it (which, at my pace, might be 2022 or so I'm afraid).
Yeah I just wanted the friendship data transferred but nothing else. :p
 

Anthro7

Villager
Member
Joined
Feb 12, 2018
Messages
15
Reaction score
3
First Language
English
Primarily Uses
RMVXA
The way we did it with the Aveyond games (Mel series), and the way I plan to do it with my game, is to simply let the player load a save file from completed game 1 into new game 2 and continue from there. It does require programming/plugins and some design decisions about how/whether you will 'reset' certain things or carry them forward.
This. How is it accomplished, please? =(
The best I can find is a video on youtube where the fellow tries to teach you how to write an external text file, but as I'm using VX Ace, it's a lot of guess work for my non-coder-self to translate his java to ruby. Simply setting up some kind of way to take the save file from game 1 into game 2 would be a lot simpler. Is there some kind of in-game method to have it check an older folder for the data and copy it? Or does it have to be written into a global access folder by the first game so the second game can access it? Or...? @~@

Also, sorry for necro-quoting.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP

Anthro7, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please make a new topic with your question in the correct forum (this one is for MV, not VXAce).
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top