FeedBack & Bugs | Your ideas are important

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

Moderators: oliverde8, reaby, NADEO

samp
Posts: 76
Joined: 03 Mar 2013, 20:29

Re: FeedBack & Bugs | Your ideas are important

Post by samp »

oliverde8 wrote:Why is it such a bad bug?
Well, if records order is wrong, I think it's a bad bug.

I drove an equal time as the 1., at the same session it shows me 2. as it should be.
We play the map again and this bug happens -> I'm 1. and the record holder.

Edit. Okay, investigated the issue a bit more.
It was an old track and the record_date was 0. That's why the sorting failed.

Updating records should update the record_date also.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by w1lla »

Code: Select all

while ($data = $dbData->fetchStdObject()) {

            $record = new Record();
            // $this->currentChallengePlayerRecords[$data->record_playerlogin] = $record;

            $record->place            = $i;
            $record->login            = $data->record_playerlogin;
            $record->nickName         = $data->player_nickname;
            $record->time             = $data->record_score;
            $record->nbFinish         = $data->record_nbFinish;
            $record->avgScore         = $data->record_avgScore;
            $record->nation           = $data->player_nation;
            $record->ScoreCheckpoints = explode(",", $data->record_checkpoints);
            $record->uId              = $this->storage->currentMap->uId;

            $records[$i - 1] = $record;
            $i++;
        }
It seems record date is never added so it will show the latest Ascending record first.
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: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

w1lla thanks that can cause issue ^^ I will fix that but it shoulnd't create a problem in the database but I just found a few records that has date missing in them so I need to investigate the cause of that.

For the widgets having correct info it is harder I will try and think of a solution that won't slow down everything :oops:
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...
samp
Posts: 76
Joined: 03 Mar 2013, 20:29

Re: FeedBack & Bugs | Your ideas are important

Post by samp »

I can confirm that the new records, improved rank and secured time all update the record_date correctly.
So it was just some weird thing with old map that had 0 in record_date. :D
(Fixed it manually in db)
samp
Posts: 76
Joined: 03 Mar 2013, 20:29

Re: FeedBack & Bugs | Your ideas are important

Post by samp »

w1lla wrote:

Code: Select all

while ($data = $dbData->fetchStdObject()) {

            $record = new Record();
            // $this->currentChallengePlayerRecords[$data->record_playerlogin] = $record;

            $record->place            = $i;
            $record->login            = $data->record_playerlogin;
            $record->nickName         = $data->player_nickname;
            $record->time             = $data->record_score;
            $record->nbFinish         = $data->record_nbFinish;
            $record->avgScore         = $data->record_avgScore;
            $record->nation           = $data->player_nation;
            $record->ScoreCheckpoints = explode(",", $data->record_checkpoints);
            $record->uId              = $this->storage->currentMap->uId;

            $records[$i - 1] = $record;
            $i++;
        }
It seems record date is never added so it will show the latest Ascending record first.
Yes, this causes the bug.

Code: Select all

$record->date = $data->record_date;
should be set when fetching the records in buildCurrentChallangeRecords and getRecordsForMap. Otherwise the existing record will get 0 date if the player just finishes the map but does not improve time.
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

yes I fixed it in yesterdays commit : https://github.com/eXpansionPluginPack/ ... e64e159aeb

it is in dev and will move it's way to the master :)
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...
bass
Posts: 85
Joined: 21 Sep 2011, 23:36

Re: FeedBack & Bugs | Your ideas are important

Post by bass »

In regards to the musicbox plugin. In rounds mode with a warm up, after the warm up, the music box announces next song and again announces next song at the conclusion of the match/map which completely skips the song announced after the warm up. This also can and does occasionally allow a song to be randomly selected twice in a row. Is there a way to configure musicbox to ignore a warm up period? Prob not eh? Thought I'd try anyway :)

Thanks
bass
Posts: 85
Joined: 21 Sep 2011, 23:36

Re: FeedBack & Bugs | Your ideas are important

Post by bass »

Think I answered my question... seems to work fine in script mode.. ill use that :)
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by reaby »

so musicbox in legacy modes has this unwanted behaviour, but for scripted modes it works ok ?
bass
Posts: 85
Joined: 21 Sep 2011, 23:36

Re: FeedBack & Bugs | Your ideas are important

Post by bass »

Yes it seems.. but now trying to run rounds.script I cannot get my server to run rank ladder 90k :roflol:
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 1 guest