Digital Paint Discussion Board

Paintball 2: The Game => Server Discussion => Topic started by: mRokita on June 28, 2017, 08:58:33 AM

Title: DPLib
Post 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
Title: Re: DPLib
Post by: mRokita on June 29, 2017, 08:50:12 AM
https://mrokita.github.io/DPLib/gettingstarted.html
Getting started section finished :)
Title: Re: DPLib
Post by: mRokita on July 03, 2017, 05:30:54 PM
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:

Code: [Select]
python3 -m pip install DPLib
Upgrade:

Code: [Select]
python3 -m pip install --upgrade DPLib
Title: Re: DPLib
Post by: cnly on July 11, 2017, 01:59:27 PM
Nice error handling bro.
Title: Re: DPLib
Post by: mRokita on July 12, 2017, 06:13:36 AM
Nice error handling bro.
nice nickname payl, u still around?
Title: Re: DPLib
Post by: cnly on July 12, 2017, 06:44:33 AM
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.
Title: Re: DPLib
Post by: mRokita on July 12, 2017, 07:53:16 AM
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.