lunixbochs / uberserver

matchmaking/chat lobby server for the spring rts project
MIT License
8 stars 4 forks source link

Implemeting feature - "HideCountry" for uberserver. #10

Closed TomFyuri closed 7 years ago

TomFyuri commented 12 years ago

Implemeting feature - "HideCountry" for uberserver. Admins (for example NightWatch by sending command) can set the flag for paranoid people to 'hide'/'unhide' their country.

This was tested multiple times with mysql, tas way of storing and LAN. I haven't tested with sqlite though.

---MYSQL instructions: Database needs to be modified accordinly. ALTER TABLE users ADD hidecountry INT AFTER access; UPDATE users SET hidecountry = '0' WHERE users.id > 0; OR ALTER TABLE users ADD hidecountry INT NOT NULL AFTER access; Either way should be fine. (I prefer 1st, obvious difference is that if its not NULL its filled with 0 by default)

---TAS accounts.txt instructions: If --accounts is used it's vital to modify LegacyUsers.py (Step 1) otherwise bad things happen. Backup accounts.txt just in case. It should be perfectly compatible with previous accounts.txt.

TomFyuri commented 12 years ago

Any news?