Using Couch DB. Is loading automatic?

  1. ‹ Older
  2. 7 years ago

    There is a way to create a local Database, bypassing the WarRoom ,the Alive data servers and save the persistent information to your own local database using CouchDB.

    https://github.com/ALiVEOS/ALiVE.OS/wiki/Setting-Up-a-local-DB-instance-(DEV-ONLY )

    I've followed the guide and am able to confirm that the information is being saved and stored to my local database. I just need to know how to access the saved data and load it at the start of the mission. i see no indication of it loading. I'm sure there is a step i'm missiong to access the data.

  3. Edited 7 years ago by HeroesandvillainsOS

    For the new saving method, In your mission, you need ALiVE data placed. In the module, you change the default CouchBD option to profileNamespace.

    Then set persistence to yes in all the modules your mission uses. Look through them all, a bunch have this feature defaulted to no.

    If you're hosting your own local server, loading a save is as simple as starting the mission again like you did the first time you played it and saved it (either in SP or local MP, makes no difference). Dedicated server is a bit trickier.

    Anyway, if you're not seeing the mission load correctly, I'm going to assume your mission isn't using the editor/module settings needed for data to be saved.

    A good simple way to test would be to change the data option for save mission time from no to yes. Save the mission at a certain time of day. Start the mission again, and look at the time.

  4. Edited 7 years ago by Cobra

    I dont think we're on the same page here. I have the stuff in the editor right. All set to yes using CouchDB. It is saving. I have confirmed it. Ive been saying that in each post. It is saving. the problem is to figure out how to confirm it is loading. In my experience with WAr Room loading it will give you a notice on the right of the screen on mission load. I am guessing that for the data to be loaded from the CouchDB there is a function that needs to be called.

    I just reread the part to test using in game time. I will try that right now.

  5. Edited 7 years ago by marceldev89

    The local CouchDB should work automatically for the most part.

  6. I can confirm it's saving but it is not loading. If its saving it should be setup right?

  7. Edited 7 years ago by HeroesandvillainsOS

    You may either want to post the mission here, or post your server rpt from the session you saved and the session you loaded. Database persistence is pretty reliable these days so I'm going to guess the solution here is simple (i.e. Mod conflict, or module not set properly or server info not setup correctly on the site, etc).

    It's possible you're thinking your mission is saving because your profile is updating on War Room. These are not the same thing (though I can see how someone would assume one connecting would mean the other was working, etc).

  8. I am not using the Alive War Room! I am using my own local database! I can confirm the data is saved because I can view the saved entries in the local database. As stated in the guide I posted, which explains setting up a local database on a personal dedicated server, War Room only needs to have your unit registered and is not involved in saving or loading of persistent data. That is all being done on my local machine. The data is there I can see it. I followed the guide and I cant see anything I could have missed to make it save, but not load. Also how do I post the mission? As an attachment?

  9. Edited 7 years ago by marceldev89

    Put the file on dropbox and post the shared url here. I doubt it's a mission issue though.

    Also tagging @Tupolov since he's the couch man :)

  10. Edited 7 years ago by Cobra

    https://www.dropbox.com/s/47vv7a7ja58oqp9/Vietnam_65_MSO_02.DaKrong.pbo?dl=0

    Here is the mission file

  11. I managed to solve the problem. Player positions and vehicles are being loaded. The issue seemed to be incorrect setup with war room. When a mission loads from couch it dosent appear to have any ingame notification of a successful data load.

    Everything seems to be persisting except for partolreps and spotreps. Am I missing an option in a module in the editor to enable persistent reports?

  12. @Cobra I managed to solve the problem. Player positions and vehicles are being loaded. The issue seemed to be incorrect setup with war room. When a mission loads from couch it dosent appear to have any ingame notification of a successful data load.

    What was the issue with war room?

    @Cobra Everything seems to be persisting except for partolreps and spotreps. Am I missing an option in a module in the editor to enable persistent reports?

    I believe the patrol- and spotreps persistence is a separate setting in some module but can't remember what exactly.

  13. The problem was that even with CouchDB you have to have the dedicated server properly setup within War Room. I had some old values from an old server that was using War Room persistence. I just double checked and removed any info that remained from the old serer that was originally registered to the War Room. Once the new server was properly setup in War Room, the Couch worked.

    I cannot seem to find the SPOTREP PATROL REP persistence setting. I searched for about 2 hours last night to no avail.

  14. Edited 7 years ago by marceldev89

    The "ALiVE (Required)" modules has an option called "Disable Adv. Markers" which should be set to "No". If that's the case then it should work fine.

    Check the RPT of the client that's doing the server save, it should be mentioned in there somewhere.

  15. The option isnt disabled, but it's still not saving the markers.

  16. 6 years ago

    it shows that the markers are being saved to the database, but not loading. Is there any info I can find in my logs or reports that can help me out? I see the logs and there is a ton of info in there. I see some suspect stuff, but I'm not sure what I'm looking for.

  17. I don't know too much about the markers and persistence but you can post whatever you think is useful here and I'll check it out.

    Our persistence guy will be back soon but until then we'll have to make due.. :D

  18. Good evening everyone,

    Sirs the link to the manual that shows how to have a local ALiVE database is no longer available. Please someone could tell me the correct location or pass a pdf or even here by the forum how to proceed to have this local base for testing.

    Thank you so much guys.

  19. Edited 6 years ago by marceldev89

    For testing purposes you can switch the data module to "Local" source. This stores the data to A3's profileNamespace. Local databases are pretty much deprecated now. :)

  20. Tupolov

    21 Sep 2017 Administrator

    To clarify, we no longer support local instances of CouchDB.

    Instead, we offer a local database based on Arma 3 capabilities (i.e. saving to the server profile variables). Simply select Local in the database dropdown in the Data module.

  21. Sirs, sorry to relive this post, but I would like a little more information regarding the local save of ALiVE.

    In searching for more information how to do this save location, I found this link https://github.com/ALiVEOS/ALiVE.OS/blob/master/releasenotes/BIF_RELEASEPOST_1_3_5.txt

    But, if not ask too much, someone could pass a how-to how to make it work ...

    In our mission we changed the module to local, access as admin the mission, make some movements of vehicles and some combat and we execute the save, the tablet is not displayed and no file is saved.

    On the location where the save file is being stored, in the link above, it indicates this folder C: \ Users \ username \ Documents \ Arma 3 - Other Profiles \ profilename

    I am going to the site and within the user profile nothing indicates to me that it is the ALiVE save.

    Gentlemen, please, could someone describe a how-to how to make it work?

    I apologize for English, since it is not my mother language and I ended up making use of google translator.

    Thank you all.

 

or Sign Up to reply!