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
Expansion & Round points
Moderators: oliverde8, reaby, NADEO
- w1lla
- Posts: 2287
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: Expansion & Round points
In Chat_Admin lines: 1606 replace the following code:
with this:
Line 1625:
with this:
Code: Select all
$this->connection->nextMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
Code: Select all
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP){
$this->connection->nextMap(true);
}
Code: Select all
$this->connection->restartMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
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
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
Re: Expansion & Round points
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.
then
is equivalant to
@Coshank90
Are you using legacy or script mode?
Code: Select all
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP){
Code: Select all
$this->connection->nextMap($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_CUP);
Code: Select all
$this->connection->nextMap(true);
Are you using legacy or script mode?

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...
Re: Expansion & Round points
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.
* /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
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
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
Who is online
Users browsing this forum: No registered users and 2 guests