Page 1 of 1
Expansion & Round points
Posted: 28 Jan 2015, 21:47
by Coshank90
Hi,
I just tried out Expansion for my cup server and it works really great! Nice work..
The only problem I have is that the round points stay if I restart/skip a track. Lets say I have 50 points and decide to skip the current track, then I'll have 50 points on the next track too, I want it to reset to 0 points.
Basically its this problem:
http://www.tm-forum.com/viewtopic.php?f=28&t=25599
How do i fix this in Expansion?
Br
Coshank
Re: Expansion & Round points
Posted: 28 Jan 2015, 21:53
by w1lla
In Chat_Admin lines: 1606 replace the following code:
Code: Select all
$this->connection->nextMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
with this:
Code: Select all
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP){
$this->connection->nextMap(true);
}
Line 1625:
Code: Select all
$this->connection->restartMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
with this:
Code: Select all
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP){
$this->connection->restartMap(true);
}
Re: Expansion & Round points
Posted: 28 Jan 2015, 22:31
by oliverde8
this is wrong. W1lla if you switch from cup back to TA it won't work and basically your code is the same just longer.
Code: Select all
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP){
then
Code: Select all
$this->connection->nextMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
is equivalant to
@Coshank90
Are you using legacy or script mode?
Re: Expansion & Round points
Posted: 29 Jan 2015, 08:31
by Coshank90
Legacy

.
Re: Expansion & Round points
Posted: 29 Jan 2015, 15:38
by reaby
So, I added some new admin commands...
* /adm rskip
* /adm rres
and
* /cup res
* /cup skip
This will call dedicated methods RestartMap(false) and SkipMap(false);
so the cup scores will be cleared upon next map or restart.
I also added possibility to do the same graphically.
The buttons for skip and restart can be found at force scores window.
There is also a button to reset scores without restart or skip.
Re: Expansion & Round points
Posted: 29 Jan 2015, 17:06
by Coshank90
Ok thanks!
I'll contact my host and see if they can update.
Also, will this work if the players vote/pay to restart/skip or only when I do it? Cause I need it to work if they pay/vote for it too.
Br
Coshank