[XASECO] Plugin: Server Neighborhood 1.4.8 (UPDATE)

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

User avatar
mixnetwork
sunday driver
sunday driver
Posts: 74
Joined: 02 Dec 2008 13:17
Owned TM-games: Trackmania United
Manialink(s): spacezone
Location: Berlin
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by mixnetwork » 06 May 2010 13:48

hmmmmm


Hi ..

I installed this plugin on al my servers (10)

The switch works fine on al of them.

Just 1 prob I have, to switch to a specific server.

From all other servers , if i want to join this server EG:space_6 Xaseco crashes.
I can join all other servers over the Switch except this one??
Server is running, players are on it and he shows the information in the widget of this server. As soon as i klick on it Xaseco crasches, but only to this server to all the others servers he joines as he should do.

Any idea?
Live is for livin'
Image
The Spacezone fun clan

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by w1lla » 06 May 2010 13:49

post a log file with

Code: Select all

[code]
[/code] so we can see where it crashes on...

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
mixnetwork
sunday driver
sunday driver
Posts: 74
Joined: 02 Dec 2008 13:17
Owned TM-games: Trackmania United
Manialink(s): spacezone
Location: Berlin
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by mixnetwork » 06 May 2010 14:20

Well nothing to see in the logfile.

I made everything new and now it works... thx
Live is for livin'
Image
The Spacezone fun clan

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by Knutselmaaster » 06 May 2010 21:06

Still works like a charm!
:thumbsup:

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by Milenco » 07 May 2010 01:46

Milenco wrote:[..]
Just one thing I noticed: When pressing F7, I occasionally have the Fufi-widget disappear and the Serverlist stay. So when pressing F7 again, it's the other way around: Serverlist disappears, Fufi widgets comes back.

Not sure what is causing this and it isn't really bothering me, but just wanted to let you know.
To reproduce this: Join server, press F7 (for everything to be hidden), skip to next map (or just wait I guess). Next map the ServerNeighborhood widget has re-appeared.
Image

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by scg-flighthigh » 07 May 2010 06:11

Oh yes Milenco i test it again and can confirmed this. After Mapchange the Witget is back. Looks like a little buck

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3 (UPDATE)

Post by undef.de » 07 May 2010 17:09

scg-flighthigh wrote:Oh yes Milenco i test it again and can confirmed this. After Mapchange the Witget is back. Looks like a little buck
Fixed in 1.3.1.

Btw. Screenshots updated...
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Milenco » 07 May 2010 17:12

Thanks! :)
Image

Paris69
speedy pilot
speedy pilot
Posts: 381
Joined: 05 Apr 2006 20:50

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Paris69 » 07 May 2010 18:27

:thumbsup:
so, going to test it this weekend...

/edit: plus one very little hint ;) : what about website php script, who uses the generated xml files for server status display? its not a to long step now, or? :)

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Knutselmaaster » 07 May 2010 18:39

Just one thing i haven't found another solution for than "hacking" the plugin itself:
I put our teamtag in the name of the widget, and it has utf8 signs that don't work in xml setting files.
This is not plugin related, i know, but does anyone has a prettier solution for this?
Like is there a way resembling html (&amp) or something?
I find this problem often in plugins with xml setting files.

ontopic;
I'm going to update this weekend and post my findings here.

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by undef.de » 07 May 2010 19:44

Paris69 wrote: /edit: plus one very little hint ;) : what about website php script, who uses the generated xml files for server status display? its not a to long step now, or? :)
Milenco is working on such thing.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by undef.de » 07 May 2010 19:52

Knutselmaaster wrote: I put our teamtag in the name of the widget, and it has utf8 signs that don't work in xml setting files.
This is not plugin related, i know, but does anyone has a prettier solution for this?
Like is there a way resembling html (&amp) or something?
I find this problem often in plugins with xml setting files.
Did you use an editor that supports UTF-8 (without BOM-Header)? We have also such signs in servername and have no problems viewing this (example: ぎνѕя and ツ).
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Milenco » 07 May 2010 20:30

