anyone know how to save the save files directly onto the server? do you have a plugin or code suggestions? tried multiple things and am really stuck with rpg mv just not saving on the web it keeps reading browser saves.
MV Save Files on website
JS Plugin RequestsA plugin can never ever save on your server. You would need a backend for that, which will become incredibly expensive for such a small feature.
Yeah, it is a web server, so you need to develop a server side application to save data.
The players also need to register as a user in orde to use the features.
The players also need to register as a user in orde to use the features.
Just upload them in google drive or dropbox or something. I've tried it with dropbox a long time ago but ultimately scrapped it because it wasn't very stable.
@Hyouryuu-Na its the rpg mv script part. the engine wont save onto the save location on my website. i cant figure out why. i thought maybe someone had done it. where is the google drive saving script? maybe that may shed light on this.
explain more please? i mean on android the save files go onto the mobile device. why is this such a big leap? mmm maybe i need to send saves to mysql then? either way def need more scripting help or find a plugin... or commission.
got the server side done. each user has their own profile etc. im stuck on the rpg mv saving part. not sure how to go about getting that onto the server. keep getting errors. might need to debug more but i came here in case someone had already done this before.
Browser ports of mv/mz games don't make save files like that. The save infos are stored in the browser storage.
I don't have the script at hand. You have to take the save contents from your local storage and upload it as a file. But you need a save API/server side script in your backend to be able to save the file onto your server's file system. If you think this isn't possible, then you can use an external storage like drive or dropbox. That being said, I don't have the script anymore. It was like a patchwork of code from stackoverflow as I'm not good with JavaScript.
Oh thought I'd address this too:
"i mean on android the save files go onto the mobile device. why is this such a big leap?"
It's a security concern. You can't just run a plugin/client side script and start uploading stuff onto people's servers xD The server always has control over what happens in the server, you can't do anything from the client side without requesting the server for it to happen. Your phone is a device so the files just save in your file system. A browser based game isn't the same.
that is because your application does not have the right to write a file on the server.
And no, that access right is severely restricted for good reasons - if anyone could write on your server without correct authentification, a virus could easily infect your website.
at minimum you would neet to use the FTP protocol instead of the HTTP one, and even that has more problems on the way.
i guess i should eventually just post the rpg mv plugin i did manage to get and see if anyone spots the problem cause all permissions etc should be good the chmod etc from the website php script its good. its the rpg mv part thats messing up for some reason. yea thanks for reply will see next time i work on this if i can either post progress or visit the commission forum. thanks.
If you're going to use XMLRequest, you'll still need some kind of token system.
PHP scripts executed by Javascript can be directly targeted by hackers who analyze the plugin's code.
PHP scripts executed by Javascript can be directly targeted by hackers who analyze the plugin's code.
Took it off a while back couldnt figure out the saving part. i did have tokens set up for security. concentrating more on steam and android now .
Yes, using an API from some service will link the saves to the player's account, which in theory is safe.
But if you were to create a private server with a database, it would require changes to the UI and local data storage:
Here you can find some plugins for this:
forums.rpgmakerweb.com
forums.rpgmakerweb.com
But if you were to create a private server with a database, it would require changes to the UI and local data storage:
- Preserve session
- Registration with email
- Login with captcha
Here you can find some plugins for this:
Simple Ajax - Request data from a web server
Plugin Name: Simple Ajax Version: 1 Author: Amy Pond @ www.hbgames.org Introduction As RPG Maker MV games use JavaScript, one simple way to talk to a server is via the web, using Ajax. Technically here we aren't using the x part unless we format the responded text using XML, but the...
forums.rpgmakerweb.com
MZ - Does it load php?
For some reason this plugin I'm trying has php, besides js, but I'm not sure what to do with it...
forums.rpgmakerweb.com
From my perspective, this is a sensible idea as long as it's just for save sync. Pretty standard, really.
Just treat it as completely untrusted data and never ever let it influence another player's experience directly.
@Bmpgames The main difficulty is probably that the entire
Just treat it as completely untrusted data and never ever let it influence another player's experience directly.
@Bmpgames The main difficulty is probably that the entire
StorageManager API assumes synchronous save access but all web requent APIs are async. The way I would handle this would be to attach a service layer (edit: not a Service Worker, just a normal free-standing JS task) to StorageManager.save and StorageManager.load that runs in the background to synchronise the data. This should work for grabbing the data to upload regardless of platform (It looks like you know what you're doing with the accounts etc.) and for loading I'd probably hook into Scene_Load.prototype.isReady and return false until the save data is locally present. Not the smoothest user experience in cases where that takes a while, but at least it should show a spinner (and you can start loading while the game boots up; I assume you handle the login somewhere else on the web page).thanks i gave up on that for now . i was using wordpress for login and security. steam autosave seems to be a good thing so far. getting into it more seriously. thanks tho! maybe someone who continues in this direction will see this and try it.
Oh, yes if Steam Cloud saves are an option, then as a player: Yes, please.
That's by far the most convenient and reliable save sync option I've used so far.
I made a plugin for a customer to save players data on Google Firebase. If you need something like that sent me a message
Original thread: https://forums.rpgmakerweb.com/threads/save-files-on-website.176547/