Expansion & Round points

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

Post Reply
Coshank90
Posts: 65
Joined: 10 Sep 2013, 15:03

Expansion & Round points

Post 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
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Expansion & Round points

Post 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);
}
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Expansion & Round points

Post 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

Code: Select all

$this->connection->nextMap(true);
@Coshank90
Are you using legacy or script mode?
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Coshank90
Posts: 65
Joined: 10 Sep 2013, 15:03

Re: Expansion & Round points

Post by Coshank90 »

Legacy :).
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Expansion & Round points

Post 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.
Coshank90
Posts: 65
Joined: 10 Sep 2013, 15:03

Re: Expansion & Round points

Post 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
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 2 guests