summaryrefslogtreecommitdiff
path: root/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2021-08-04Add another verbosity level, otherwise debug.txt will be a monsterJesusaves1-5/+8
2021-08-04Remove previously deprecated `dbgprint` function.Jesusaves1-7/+4
2020-12-31Relicense the game to GPLv3.Jesusaves1-2/+2
utils.py can still be used under the LGPL. The LGPL license present in git history is no longer valid, but already issued copies still are. Needless to say, there are no "already issued copies"...
2020-12-23stdout() - always print to consoleJesusaves1-1/+1
2020-12-21Improve token logic internally.Jesusaves1-2/+7
Hopefully this will detect when same userid is logged in twice and dc the older login. May suffer of race condition.
2020-12-21Make clients a global arrayJesusaves1-0/+1
2020-12-20Exp Table is now part of server data (no more a JSON file).Jesusaves1-5/+1
This is possible thanks to max_exp now being sent with player data.
2020-12-19Bump experience - again.Jesusaves1-0/+4
EXP is now ruled by a table. It is starting to get annoying the number of JSON files we have. Too many files to request
2020-12-18Create tokens (unfinished, needs IP checking). Document max length experiments.Jesusaves1-1/+5
Login still not enabled.
2020-12-18Ehm, compress() needs to re-convert it to asciiJesusaves1-1/+2
2020-12-18Update compress to Python3Jesusaves1-0/+1
2020-12-17New function: security.score()Jesusaves1-0/+6
Whenever a bad packet is received or something, it adds a "score" to the conn. If it exceeds a certain threshold (5 for unauthed, 30 for authed users), the connection is killed and IP is blacklisted for BAN_TIME (default: 3 mins)
2020-12-16Remove unused dependencyJesusaves1-1/+1
2020-12-16Add utils for improved logging.Jesusaves1-0/+145
Add the placeholder JSONs from earlier.