Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings set by admin are not persisted on dedicated Server #873

Closed
Xyaren opened this issue Jan 14, 2018 · 14 comments
Closed

Settings set by admin are not persisted on dedicated Server #873

Xyaren opened this issue Jan 14, 2018 · 14 comments
Labels
Milestone

Comments

@Xyaren
Copy link

Xyaren commented Jan 14, 2018

Arma 3 Version: 1.80.143869 stable
CBA Version: 3.5.0.171204

Mods:

- CBA_A3
- ACE3

Description:
Settings are not persisted on server. After restart settings are lost

Manualy executing saveProfileNamespace after changing settings, persists them in the profile (.vars File).

Steps to reproduce:

  • action: Change ACE3 Advanced Ballistic Setting to Enabled (Logged In)
  • action: restart server
  • state: settings are back to default

Where did the issue occur?

  • Dedicated
@commy2
Copy link
Contributor

commy2 commented Jan 14, 2018

Can't reproduce. They're saved without saveProfileNamespace for me. Are you sure this is needed? Or have you just read it and not tried?

@Xyaren
Copy link
Author

Xyaren commented Jan 16, 2018 via email

@Dorbedo
Copy link
Contributor

Dorbedo commented Jan 16, 2018

@commy2 I think I had the same issue on my Linux servers too. (Never did a deeper research on this Issue. I've just switched to settings packed as a mod)

Maybe it's OS related?

@Xyaren
Copy link
Author

Xyaren commented Jan 16, 2018

@Dorbedo I had the issue on a Windows host.

@commy2 saveProfileNamespace has been remote-executed on the server of course.

I think this dpends on the way the server is shut down.
My hosting service probably just kills the process ? - A gracefull shutdown will persist the variables in profileNamespace to the disk.

@Xyaren
Copy link
Author

Xyaren commented Jan 21, 2018

I think executing saveProfileNamespace on the server when pressing the "Ok" Button (on the Server Tab!) is a solution that has no side effects. There are no disadvantages for me.

@Cuel
Copy link
Contributor

Cuel commented Jan 21, 2018

Surely it could just be added? Doesn't seem to do any damage

@commy2
Copy link
Contributor

commy2 commented Jan 21, 2018

Don't want to add placebos, and I'm still not convinced this is needed or would change anything. I can't reproduce the issue, even with killing the games task.

@Xyaren
Copy link
Author

Xyaren commented Jan 21, 2018

BI desrcibes it like this:

By default the variables set in this namespace will exist while the game is running. In order to make variables save permanently, use saveProfileNamespace before the game is over.
https://community.bistudio.com/wiki/profileNamespace


I am still having this issue.

@commy2
Copy link
Contributor

commy2 commented Jan 21, 2018

I don't trust the wiki. It's pretty much wrong on all details. That's not enough to convince me.

@Xyaren
Copy link
Author

Xyaren commented Jan 21, 2018

Try reproducing it with a brand new profile (on the server)

@Dorbedo
Copy link
Contributor

Dorbedo commented Jan 21, 2018

I was able to reproduce it several times.

I've startet a mission and changed some settings. Afterwards:

  • If I just kill the server process, the settings are not saved.
  • If I use the saveProfileNamespace or change the mission, the settings are saved. (Even if I just kill the server process afterwards)

@654wak654
Copy link
Contributor

654wak654 commented Jan 21, 2018

Don't want to add placebos, and I'm still not convinced this is needed or would change anything. I can't reproduce the issue, even with killing the games task.

Are you testing with a dedicated server or the game itself? Remember how dedicated servers used to have issues with profileNamespace? This could be related.

@commy2
Copy link
Contributor

commy2 commented Jan 21, 2018

arma3server.exe

@PabstMirror
Copy link
Contributor

profileNamespace setVariable - Close server via UI's X Button = Works
profileNamespace setVariable - End process via task manager = Fail
profileNamespace setVariable; saveProfileNamespace; - End process via task manager = Works

You can watch file Arma3Dedicated\profiles\Users\server\server.vars.Arma3Profile
It will update mid-mission when running the saveProfileNamespace command

Some people will be using server managers that might hard kill the proces;
So I'm pretty sure we should just add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants