Page 1 of 1

timed match procedure

Posted: Wed Mar 28, 2018 8:44 pm
by mathiaz
Hi all,

I would like to know the procedure to run a timed match with :
- countdown
- time limit
- and number of player limited when match is running

I don t find nor on the forum nor in the wiki

Thanks

Re: timed match procedure

Posted: Wed Mar 28, 2018 11:37 pm
by Zehra
I'm not sure if this helps, but here's some configurations I've used to start up a local server with countdown.

Localgroup.txt

Code: Select all

EVERYONE: +REPORT +TIMELIMIT +COUNTDOWN
VERIFIED:
LOCAL.ADMIN: +TIMELIMIT +ENDGAME
BZFS options

Code: Select all

-groupdb Localgroup.txt -timemanual -loadplugin TimeLimit,15,20,30 -password myPassword  -p 5154 -world "PathToWorldFile.bzw"
Please note that the "pass to world file" option needs to be set to your operating system.
The options might vary a bit between operating systems, but this is the basic format which can be used for a timelimit based system.

I'm not exactly sure what you mean by 'and number of player limited when match is running', but if it is to prevent people from joining when a match is running, there is the playerJoinHandler by Allejo.

-Zehra

Re: timed match procedure

Posted: Thu Mar 29, 2018 5:18 am
by allejo
Adding on to Zehra's post, keep in mind that the use of -password is highly discouraged on public servers. The only other option that's needed is -time, which defines the default timed match duration.

Code: Select all

-time 1800 # 30 minutes; value in seconds

Re: timed match procedure

Posted: Thu Mar 29, 2018 7:17 am
by mathiaz
Bonjour,

Thanks countdown works.

Which command may i use to change the match time. I still have default time (-time 900).
I try /timelimit /time without success

Why -password is highly discouraged on public servers? Even if the server is occassionaly up, just for some match?

When i have time i will compil playerJoinHandler module.

Thanks for the answers

Re: timed match procedure

Posted: Thu Mar 29, 2018 10:22 am
by blast
We do include a readme file for each plugin, and the TimeLimit plugin's readme includes the commands.

https://github.com/BZFlag-Dev/bzflag/bl ... eLimit.txt

The -password option is insecure as there is no way to change a password on a live server and it's prone to being accidentally sent to chat (since an extra leading space or missing the forward slash on the command will instead send it to chat).

Re: timed match procedure

Posted: Thu Mar 29, 2018 7:14 pm
by Zehra
Mathiaz,

You might want to consider using the "superUser" plug-in.
From the readme:

Code: Select all

The superUser plugin lets a server owner grant permissions to globally
authenticated users based on BZID so they don't have to set up specific
admin groups in the global space.
It's much safer and is easier to use compare to /password. (No password guessing by others and no need to type in /password.)
I'm sorry if the '-passwd' option added any confusion, it is very strongly discouraged and should not be used for any globally authenticated server.
I only recommend the use global groups or the SuperUser plug-in for permissions on globally authenticated servers.

-Zehra

Re: timed match procedure

Posted: Thu Mar 29, 2018 8:52 pm
by mathiaz
oki

I had to compile bzfs with options:

./configure --enable-shared --disable-client --enable-custom-plugins=playerJoinHandler,TimeLimit

and everything is working well.

Thanks

Re: timed match procedure

Posted: Thu Mar 29, 2018 9:01 pm
by blast
You don't need the --enable-shared option as that's the default. Also, TimeLimit is an included plugin, so you don't need to pass that one to --enable-custom-plugins. You only pass extra plugins to --enable-custom-plugins. The bundled ones are always built.