Digital Paint Discussion Board
Paintball 2: The Game => Server Discussion => Topic started by: mRokita on June 28, 2017, 08:58:33 AM
-
GitHub:
https://github.com/mRokita/DPLib
Docs (for pip install release):
https://mrokita.github.io/DPLib/index.html
Getting started (Done!)
https://mrokita.github.io/DPLib/gettingstarted.html
Working examples:
https://github.com/mRokita/DPLib/tree/master/examples
Module documentation:
https://mrokita.github.io/DPLib/source/dplib.html#module-dplib
-
https://mrokita.github.io/DPLib/gettingstarted.html
Getting started section finished :)
-
v1.3 released.
New features:
'On game end' event (Server.on_game_end() (https://mrokita.github.io/DPLib/source/dplib.html#dplib.server.Server.on_game_end), Server.wait_for_game_end() (https://mrokita.github.io/DPLib/source/dplib.html#dplib.server.Server.wait_for_game_end))
Status query support (Server.get_status() (https://mrokita.github.io/DPLib/source/dplib.html#dplib.server.Server.get_status), Server.get_simple_playerlist() (https://mrokita.github.io/DPLib/source/dplib.html#dplib.server.Server.get_simple_playerlist))
Get cvar method (Server.get_cvar() (https://mrokita.github.io/DPLib/source/dplib.html#dplib.server.Server.get_cvar))
Install:
python3 -m pip install DPLib
Upgrade:
python3 -m pip install --upgrade DPLib
-
Nice error handling bro.
-
Nice error handling bro.
nice nickname payl, u still around?
-
nice nickname payl, u still around?
I'm not payl, obviously. ROT-13(payl) is obviously not cnly!
But payl is still around from time to time, which is nowadays "very active" comparing to others.
Too bad you didn't answer my comment. Being programmer with more years I wanted to raise your attention to terrible error handling. Some methods do raise errors. Some don't, instead returning a string like "here, do something with that". That isn't good design. I understand that error handling is hard thing to do, but I believe also that it's one of most important things. Just wanted to give that hint to you.
And also your dp server browser on android is... not necessary. I wouldn't pay for including it in store, or ask other people to help me... But that's just my opinion.
-
I'm not payl, obviously. ROT-13(payl) is obviously not cnly!
But payl is still around from time to time, which is nowadays "very active" comparing to others.
Too bad you didn't answer my comment. Being programmer with more years I wanted to raise your attention to terrible error handling. Some methods do raise errors. Some don't, instead returning a string like "here, do something with that". That isn't good design. I understand that error handling is hard thing to do, but I believe also that it's one of most important things. Just wanted to give that hint to you.
And also your dp server browser on android is... not necessary. I wouldn't pay for including it in store, or ask other people to help me... But that's just my opinion.
SB and that lib are my personal projects. I've written that serverbrowser some time ago to learn Android, the lib was my attempt on asyncio. Not all the errors are handled and not all the methods are implemented - it's not a final version.
Also, I wouldn't waste my time on developing stuff for DP if I wanted to create something popular/useful.