1

Topic: Increase the maximum of votes ?

Hi,

I have launched a server and added a lot (and I mean a lot) of votes for the players to be able to tune the server how they like. For exemple, there is a vote Gravity of the teeworld : Default/4 that calls the `tune` command and change the gravity at four times smaller than the default value. I did that for almost every tuning possible (according to the doc) with different factors, except for the really technical ones that I don't think are necessary. I know it's a ton, but I like the fact that the players can change the physics of the game with a great number of possibilities.
(And they do. When I connect to my server after a time, the tunings are almost never the same. It's really great)

But here's the thing : I hit the maximum number of votes. It really makes me sad that I cannot add others, because I didn't get to add tunings like the number of bouncing of the laser (I had to choose :-/ ), for exemple.

So, is there a way to increase the maximum votes possible ? The documentation doesn't say anything about it, and it seems like nobody asked that question in the forum. For information, yes, it's a DM vanilla server and I use the official launcher. I just launch the game as a 'mod' type, because if I type "dm" it will note take any tuning (and I think it would make my server against the rules).

I don't really want to go change the code and re-compile it, because I seriously lack of experience on that subject and I don't want to risk making the server unstable.

But if it's not possible to do that, is there a way to call a command that doesn't use a fixed number ? Like `tune gravity (variable)*2`. It would be a really great way to make the list smaller while increasing the possibilities. But again, the doc doesn't say anything about that. sad

Or is there even a third option that you could reccomend ? big_smile

Thank you if you take the time to respond ! smile

I've always hated members without signatures.

2

Re: Increase the maximum of votes ?

Use the exec test.cfg command to add more votes, see inspire ddrace

For example
Add_vote "votes on gravity"  exec grav.cfg

3 (edited by Tangeek 2014-01-13 18:51:37)

Re: Increase the maximum of votes ?

Sorry, but what grav.cfg should be like ?

The maximum votes is not per file, but per server. So either way, I reach the limit. When the vote of exec is passed, it tries to add the votes it contains, but fail, since the maxium is reached.

EDIT : Oh, yeah, I see the point now. Like a sub-menu that opens when the guy votes for it. It's nice, but then the votes are added, and it needs to be removed with anoter vote and the `remove_vote` command. The players probably won't do it, and they'll reach the maximum again...
But it's worth doing, though. At least the server will be able to start with the possibility of all the votes.

EDIT 2 : I'm sooooo stupid !! All I have to do is always close the other menus when opening one. And doing large categories to make things easier... Thanks a lot, it works wonderful !

I've always hated members without signatures.

4

Re: Increase the maximum of votes ?

Could you paste your serverconfig here ? I believe changing the max amount of votes is just editing one number in source but im too lazy to create a huge config for testing.

Luck is allowed

5 (edited by Tangeek 2014-01-13 19:27:35)

Re: Increase the maximum of votes ?

Of course. Here. It's the old configuration file that has all the votes in one place (aka : the one I used while posting this thread). It has just the right amount of votes allowed. Just add one to test the limit.

But I use Broken's method now. I created subcategories in different files and use the `exec` command to open/close them. It works great. I don't need to increase the maximum, now. So if you want to test for you or the people who may red this, go ahead, but note that I personnally don't need it anymore. Thanks anyway ! smile

I've always hated members without signatures.