Cloud Manager - Simple cloud based savegame system
JS Plugin Releases (RMMV)Can you test your database with the attached script, please? Copy db_test.php into the same folder as your other php script and run it. You can send me the output as PN as you want.
With a fresh new database you should see like this:
What php version and http server you are using?
View attachment db_test.php
With a fresh new database you should see like this:
Cloud Manager - Database Test
Open database rmmv.sqlite...
PDO Object ( )
Read table savegames...
Array ( )
Read table sessiondata...
Array ( )
Read table sessions...
Array ( )
Done.
Open database rmmv.sqlite...
PDO Object ( )
Read table savegames...
Array ( )
Read table sessiondata...
Array ( )
Read table sessions...
Array ( )
Done.
What php version and http server you are using?
View attachment db_test.php
Cloud Manager - Database Test
Open database rmmv.sqlite...
PDO Object ( )
Read table savegames...
Array ( )
Read table sessiondata...
Array ( )
Read table sessions...
Array ( )
Done.
So, i'm using wampserver 3.0 with php 5.6 apache 2.4
is it suposed to work with wampserver or i really need a host?
Okay, database seems okay. I had tested the plugin with an older WAMPP/XAMPP version, so it should work properly.
Well, I have tried it again and it seems, xampp server has other warning levels than my linux server. So xampp sends back some response messages the plugin can't handle with.
I have modified the php script so it should work now. Please give it a try (save as cloudmanager.php):
View attachment cloudmanager.php
Well, I have tried it again and it seems, xampp server has other warning levels than my linux server. So xampp sends back some response messages the plugin can't handle with.
I have modified the php script so it should work now. Please give it a try (save as cloudmanager.php):
View attachment cloudmanager.php
Thank you to create this Plugin 😀
it's really a great job !
it's really a great job !
WOW!
Finally worked!
I don't understand of javascript, but i know something of php.
What was wrong and what did you do to fix?
Now i see that is something very cool and useful. Even for singleplayer, web or .exe app.
Also, the db tester worked! 😀
Now i just want to study how the game saves to possibly edit this saves.
Thanks a lot for help and attention.

Well, on the top of the script I read all parameter data from $_POST, but gameData is only set on save action. On my server, access to $_POST["gameData"] will be ignored then without any warning or error output. But depending on the configuration it can also return a warning message like "Undefinded index" on your very first screenshot. This warning is a server response so the plugin was unable to handle it.
Now I "initialize" the variables on the php script and read $_POST only if a parameter is set.
So, it would be nice to register at some website (the game website, with php register form), and in the game you can just log in, because in the website's register form you can get more information (email, username, pass, recovery pass, and other infos).
Did you start a new game?
Size should be no problem, because I save/load the same data like on the lokal savegame file.
Do you have a console log (F8), maybe with plugin loglevel 3?
Yes, thanks. I think I know the problem. Now I have to see how I can slove it. It seems json on js has some limits on data compexity I have to handle with. Do you have a copy of your game I can test/work with?
i've found MMO plugin, but not easy to install... (my english@@ not well)
this Cloud Manager could save data in server, then you don't afraid to lose gamesave...
it's really cool...
this Cloud Manager could save data in server, then you don't afraid to lose gamesave...
it's really cool...
Sorry for this long delay, but I was sick last week, my daughter had have her First Communion, my father had have his birthday and there are 4 new cats on the house now. Well... long story short, I was very busy. ^^
Okay, as I said on PN I had an idea, I was able to implement a workaround. On the attached zip you can find 2 js files. One is the updated Cloud Manager plugin and the other is a new plugin to create a JSON string from the save content object. Just copy both files to your js\plugin folder an add the new JSON_prune plugin to your project like here:
http://prntscr.com/au8bib
If the JSON_prune plugin is activated the new version of Cloud Manager plugin will use it automatically. So it's easy to (de)activate the new JSON function.
On the console log you will see now if the prune version was used.
I was able to save/load the game on your test project without issues. But because the new prune function will modify the save content you should carefully verify if all will be fine.
View attachment CloudManagerV095.zip
Okay, as I said on PN I had an idea, I was able to implement a workaround. On the attached zip you can find 2 js files. One is the updated Cloud Manager plugin and the other is a new plugin to create a JSON string from the save content object. Just copy both files to your js\plugin folder an add the new JSON_prune plugin to your project like here:
http://prntscr.com/au8bib
If the JSON_prune plugin is activated the new version of Cloud Manager plugin will use it automatically. So it's easy to (de)activate the new JSON function.
On the console log you will see now if the prune version was used.
I was able to save/load the game on your test project without issues. But because the new prune function will modify the save content you should carefully verify if all will be fine.
View attachment CloudManagerV095.zip
Okay, that's crazy. >_< I was able to save and load your game on the start map and on the house many times without a problem. Have you made changes to your project after you have send me a copy?
Okay, it seems like the prune function kills to many from the save content. I don't know why or why I could save and load your game with prune without any issue, but I will look into the plugin save/load functions again.
Edit 1:
Just one note: Without the Cloud Manager, the RMMV built-in save function fails too, as you can see here:
http://prntscr.com/aupbx4
Prune and Cloud Manager plugins are deactivated and the error comes if I have tried to save the game on the normal save game slot. So your game data is really too deep.
But I will see, if it's possible how to handle this.
Edit 2:
The problem comes on the $gameMap data. I have tried to split the save data to their objects and JsonEx.stringify($gameMap) fails with object too deep.
Edit 3:
A search for "maxDepth" will show you this thread:
I have tried to set the maxDepth from 100 to 9999 but JsonEx.stringify will raise an "Object to deep" error too (also if I try to save your game without Cloud Manager). So I would say there is a problem with your game.
Edit 1:
Just one note: Without the Cloud Manager, the RMMV built-in save function fails too, as you can see here:
http://prntscr.com/aupbx4
Prune and Cloud Manager plugins are deactivated and the error comes if I have tried to save the game on the normal save game slot. So your game data is really too deep.
But I will see, if it's possible how to handle this.
Edit 2:
The problem comes on the $gameMap data. I have tried to split the save data to their objects and JsonEx.stringify($gameMap) fails with object too deep.
Edit 3:
A search for "maxDepth" will show you this thread:
I have tried to set the maxDepth from 100 to 9999 but JsonEx.stringify will raise an "Object to deep" error too (also if I try to save your game without Cloud Manager). So I would say there is a problem with your game.
Original thread: https://forums.rpgmakerweb.com/threads/cloud-manager-simple-cloud-based-savegame-system.57750/





)

