[XASECO2] 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

LilyFlow
pedestrian
pedestrian
Posts: 11
Joined: 03 Mar 2014 15:30
Owned TM-games: TMS, TMV

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by LilyFlow » 05 Mar 2014 13:07

Hello

I put my head all night and this morning all over again .

Here is what I did :
I change the <storing_path> putting online :

Code: Select all

<storing_path>C:\Serveur_TrackMania2\Xaseco\config.xml</ storing_path>
(on my local PC).

I have not changed anything here:

Code: Select all

<server_neighbor>
<path>PATH_TO_SERVERINFO_FROM_NEIGHBOR</ path>
<enable>true</enable>
<force_spectator>false</force_spectator>
</server_neighbor>
I launched Xaseco and "config.xmlcoolcircuitxrm_serverinfo.xml" file was created in the "C:\Serveur_TrackMania2\XAseco\" folder.

I transfered the "config.xmlcoolcircuitxrm_serverinfo.xml" file on an FTP server: "ftp://florentprieur@ftpperso.free.fr/co ... erinfo.xml" ( using FileZilla ) .

I changed :

Code: Select all

<server_neighbor>
<path>PATH_TO_SERVERINFO_FROM_NEIGHBOR</ path>
<enable>true</enable>
<force_spectator>false</force_spectator>
</server_neighbor>
in

Code: Select all

<server_neighbor>
<path>ftp://florentprieur@ftpperso.free.fr/config.xmlcoolcircuitxrm_serverinfo.xml</path>
<enable>true</enable>
<force_spectator>false</force_spectator>
</server_neighbor>
( I doubt it normally takes the FTP link to the other server but I think for tested , it should work ) .

I restated Xaseco and I do not have error but I have nothing that appears on the screen.

Here is my complete code "server_neighborhood.xml" file :

Code: Select all

<? xml version = "1.0" encoding = "utf -8" ? >
<server_neighborhood>
< - THIS IS THE CONFIG FILE FOR THE TM2 -PORT ONLY - >

<! -
Refresh the Panel every [INT] seconds .
recommendation:
5-10 sec . low we visited servers ( cpu intensive , lag in game)
10-30 sec. on high volume servers (less cpu intensive , less lag in game)
/ / ->
<refresh_interval> 10 </ refresh_interval >

< - Set to 'true' if the widget is displayed shoulds EndRace , Otherwise set ' false' ->
<show_on_end_race> false < / show_on_end_race >

< - Widget specific - >
<widget>
<gamemode>
<script>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
</ script>

<rounds>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
</ rounds >

<time_attack>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
< / time_attack >

<team>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
</ team>

<laps>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
< / span >

<cup>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
< / cup >

<stunts>
<enabled> true < / enabled > < - Set to 'false ' to hide the Widget or ' true ' to display - >
<pos_x> -64.7 </ pos_x >
<pos_y> -14 </ pos_y >
</ stunts >
</ gamemode >

<server_full_color> $ F00 </ server_full_color > <! - Must start with " $ " , eg "$ FFF" ->
$ <server_normal_color> FFF </ server_normal_color > <! - Must start with " $ " , eg "$ FFF" ->

$ <header_name> EEEServer Neighborhood </ header_name > < - The name shown on top of the widget . Any Do not use special characters ! - >

<self_style> BgsPlayerCard </ self_style > < - see manialink "example" ->
<self_substyle> BgCardSystem </ self_substyle > < - see manialink "example" ->

<neighbor_style> BgsPlayerCard </ neighbor_style > < - see manialink "example" ->
<neighbor_substyle> BgCard </ neighbor_substyle > < - see manialink "example" ->

<timer_bar>
<enabled> true < / enabled >

< - Background -Color , Format : RGB - >
<background_color> CCC </ background_color >

<- Format : RGBA (A = Alphachanal , Opacity ) ->
<text_color> 000F </ text_color >
< / timer_bar >

< - Style for the Widget - >
<styles>
< - Background -Color , Format : RGBA (A = Alphachanal , Opacity ) ->
<background_color> 3342 </ background_color >

<background_style> Bgs1 < / background_style >
<background_substyle> BgEmpty < / background_substyle >

<border_style> Bgs1InRace </ border_style >
<border_substyle> BgTitleShadow </ border_substyle > <! - Only ' BgTitleGlow ', ' BgTitleShadow ', ' Shadow ', ' BgList ' or ' BgEmpty ' are Useful ) ->

<title_style> BgsPlayerCard < / title_style >
<title_substyle> BgRacePlayerName < / title_substyle >
< / style >
</ widget >


<- Colors for the Window background , Format : RGBA (A = Alphachanal , Opacity ) ->
<colors>
<server_background> 0018 </ server_background > <! - Server Overview - >
<neighbor_background> 0014 </ neighbor_background > <! - Neighbor Overview - >
</ colors>

< - To remove parts from the ServerName from this Server , Has to be a valid regex : http://www.php.net/manual/en/pcre.pattern.php ->
<remove_from_servername> < / remove_from_servername >

< - Hide a server When the last modified time is higher Then Given this second (default to 1800 second = 30 minutes) ->
<hide_server_last_modified> 1800 </ hide_server_last_modified >

< - Display max. Amount of Server in the Widget . If you -have more Server Amount Then this , the widget display all Servers
Each <refresh_interval> in rotation, set to '0 'to disabled - >
<server_display_max> 2 </ server_display_max >

< - The nicemode is an Attempt to Reduce the manialink calls, if a Specific Amount of players is on the server - >
<nicemode>
<enabled> true < / enabled > < - If you want to enable the nicemode , you need to say 'true' here! - >
<force> false < / force > < - For servers with 100 + Player as usual , you can nicemode strength by default - >

<refresh_interval> 20 </ refresh_interval > < - If the user is turned on nice Then Increase to this refresh interval - >
<limits>
<lower_limit> 24 </ lower_limit > < - If the playercount gets equal to or BELOW That limit, widgets Will revert to the default user ->
<upper_limit> 25 </ upper_limit > < - If the playercount gets equal to or ABOVE That limit, the widgets Will switch to nice way ->
< / limits >
< / nicemode >

<! -
If you wish to save the Server -Information to a remote destination was eg FTP Server
just Use the following form " ftp://username:password @ ftp.example.com / serverneighbors / "
NOTE : Make your php safe option " allow_url_fopen " is set to "on" and the path Given exist!

If you wish to save the local Server -Information , Then Make Sure That The path to the files
are read -and writeable by the user XAseco That Runs ( see "man chmod " under ONE! X / Linux) !

Some examples for <storing_path> :
- Linux (local) : <storing_path> / home / user / serverneighbors / </ storing_path >
- Windows (local) : C :/ <storing_path> Trackmania / serverneighbors / </ storing_path >
- FTP (remote ) : <storing_path> ftp://username:password @ ftp.example.com / serverneighbors / </ storing_path >
/ / ->
<storing_path> C: \ Serveur_TrackMania2 \ XAseco \ config.xml </ storing_path >

<! -
The server neighbors , max. 56 servers !
<path> = path to the " <login of dedicated server neighbor> _serverinfo.xml " including the filename , with the same terms as <storing_path> (but only for read access)

Some examples for <path> ( assuming " clanserver007 " as <login> )
- Linux (local) : <path> / home/user/serverneighbors/clanserver007_serverinfo.xml </ path>
- Windows (local) : C :/ <path> Trackmania/serverneighbors/clanserver007_serverinfo.xml </ path>
- FTP (remote ) : <path> ftp://username:password @ ftp.example.com/serverneighbors/clanserver007_serverinfo.xml </ path>
- HTTP (remote ) : <path> http://www.example.com/serverneighbors/clanserver007_serverinfo.xml </ path>
/ / ->
<server_accounts>

<server_neighbor>
<path> ftp://florentprieur @ ftpperso.free.fr / config.xmlcoolcircuitxrm_serverinfo.xml </ path>
<enable> true < / enable > < - 'true ' or ' false' ->
<force_spectator> false < / force_spectator > < - 'true ' or ' false' ->
< / server_neighbor >

<server_neighbor>
<path> PATH_TO_SERVERINFO_FROM_NEIGHBOR </ path>
<enable> true< / enable > < - 'true ' or ' false' ->
<force_spectator> false < / force_spectator > < - 'true ' or ' false' ->
< / server_neighbor >

<server_neighbor>
<path> PATH_TO_SERVERINFO_FROM_NEIGHBOR </ path>
<enable> true< / enable > < - 'true ' or ' false' ->
<force_spectator> false < / force_spectator > < - 'true ' or ' false' ->
< / server_neighbor >

<server_neighbor>
<path> PATH_TO_SERVERINFO_FROM_NEIGHBOR </ path>
<enable> true< / enable > < - 'true ' or ' false' ->
<force_spectator> false < / force_spectator > < - 'true ' or ' false' ->
< / server_neighbor >

< / server_accounts >

< - Urls for the Bar 's in the Neighborhood - Server ->
< - If you want , you can host this Bar 's at your own website, just - >
< - Copy the images from this hoster . - >
<urls>
< - This Bar -Images are licensed by undef.de under a - >
< - Creative Commons Attribution- Share Alike 3.0 Germany License. - >
<- See the Following links for details : ->
<- German : http://creativecommons.org/licenses/by-sa/3.0/de/legalcode ->
<- English : http://creativecommons.org/licenses/by-sa/3.0/legalcode ->

<bar_default> http://static.undef.name/ingame/server-neighborhood/bar_default.png < / bar_default >
<bar_blank> http://static.undef.name/ingame/server-neighborhood/bar_blank.png < / bar_blank >
</ url >

<! -
Possible values:
'false' Debug = off
'true' = Debug on
' warn ' = Only warnings on ( harmless things )
/ / ->
<debug> false < / debug >

< / server_neighborhood >
(Sorry for the extra space in the code but they went himself by copying the code in my answer.)


What should I do more or less?

Thank you for your help.

Good afternoon

Sorry for my bad english

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

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 06 Mar 2014 17:36

LilyFlow wrote: Here is what I did :
I change the <storing_path> putting online :

Code: Select all

<storing_path>C:\Serveur_TrackMania2\Xaseco\config.xml</storing_path>
(on my local PC).
You can not use a local location for storing this file, because the file are updated/replaced every <refresh_interval> sec. Your friend must have the possibilities to access this file over HTTP or FTP (read the data from your Server).

Btw.: Remove "config.xml" from <storing_path>, because it is a datafield for a "path" only.


Here is the right configuration, assuming that the "*_serverinfo.xml" files are accessible over HTTP at "ftpperso.free.fr", please remove "PASSWORD" with your FTP-Password:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<server_neighborhood>
	<storing_path>ftp://florentprieur:PASSWORD@ftpperso.free.fr/</storing_path>

	<server_accounts>
		<server_neighbor>
			<path>http://ftpperso.free.fr/cool_server_and_speed_serverinfo.xml</path>
			<enable>true</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>

		<server_neighbor>
			<path>http://ftpperso.free.fr/coolcircuitxrm_serverinfo.xml</path>
			<enable>true</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>
	</server_accounts>

</server_neighborhood>
Easy...? Please re-read the comments in the server_neighborhood.xml and you will see, that all required are written there. ;)
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

LilyFlow
pedestrian
pedestrian
Posts: 11
Joined: 03 Mar 2014 15:30
Owned TM-games: TMS, TMV

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by LilyFlow » 06 Mar 2014 18:18

Hello

I made ​​the changes.

No errors launching XAseco.

But I have nothing that appears in the game (normal or not?).

I replaced PASSWORD by my FTP password.

Everything is okay.

Thank you for your help.

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

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 06 Mar 2014 21:08

LilyFlow wrote: I made ​​the changes.
No errors launching XAseco.

But I have nothing that appears in the game (normal or not?).
If the plugin can not access the "*_serverinfo.xml" given in <server_accounts><server_neighbor><path>, then yes.

Are the "*_serverinfo.xml" files created at "ftp://ftpperso.free.fr"?
Are the "*_serverinfo.xml" files accessible over http://ftpperso.free.fr?
Does the real server-logins match in the server_neighborhood.xml at <server_accounts><server_neighbor><path>?
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

LilyFlow
pedestrian
pedestrian
Posts: 11
Joined: 03 Mar 2014 15:30
Owned TM-games: TMS, TMV

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by LilyFlow » 06 Mar 2014 21:13

To perhaps better understand what I did:
Here is a screenshoot of my FileZilla FTP:

Image

I put my "config.xml" file on my FTP and copy the line

Code: Select all

<storing_path>ftp://florentprieur:PASSWORD@ftpperso.free.fr/</storing_path>
by changing "PASSWORD" of course .

I have not changed the <server_accounts> part.

I raised Xaseco and "coolcircuitxrm_serverinfo.xml" file was created in my FTP.

So I copied the links "http://ftpperso.free.fr/cool_server_and ... erinfo.xml" (exact link is: "ftp://florentprieur@ftpperso.free.fr/co ... erinfo.xml" but i dont like you) in my "server_neighborhood.xml" file

