Digital Paint Discussion Board

Paintball 2: The Game => Server Discussion => Topic started by: 3lf on March 23, 2019, 11:54:30 AM

Title: -DP2skip: A vote to skip the map-
Post by: 3lf on March 23, 2019, 11:54:30 AM
Hey! It's me again with a new script.

beta 6
changelog:
name changes broke the script.. well no more!

beta 5
changelog:
nothing major

beta4
changelog:
made improvements to ui

beta 3
changelog:
made a separate config to keep the user made changes for future updates

source: https://github.com/aapokaapo/DP2skip/

 (https://github.com/aapokaapo/DP2skip/)What it is?:
- A vote to skip map
- To vote yes, say "!skip"
- If the majority votes yes, map will change to next one in rotation
- there is a 10 second timeout after first player joins the server to prevent the first player to pass a vote immediately after mapchange

yeah, that's about it...

(https://docs.google.com/uc?id=1oMUIHpOv5Pj_XIvCfKko4a8VTjiXX0qA)
to make the script work you need python and modified DPLib from this zip.


Installation:

This script is meant to be running serverside

download link here (GDrive) (https://drive.google.com/open?id=13nOmg7rIQ32Wx4Upcz59-xcOgzUrPM9h)

1. Install python

2. Install DPLib
    - cd DPLib
    - python setup.py install --prefix=$HOME/.local

3. Configure config.py
    - set rotation file
    - set the path to servers qconsole.log and rcon password
Title: Re: -DP2skip: A vote to skip the map-
Post by: Toolwut on March 23, 2019, 12:08:25 PM
Definitely a thing this game needs, even if it should still contain bugs. These days a "full" server will get empty super quickly when theres a map nobody wants to play...
Title: Re: -DP2skip: A vote to skip the map-
Post by: Playah on March 25, 2019, 07:15:11 PM
Map skip voting? That's awesome!
Title: Re: -DP2skip: A vote to skip the map-
Post by: JeongWa on April 05, 2019, 05:50:38 PM
Pretty useful but this isn't stable, you might wanna look into it.
Title: Re: -DP2skip: A vote to skip the map-
Post by: 3lf on April 06, 2019, 02:17:07 AM
Updated the timeout script. Now it actually works as described.

Pretty useful but this isn't stable, you might wanna look into it.
How exactly is the script not stable? I need info on what do I have to take a look at