Member
Last active 8 years ago
So been playing for a few days, and persistence is now functional, and it both posts and gets from the database.
The new .dll file is working now, thanks.
[2016-12-06 16:46:24] [info] ALiVEPlugIn v2.1a- [2016-12-06 16:46:24] [debug] >>> ParseMessage [StartALiVE ['true']] [2016-12-06 16:46:24] [debug] Function: StartALiVE [2016-12-06 16:46:24] [debug] Params: [2016-12-06 16:46:24] [debug] - [true] [2016-12-06 16:46:24] [info] Disable Performance Monitor: true [2016-12-06 16:46:24] [info] Reading 'alive.cfg' [2016-12-06 16:46:24] [info] Configuration found: C:\Users\*Censored*\AppData\Local\ALiVE\alive.cfg [2016-12-06 16:46:24] [info] Configuration 'alive.cfg' read OK. [2016-12-06 16:46:24] [debug] Alive Config: [2016-12-06 16:46:24] [debug] Type: JSON [2016-12-06 16:46:24] [debug] User: admin [2016-12-06 16:46:24] [debug] Pass: xxxxxxxxxxxxxxxx [2016-12-06 16:46:24] [debug] Group: *Censored* [2016-12-06 16:46:24] [debug] URL: http://localhost:5984 [2016-12-06 16:46:24] [info] Checking DB access... [2016-12-06 16:46:24] [info] DB access granted. [2016-12-06 16:46:24] [info] ALiVE successfully initialized.
Ok, thanks for all the help :) ALiVE has an awesome and really responsive community. I'll mark this as solved, so I won't cause more confusion. Thanks again.
Cheers
Xdeposh
So everytime I turn off my server, and then back on again, we have to clear all the sector and fight our way into the center of the map, everytime? So we can't just save and start off where we let go last time?
@marceldev89 Did you enable persistence for the C2ISTAR module? (not sure if there's an option for it though)
Well, there's not an option called persistent, but there is one called persistent tasks. It's enabled, and I guess it does roughly the same thing.
This is my current alive.cfg JSON,admin,admin,*CENSORED*,http://localhost:5984
, and it still gives me the "No URL in config". But I did however find a sort of a fix for this. I'll state that under this log from: aliveplugin_2016-12-05_21-00.txt
[2016-12-05 21:00:06] [info] ALiVEPlugIn v2.1a- [2016-12-05 21:00:06] [debug] >>> ParseMessage [StartALiVE ['true']] [2016-12-05 21:00:06] [debug] Function: StartALiVE [2016-12-05 21:00:06] [debug] Params: [2016-12-05 21:00:06] [debug] - [true] [2016-12-05 21:00:06] [info] Disable Performance Monitor: true [2016-12-05 21:00:06] [info] Reading 'alive.cfg' [2016-12-05 21:00:06] [info] Configuration found: C:\Users\*CENSORED*\AppData\Local\ALiVE\alive.cfg [2016-12-05 21:00:06] [info] No URL in config. Using default. [2016-12-05 21:00:06] [info] Configuration 'alive.cfg' read OK. [2016-12-05 21:00:06] [debug] Alive Config: [2016-12-05 21:00:06] [debug] Type: JSON [2016-12-05 21:00:06] [debug] User: admin [2016-12-05 21:00:06] [debug] Pass: xxxxxxxxxxxxxxxx [2016-12-05 21:00:06] [debug] Group: *CENSORED* [2016-12-05 21:00:06] [debug] URL: http://db.alivemod.com:5984 [2016-12-05 21:00:06] [info] Checking WarRoom access... [2016-12-05 21:00:06] [info] URL: http://alivemod.com/api/authorise?&group=*CENSORED* [2016-12-05 21:00:06] [info] WarRoom access granted. [2016-12-05 21:00:06] [info] Checking DB access... [2016-12-05 21:00:06] [error] ###### HandleMessage - StartALiVE ###### [2016-12-05 21:00:06] [error] Error: Unable to connect to DB [2016-12-05 21:00:06] [error] RAW: StartALiVE ['true'] [2016-12-05 21:00:06] [debug] Return value [['StartALiVE','ERROR','Unable to connect to DB']] [2016-12-05 21:00:06] [debug] |/-\ Elapsed time: 298.286ms [2016-12-05 21:00:06] [debug] >>> ParseMessage [GroupName] [2016-12-05 21:00:06] [debug] Function: GroupName [2016-12-05 21:00:06] [debug] Params: [2016-12-05 21:00:06] [warning] ALiVE not initialized yet! [2016-12-05 21:00:06] [info] GroupName: *CENSORED* [2016-12-05 21:00:06] [debug] Return value [['*CENSORED*']] [2016-12-05 21:00:06] [debug] |/-\ Elapsed time: 0.501ms [2016-12-05 21:00:06] [debug] >>> ParseMessage [SendJSON ['GET','sys_data/config','']] [2016-12-05 21:00:06] [debug] Function: SendJSON [2016-12-05 21:00:06] [debug] Params: [2016-12-05 21:00:06] [debug] - [GET] [2016-12-05 21:00:06] [debug] - [sys_data/config] [2016-12-05 21:00:06] [debug] - [] [2016-12-05 21:00:06] [warning] ALiVE not initialized yet! [2016-12-05 21:00:07] [debug] Return value [['{"error":"unauthorized","reason":"Name or password is incorrect."} ']] [2016-12-05 21:00:07] [debug] |/-\ Elapsed time: 341.828ms
What I did, which did result in a successful connection to the DB was to edit my host file.
Now when I enter either localhost:5984 or db.alivemod.com I come to this site.
I've also managed to set up my db and make ALiVE connect to it and even post to it, as shown here
Here's also how my log looks like now
TL;DR
I changed db.alivemod.com to route to 127.0.0.1 in my hosts file.
But now a new error has occurred. When I save the game, it pushes data to the DB, but when I start up the mission again, the green squares that once was cleared, now has to be cleared yet again. Any tips on this?.
Hello, I know that it's specifically stated on the wiki that local DB won't get any support, but I'd really hope that some of you could help me anyways. I've followed this tutorial : . I've done all the steps and filled in the alive.cfg with by "url" aka. localhost:5984, but in the @ALiVEServer logs it says that there's "No URL in config".
Here's my alive.cfg
JSON,[Here'smyUsername],[Here'smyPassword],{MyTag],localhost:5984
I've checked that my tag is authorized.
This is a raw excerpt from my log, I censored my username, tag and password.
[2016-12-04 20:00:10] [info] Reading 'alive.cfg'
[2016-12-04 20:00:10] [info] Configuration found: C:\Users\Censored\AppData\Local\ALiVE\alive.cfg
[2016-12-04 20:00:10] [info] No URL in config. Using default.
[2016-12-04 20:00:10] [info] Configuration 'alive.cfg' read OK.
[2016-12-04 20:00:10] [debug] Alive Config:
[2016-12-04 20:00:10] [debug] Type: JSON
[2016-12-04 20:00:10] [debug] User: [CENSORED]
[2016-12-04 20:00:10] [debug] Pass: xxxxxxxxxxxxxxxx
[2016-12-04 20:00:10] [debug] Group: [CENSORED]
[2016-12-04 20:00:10] [debug] URL: http://db.alivemod.com:5984
[2016-12-04 20:00:10] [info] Checking WarRoom access...
[2016-12-04 20:00:10] [info] URL: http://alivemod.com/api/authorise?&group=*Censored*
[2016-12-04 20:00:10] [info] WarRoom access granted.
[2016-12-04 20:00:10] [info] Checking DB access...
[2016-12-04 20:00:11] [error] ###### HandleMessage - StartALiVE ######
[2016-12-04 20:00:11] [error] Error: Unable to connect to DB
[2016-12-04 20:00:11] [error] RAW: StartALiVE ['true']
[2016-12-04 20:00:11] [debug] Return value [['StartALiVE','ERROR','Unable to connect to DB']]
[2016-12-04 20:00:11] [debug] |/-\ Elapsed time: 620.095ms
I'd really appreciate any help that I could get on this matter.