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

Added command to force config update (untested) #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xXxTHELAWxXx97
Copy link

Wanted to add a way to force the config to clear, I'm not sure if I did this right but from what I gathered on restart it checks the convars to see if it was set on startup. This would only look for convars set by the framework to clear and set them to none.

@nathanctech
Copy link
Contributor

Wouldn't it be much simpler to have the script just set the convars to the new values in the config file instead? Would avoid a restart.

@xXxTHELAWxXx97
Copy link
Author

It would also have to add the new config into the config table. Also, I made this alteration because for some reason ours didn't recognize discord as the primary identifier on boot, and we were mid session trying to fix it so we couldn't initiate a server restart at that time. But the flag had already set it as a critical error and stopped everything from running. I would assume to clear the critical flag and allow the script to run again would only be via restart.

@nathanctech
Copy link
Contributor

It would require fixing whatever caused it to error then just restarting the resource, as that failure mode is just a boolean set against the Config table (and not set as a convar). You can also manually change the variables in the console (via set) then restart the resource. None of these would require a whole server restart, though.

@xXxTHELAWxXx97
Copy link
Author

That's what we ended up doing the other night but it wasn't until I went through the entire configuration code base to figure out it would work. This PR is just for simplicity if it ever happens in the future.

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

Successfully merging this pull request may close these issues.

2 participants