-
Notifications
You must be signed in to change notification settings - Fork 629
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
🐛 Losing !togglegm upon zoning #5636
Comments
I found the issue to be within the char_flags.sql Your current char does not get a flag unless you manually insert a line for it. But if you set If you create a new char and it is marked as a GM, then when you toggle it on. It does stay upon zoning, but once toggle off it stays. You have go into char_flags and change from 1 to 0 to disable |
"manually insert a line" -- can you elaborate further? are there sql errors in map? |
If you are in the DB and then go to char_flags and right click to insert row and no errors within map. |
It sounds like you didn't run the migration?
|
I ran everything suppose to. But even on a new char when you do |
If you had to insert that row that means the migration didn't run, the query above inserts a new row for all pre-existing characters, and new characters get an entry on that table here: server/src/login/login_helpers.cpp Line 178 in 2309bb1
|
Well I would not know how it did run when I updated DB with |
hmm... that's really weird. I don't have an explanation for why your char_flags wasn't populated then |
You should run this query on your db just in case: |
I think I see the bug. it looks like Thanks for the report, you 100% should run the above query. |
I ran the query. Just booting back up the server to test it |
Ok it is semi working. When you have |
I'll look into it after I get home from work |
Ok no worries. Thanks for looking into it. It is something with the |
I did a 5 second check (still on my lunch break) in |
Ok that is working |
Should I make a PR for this or wait to see if come up with another fix? |
I affirm:
OS / platform the server is running (if known)
Windows 10
Branch affected by issue
base
Steps to reproduce
When you have
!togglegm
and you zone it will be removed. You are able to toggle it back on, but once zone again it is removed. This happens on current char.If you create a new char it does stay when you zone. If you toggle off
!togglegm
and zone it comes back onExpected behavior
Keep
!togglegm
upon zoningThe text was updated successfully, but these errors were encountered: