Cloud Manager - Simple cloud based savegame system

● ARCHIVED · READ-ONLY
Started by Purzelkater 73 posts Page 2 of 4 View original ↗
  1. Im using the rmmv 1.1.0


    not working with the number ip instead localhost


    not working without no auto shadows


    and then not working with new project.


    EDIT:


    The settings is the same as your print.


    Sem título.png
  2. 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:

    Spoiler
    Cloud Manager - Database Test
    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
  3. Purzelkater said:
    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:

    Spoiler
    Cloud Manager - Database Test
    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 35874



    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?
  4. 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
  5. Thank you to create this Plugin  :D


    it's really a great job !
  6. Purzelkater said:
    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 35976

    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! :D


    Now i just want to study how the game saves to possibly edit this saves.


    Thanks a lot for help and attention.

    Sem título.png
  7. afonsobr said:
    What was wrong and what did you do to fix?



    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.
  8. 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).
  9. today i saved my game ,but it said "Object too deep" ...


    maybe there are too many Objects? 


    when i saved game in a house, no error...   


    Untitled-1.jpg


    Untitled-3.jpg
  10. 8953014 said:
    today i saved my game ,but it said "Object too deep" ...


    maybe there are too many Objects? 


    when i saved game in a house, no error...   



    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?
  11. like this? 


    Object too deep_7764.jpg
  12. 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?
  13. Purzelkater said:
    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 sent you the file URL, and the game not finished (maybe 15%)...


    thanks
  14. 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...
  15. 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
  16. Purzelkater said:
    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 36673





    Thank you solved the error problem, and i can save the game finally !  :)


    But, when i load the file... @@"

    TypeError.jpg
  17. 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?
  18. Purzelkater said:
    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?



    yes, i did...  just more maps and objects...  


    so, i’ve created a new Project4 , and  trun on CloudManager.js & JSON_prune.js ... (no other plugins 、no more object)


    it looks like the same  problem (how come  ;_;


    TypeError_undefined_01.jpg


    TypeError_undefined_03.jpg


    TypeError_undefined_02.jpg
  19. 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.