Knutselmaaster wrote:Just one thing i haven't found another solution for than "hacking" the plugin itself:
I put our teamtag in the name of the widget, and it has utf8 signs that don't work in xml setting files.
This is not plugin related, i know, but does anyone has a prettier solution for this?
Like is there a way resembling html (&amp) or something?
I find this problem often in plugins with xml setting files.

ontopic;
I'm going to update this weekend and post my findings here.
The names are written to the xml file using PHP's utf8_encode() function. To use these xml files on other purposes than XAseco, just utf8_decode() first before using them. :)

undef.de wrote:
Paris69 wrote: /edit: plus one very little hint ;) : what about website php script, who uses the generated xml files for server status display? its not a to long step now, or? :)
Milenco is working on such thing.
Jup, haven't found the time yet but it's still on my to-do list. :)
Image

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Knutselmaaster » 07 May 2010 21:52

errr i think i didn't achieve to make myself clear, sorry...
ingame in the servernames it works ok.

I'll try again:
In the serverneighborhood.xml i put my teamtag:

Code: Select all

<header_name>$i$666int $f90$iя'$ffe$iServers</header_name>	<!-- The name shown on top of the widget. Don't use any special characters! -->
And then the я becomes a ?

So i have changed the manialink in the plugin around line 365:

Code: Select all

				if (strtoupper($sn_config['WIDGET'][0]['ICON_POSITION'][0]) == 'LEFT') {
					$xml .= '<quad sizen="2.5 2.5" posn="0.6 -0.15 2" style="Icons128x128_1" substyle="Browse"/>';
					$xml .= '<label textsize="1" sizen="10.2 0" posn="3.2 -0.5 2" text="' . $sn_config['WIDGET'][0]['HEADER_NAME'][0] . '"/>';
				}
				else {
					$xml .= '<quad sizen="2.5 2.5" posn="12 -0.15 2" style="Icons128x128_1" substyle="Browse"/>';
					$xml .= '<label textsize="1" sizen="10.2 0" posn="1.4 -0.5 2" text="' . $sn_config['WIDGET'][0]['HEADER_NAME'][0] . '"/>';
				}
into:

Code: Select all

				if (strtoupper($sn_config['WIDGET'][0]['ICON_POSITION'][0]) == 'LEFT') {
					$xml .= '<quad sizen="2.5 2.5" posn="0.6 0.25 2" style="Icons128x128_1" substyle="ServersAll"/>';
					$xml .= '<label textsize="1" sizen="10.2 0" posn="3.2 -0.1 2" text="$i$666int $f90$iя\'$ffe$iServers"/>';
				}
				else {
					$xml .= '<quad sizen="2.5 2.5" posn="12 0.25 2" style="Icons128x128_1" substyle="ServersAll"/>';
					$xml .= '<label textsize="1" sizen="10.2 0" posn="1.4 -0.1 2" text="$i$666int $f90$iя\'$ffe$iServers"/>';
				}

User avatar
Milenco
happy cruiser
happy cruiser
Posts: 150
Joined: 07 Oct 2008 09:38
Owned TM-games: TMN, TMNF
Location: Enschede, Netherlands
Contact:

Re: [XASECO] ServerNeighborhood Plugin 1.3.1 (UPDATE)

Post by Milenco » 07 May 2010 22:24

Forgot to include a encode there. :)

Instead, replace it with this:

Code: Select all

				if (strtoupper($sn_config['WIDGET'][0]['ICON_POSITION'][0]) == 'LEFT') {
					$xml .= '<quad sizen="2.5 2.5" posn="0.6 -0.15 2" style="Icons128x128_1" substyle="Browse"/>';
					
					$xml .= '<label textsize="1" sizen="10.2 0" posn="3.2 -0.5 2" text="' . utf8_encode($sn_config['WIDGET'][0]['HEADER_NAME'][0]) . '"/>';
				}
				else {
					$xml .= '<quad sizen="2.5 2.5" posn="12 -0.15 2" style="Icons128x128_1" substyle="Browse"/>';
					$xml .= '<label textsize="1" sizen="10.2 0" posn="1.4 -0.5 2" text="' . utf8_encode($sn_config['WIDGET'][0]['HEADER_NAME'][0]) . '"/>';
				}
This way, you can keep your server specific settings stored in the .xml file :)
Image

Post Reply