assetto-corsa-web / accweb

Assetto Corsa Competizione Server Management Tool via Web Interface.
MIT License
142 stars 54 forks source link

Saved Settings Not Applied #51

Closed Menteroth closed 4 years ago

Menteroth commented 4 years ago

So I have setup this for my server for the event rules. These settings are saved in the root of the ID folder of the server and also in the cfg folder, but not in current, which seems to be the final settings for when the server goes live.

ID/eventRules.json ID/cfg/eventRules.json

{
    "configVersion": 1,
    "qualifyStandingType": 1,
    "pitWindowLengthSec": 600,
    "driverStintTimeSec": -1,
    "mandatoryPitstopCount": 1,
    "maxTotalDrivingTime": -1,
    "maxDriversCount": 1,
    "isRefuellingAllowedInRace": true,
    "isRefuellingTimeFixed": false,
    "isMandatoryPitstopRefuellingRequired": false,
    "isMandatoryPitstopTyreChangeRequired": true,
    "isMandatoryPitstopSwapDriverRequired": false
}

But in the current folder eventRules.txt after starting my server these are the settings. So when the server goes live it uses these settings I'm guessing, because the mandatory pitstop I setup did not work. There was no pit window and requirement field was blank.

ID/cfg/current/eventRules.txt

{
    "qualifyStandingType": 1,
    "superpoleMaxCar": -1,
    "pitWindowLengthSec": -1,
    "driverStintTimeSec": -1,
    "isRefuellingAllowedInRace": true,
    "isRefuellingTimeFixed": false,
    "maxDriversCount": 1,
    "mandatoryPitstopCount": -1,
    "maxTotalDrivingTime": -1,
    "isMandatoryPitstopRefuellingRequired": false,
    "isMandatoryPitstopTyreChangeRequired": false,
    "isMandatoryPitstopSwapDriverRequired": false,
    "tyreSetCount": 50
}
Menteroth commented 4 years ago

Checked the other files and noticed that this value "dumpEntryList": 0 is not saved either. I have set this value to 1 in settings.json.

Menteroth commented 4 years ago

From the console when starting. If needed.

time="2020-04-11T14:43:28+02:00" level=debug msg="Decoded JSON request" req="&{1581597303}"
time="2020-04-11T14:43:28+02:00" level=info msg="Starting server instance..." id=1581597303
time="2020-04-11T14:43:28+02:00" level=debug msg="Copying file" source="D:\\games\\Steam\\steamapps\\common\\Assetto Corsa Competizione\\server\\accServer.exe" target="config\\1581597303\\accServer.exe"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\configuration.json" target="config\\1581597303\\cfg\\configuration.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\settings.json" target="config\\1581597303\\cfg\\settings.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\event.json" target="config\\1581597303\\cfg\\event.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\eventRules.json" target="config\\1581597303\\cfg\\eventRules.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\entrylist.json" target="config\\1581597303\\cfg\\entrylist.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\bop.json" target="config\\1581597303\\cfg\\bop.json"
time="2020-04-11T14:43:29+02:00" level=debug msg="Copying file" source="config\\1581597303\\assistRules.json" target="config\\1581597303\\cfg\\assistRules.json"
time="2020-04-11T14:43:29+02:00" level=warning msg="config\\1581597303"
time="2020-04-11T14:43:29+02:00" level=info msg="Server started" PID=20932
Menteroth commented 4 years ago

Uhm okay. Never mind. After a few restarts it suddenly worked. No idea why.

Menteroth commented 4 years ago

Nope. I don't get how this works. I tried applying the settings on my other server but it won't apply now. So not sure what I need to do to get it to work.

Menteroth commented 4 years ago

Okay. So I played around a bit more with stuff. It seems you can only use the mandatory pit stop settings in private servers, and not public. Argh. Oh well. Not much to do about it.