I ended up with "server_neighborhood.xml" file:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<server_neighborhood>
	
	<refresh_interval>10</refresh_interval>

	<show_on_end_race>true</show_on_end_race>

	<widget>
		<gamemode>
			<script>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</script>

			<rounds>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</rounds>

			<time_attack>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</time_attack>

			<team>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</team>

			<laps>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</laps>

			<cup>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</cup>

			<stunts>
				<enabled>true</enabled>
				<pos_x>-64.7</pos_x>
				<pos_y>-14</pos_y>
			</stunts>
		</gamemode>

		<server_full_color>$F00</server_full_color>
		<server_normal_color>$FFF</server_normal_color>

		<header_name>$EEEServer Neighborhood</header_name>

		<self_style>BgsPlayerCard</self_style>
		<self_substyle>BgCardSystem</self_substyle>

		<neighbor_style>BgsPlayerCard</neighbor_style>
		<neighbor_substyle>BgCard</neighbor_substyle>

		<timer_bar>
			<enabled>true</enabled>

			<background_color>CCC</background_color>

			<text_color>000F</text_color>
		</timer_bar>

		<styles>

			<background_color>3342</background_color>

			<background_style>Bgs1</background_style>
			<background_substyle>BgEmpty</background_substyle>

			<border_style>Bgs1InRace</border_style>
			<border_substyle>BgTitleShadow</border_substyle>

			<title_style>BgsPlayerCard</title_style>
			<title_substyle>BgRacePlayerName</title_substyle>
		</styles>
	</widget>

	<colors>
		<server_background>0018</server_background>
		<neighbor_background>0014</neighbor_background>
	</colors>

	<remove_from_servername></remove_from_servername>

	<hide_server_last_modified>1800</hide_server_last_modified>

	<server_display_max>2</server_display_max>

	<nicemode>
		<enabled>true</enabled>
		<force>false</force>

		<refresh_interval>20</refresh_interval>
		<limits>
			<lower_limit>24</lower_limit>
			<upper_limit>25</upper_limit>
		</limits>
	</nicemode>


	
	<storing_path>ftp://florentprieur:******@ftpperso.free.fr/</storing_path>

	<server_accounts>

		<server_neighbor>
			<path>http://ftpperso.free.fr/coolcircuitxrm_serverinfo.xml</path>
			<enable>true</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>

		<server_neighbor>
			<path>PATH_TO_SERVERINFO_FROM_NEIGHBOR</path>
			<enable>true</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>

		<server_neighbor>
			<path>PATH_TO_SERVERINFO_FROM_NEIGHBOR</path>
			<enable>false</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>

		<server_neighbor>
			<path>PATH_TO_SERVERINFO_FROM_NEIGHBOR</path>
			<enable>false</enable>
			<force_spectator>false</force_spectator>
		</server_neighbor>

	</server_accounts>

	<urls>
		<bar_default>http://static.undef.name/ingame/server-neighborhood/bar_default.png</bar_default>
		<bar_blank>http://static.undef.name/ingame/server-neighborhood/bar_blank.png</bar_blank>
	</urls>

	<debug>false</debug>

</server_neighborhood>
I'm over there for several days with a friend and Verily, there must be a problem not happen.

I thought I would at least have something on the screen but unfortunately I have nothing.



EDIT :
undef.de wrote:Are the "*_serverinfo.xml" files created at "ftp://ftpperso.free.fr"?
YES
undef.de wrote:Are the "*_serverinfo.xml" files accessible over http://ftpperso.free.fr?
YES whit my identifiant et mot de passe
undef.de wrote:Does the real server-logins match in the server_neighborhood.xml at <server_accounts><server_neighbor><path>?
sorry but I'm not sure I understand the question

LilyFlow
pedestrian
pedestrian
Posts: 11
Joined: 03 Mar 2014 15:30
Owned TM-games: TMS, TMV

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by LilyFlow » 06 Mar 2014 21:22

There is my "coolcircuitxrm_serverinfo.xml" file:

Code: Select all

<server_neighborhood>
<server>
<last_modified>1394140740</last_modified>
<login>coolcircuitxrm</login>
<name>
$i$o$CFFCO$6FFOL $39Fand s$6FFpe$CFFed $F00First Level
</name>
<zone>Europe|France|Midi-Pyrénées|Tarn-et-Garonne</zone>
<private>false</private>
<game>MP</game>
<gamemode>2</gamemode>
<title>TMStadium</title>
<players>
<current>1</current>
<maximum>50</maximum>
</players>
<spectators>
<current>0</current>
<maximum>50</maximum>
</spectators>
<ladder>
<minimum>0</minimum>
<maximum>60</maximum>
</ladder>
</server>
<current>
<map>
<name>D-90-17</name>
<author>zerooooooo</author>
<environment>Stadium</environment>
<mood>Day</mood>
<authortime>0:50.550</authortime>
<goldtime>0:54.000</goldtime>
<silvertime>1:01.000</silvertime>
<bronzetime>1:16.000</bronzetime>
<mxurl/>
</map>
<players>
<player>
<nickname>
$i$n$o『$F00χ$CCCƦ$F00ϻ$FFF』$F00レǏ$C00レЧ$900Ғレ$600〄Щ $063
</nickname>
<login>lilyflow</login>
<nation>FRA</nation>
<ladder>6797</ladder>
<spectator>False</spectator>
</player>
</players>
</current>
</server_neighborhood>

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

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 06 Mar 2014 21:57

We better should talk at PM instead in this thread... i start writing one...
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: 1309
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO2] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 21 Jul 2016 16:10

Just wanna say: There is an update out there... see the related Site at my Lab.
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

Post Reply