FeedBack & Bugs | Your ideas are important

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

Moderators: oliverde8, reaby, NADEO

User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by w1lla »

MapRatings.php:

Code: Select all

function sendRatingMsg($login, $playerRating)
	{
		if ($login != null) {
			if ($this->ratingTotal == 0) {
				$this->exp_chatSendServerMessage($this->msg_noRating, $login, array(\ManiaLib\Utils\Formatting::stripCodes($this->storage->currentMap->name, 'wosnm')));
				return;
			}
			if ($playerRating === null) {
				$query = $this->db->execute("SELECT rating AS playerRating FROM exp_ratings WHERE `uid`=" . $this->db->quote($this->storage->currentMap->uId) . " AND `login`=" . $this->db->quote($login) . ";")->fetchObject();
				if ($query !== null) {
					$playerRating = $query->playerRating;
				}
				else {
				$playerRating = '-';
				}
			}

			// $rating = (($this->rating - 1) / 4) * 100;
			$rating = ($this->rating / 5) * 100;
			$rating = round($rating) . "%";
			$this->exp_chatSendServerMessage($this->msg_rating, $login, array(\ManiaLib\Utils\Formatting::stripCodes($this->storage->currentMap->name, 'wosnm'), $rating, $this->ratingTotal, $playerRating));
		}
	}
This code will work as

Code: Select all

! == false
will not return the proper value as

Code: Select all

$query
gave

Code: Select all

null
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 »

just wondering why never seen the error before. and just realized the triple = . Will just change it to if(!$query) and we should be all good.
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...
jaga01
Posts: 47
Joined: 06 Jan 2015, 14:31
Location: Romania

Re: FeedBack & Bugs | Your ideas are important

Post by jaga01 »

oliverde8 wrote:what do you mean not working at all? eXpansion doesen't start or no widgets are shown?
Is just like the same, widgets still disappear..
If you could give me a entire .zip file with latest update on nighty will be great and now i mean about all files in manialive maybe this have a better effect.
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

HI, Before the fix multiple widgets so affected if only the local records widgets dissappear it means that the fix works but the widget is still to big. I will try compress a bit the mania script to see. I had test it with 1000 records but I suppose my logins & nicknames were shorter. I suppose 1000 records is at the limit of what the widget can support.
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...
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

jaga01 wrote:
oliverde8 wrote:what do you mean not working at all? eXpansion doesen't start or no widgets are shown?
Is just like the same, widgets still disappear..
If you could give me a entire .zip file with latest update on nighty will be great and now i mean about all files in manialive maybe this have a better effect.
Hi agai,
I did another change it should be better now might actually even work always. Tested with 5000 records(short nicknames) and works.

You can still find the file here : https://github.com/eXpansionPluginPack/ ... andler.php
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...
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: FeedBack & Bugs | Your ideas are important

Post by endbase »

I have set my servers up for scriptmode now and I see that there is a different end score end panel.

It overlaps the voting panel from eXpansion ;)

And had to activate the autoqueue plugin other wise you would be stuck in afk :o

Greetz Base
jaga01
Posts: 47
Joined: 06 Jan 2015, 14:31
Location: Romania

Re: FeedBack & Bugs | Your ideas are important

Post by jaga01 »

oliverde8 wrote:
jaga01 wrote:
oliverde8 wrote:what do you mean not working at all? eXpansion doesen't start or no widgets are shown?
Is just like the same, widgets still disappear..
If you could give me a entire .zip file with latest update on nighty will be great and now i mean about all files in manialive maybe this have a better effect.
Hi agai,
I did another change it should be better now might actually even work always. Tested with 5000 records(short nicknames) and works.

You can still find the file here : https://github.com/eXpansionPluginPack/ ... andler.php
Thanks alot ! it seems to work better now :)

But here is another bug on my other server:

http://www.galyonav.ro/cosmin/ScreenShot03.jpg
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

Great I will make the change available on the nighty :thumbsup:
Looks like a zndex, issue. I will visit the server to check it out.

@Endbase can you put a screen shot? Before that try reseting the hud? On Dev position changes without version change which might cause thus
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...
jaga01
Posts: 47
Joined: 06 Jan 2015, 14:31
Location: Romania

Re: FeedBack & Bugs | Your ideas are important

Post by jaga01 »

Now i get this

Code: Select all

ERROR: Reached error limit of 16. ManiaLive is shutting down
on my crowded server :(( why always errors ?
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: FeedBack & Bugs | Your ideas are important

Post by endbase »

Here you go for the screen shot

Image

Greetz base
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 1 guest