[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
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] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by w1lla » 10 Oct 2013 10:52

No issue as in the plugin says:

Code: Select all

$xaseco_min_version = '1.16';

Code: Select all

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

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: [XASECO] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 10 Oct 2013 15:15

weerwolf1 wrote:http://www.undef.name/XAseco1/Server-Ne ... hp#Changes
This release require min. XAseco/1.116!
Hehehe... fixed... thanks!
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
Groxtek. 〤
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 12 Jul 2014 20:03
Owned TM-games: TMUF, TM2C
Manialink(s): google.com/
Location: Sistiana, Italy
Contact:

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

Post by Groxtek. 〤 » 23 Aug 2014 09:40

Hi there,
I've this same (more or less) problem...
This is mine server_neighborhood.xml file.

Code: Select all

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

	<!--
	Refresh the Panel every [INT] seconds.
	Recommendation:
	5-10 sec. on low 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 should displayed on EndRace, otherwise set 'false' -->
	<show_on_end_race>false</show_on_end_race>

	<!-- Widget specific -->
	<widget>
		<gamemode>
			<rounds>
				<enabled>true</enabled> <!-- Set to 'false' to hide the Widget or 'true' to display -->
				<pos_x>-64.7</pos_x>
				<pos_y>-8.3</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>-8.3</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>-8.3</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>-8.3</pos_y>
			</laps>

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

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

		<server_full_color>$F00</server_full_color>			<!-- Must start with "$", e.g. "$FFF" -->
		<server_normal_color>$FFF</server_normal_color>			<!-- Must start with "$", e.g. "$FFF" -->

		<header_name>$EEEServer Neighborhood</header_name>		<!-- The name shown on top of the widget. Don't use any special characters! -->

		<self_style>BgsPlayerCard</self_style>				<!-- see http://fish.stabb.de/styles/ -->
		<self_substyle>BgCardSystem</self_substyle>			<!-- see http://fish.stabb.de/styles/ -->

		<neighbor_style>BgsPlayerCard</neighbor_style>			<!-- see http://fish.stabb.de/styles/ -->
		<neighbor_substyle>BgCard</neighbor_substyle>			<!-- see http://fish.stabb.de/styles/ -->
	</widget>


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


	<!-- Hide a server when the last modified time is higher then this given seconds (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 then this amount, the Widget display all Servers
	each <refresh_interval> in rotation, set to '0' to disabled -->
	<server_display_max>3</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 as usual 100+ Player, you can force nicemode by default -->

		<refresh_interval>20</refresh_interval>		<!-- If the nice mode is turned on then increase to this refresh interval -->
		<limits>
			<lower_limit>24</lower_limit>		<!-- If the playercount gets equal to or BELOW that limit, the widgets will revert to default mode -->
			<upper_limit>25</upper_limit>		<!-- If the playercount gets equal to or ABOVE that limit, the widgets will switch to nice mode -->
		</limits>
	</nicemode>

	<!--
	If you wish to save the Server-Information to a remote destination e.g. on a FTP-Server
	just use the following format "ftp://username:password@ftp.example.com/serverneighbors/"
	NOTE: Make sure your php option "allow_url_fopen" is set to "on" and the given path exist!

	If you wish to save the Server-Information local, then make sure that the path to the files
	are read- and writeable by the user that runs xaseco (see "man chmod" under UN!X/Linux)!

	Some examples for <storing_path>:
	 - Linux (local):		<storing_path>/home/user/serverneighbors/</storing_path>
	 - Windows (local):		<storing_path>C:/Trackmania/serverneighbors/</storing_path>
	 - FTP (remote):		<storing_path>ftp://username:password@ftp.example.com/serverneighbors/</storing_path>
	//-->
	<storing_path>C:\Users\Andrea\Desktop\rnlservers\TMF\control\xaseco_1\serverneighbors\</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 conditions 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):		<path>C:/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></path>
			<enable>false</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>C:\Users\Andrea\Desktop\rnlservers\TMF\control\xaseco_1\serverneighbors\antarwu_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>C:\Users\Andrea\Desktop\rnlservers\TMF\control\xaseco_1\serverneighbors\rnlserverprivate_serverinfo.xml</path>
			<enable>false</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>C:\Users\Andrea\Desktop\rnlservers\TMF\control\xaseco_1\serverneighbors\antarwunited_serverinfo.xml</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 Server-Neighborhood				-->
	<!--	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://labs.undef.de/.images/ingame/server-neighborhood/bar_default.png</bar_default>
		<bar_blank>http://labs.undef.de/.images/ingame/server-neighborhood/bar_blank.png</bar_blank>
	</urls>

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

</server_neighborhood>
But, on the folder "serverneighbors/" there is nothing...
What I might do? I've sought to create the "antarwu_serverinfo.xml", the "rnlserverprivate_serverinfo.xml", and the "antarwunited_serverinfo.xml" (obviously left blank, not knowing what to write in) but when I go to the server, I dont seeing the server neighborhood...
Yop! I'm Hex!T_

My servers:
Join here <!-- FreeZone яπг»ƒยll~¢υקै. 〤 -->
Join here <!-- FreeZone яπг»しоै๒ ѕєяvзяृ. 〤 -->

PS: Im not a pro to making plugins... :/

Image

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: [XASECO] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 23 Aug 2014 19:09

Did you have installed this Plugin at all the neighbor servers (antarwu, rnlserverprivate and antarwunited) too?
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
Groxtek. 〤
wheelbarrow operator
wheelbarrow operator
Posts: 24
Joined: 12 Jul 2014 20:03
Owned TM-games: TMUF, TM2C
Manialink(s): google.com/
Location: Sistiana, Italy
Contact:

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

Post by Groxtek. 〤 » 23 Aug 2014 19:52

Uhm no.
Yop! I'm Hex!T_

My servers:
Join here <!-- FreeZone яπг»ƒยll~¢υקै. 〤 -->
Join here <!-- FreeZone яπг»しоै๒ ѕєяvзяृ. 〤 -->

PS: Im not a pro to making plugins... :/

Image

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: [XASECO] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 24 Aug 2014 08:44

Then do it. The Plugin (at all servers) creates the SERVER_LOGIN_serverinfo.xml file, which then can be read from the other servers.
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

Fred
pedestrian
pedestrian
Posts: 14
Joined: 02 May 2013 20:45
Owned TM-games: TMNF

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

Post by Fred » 03 Jan 2015 13:54

hi all, and good year

i have a problem

i want link 3 servers ( 2 on same machine , and 1 on other machine ) ( all 3 servers are on nc1.eu )

here my configs

Code: Select all

	<storing_path>/home/tmserver/users/nXXXXX/http/neighborhood/</storing_path>

		<server_neighbor>
			<path>/home/tmserver/users/nXXXXX/http/neighborhood/nttserv_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>ftp://nZZZZZ:000000@ftp.tm20.nc1.eu/serverneighbors/Rft_Fun_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>ftp://nZZZZZ:00000000@ftp.tm20.nc1.eu/serverneighbors/nRFTTRAIN_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>
i tried too :

Code: Select all

	<storing_path>/home/tmserver/users/nXXXXX/http/neighborhood/</storing_path>

		<server_neighbor>
			<path>/home/tmserver/users/nXXXXX/http/neighborhood/nttserv_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>/home/tmserver/users/nZZZZZ/http/neighborhood/RFTTRAIN_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>/home/tmserver/users/nZZZZZ/http/neighborhood/RFft_Fun_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>
with these configs, on my server, i see only my server but not others, and on others servers i don't see my server, but i see others.

can you help me please.
Last edited by Xymph on 03 Jan 2015 21:49, edited 1 time in total.
Reason: Use code tags for code/configs/logs...

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: [XASECO] Plugin: Server Neighborhood 1.4.7 (UPDATE)

Post by undef.de » 03 Jan 2015 21:36

If you setup all <server_neighbor> to FTP, then it should work.
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

Fred
pedestrian
pedestrian
Posts: 14
Joined: 02 May 2013 20:45
Owned TM-games: TMNF

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

Post by Fred » 03 Jan 2015 22:52

thx for your answer, i will try and and i will say if it's working or not

thx

Fred
pedestrian
pedestrian
Posts: 14
Joined: 02 May 2013 20:45
Owned TM-games: TMNF

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

Post by Fred » 04 Jan 2015 08:49

So, i' tried other thing, a player who use neighborhood, expalin me.

in my neighborhood.xml i put that :

Code: Select all

<storing_path>/home/tmserver/users/nXXXXX/http/neighborhood/</storing_path>

		<server_neighbor>
			<path>/home/tmserver/users/nXXXXX/http/neighborhood/nttserv_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>http://tm20.nc1.eu/nZZZZZ/neighborhood/Rft_Fun_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>http://tm20.nc1.eu/nZZZZZ/neighborhood/RFTTRAIN_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>
in neighborhood(s).xml of others servers i put that :

Code: Select all

<storing_path>/home/tmserver/users/nZZZZZ/http/neighborhood/</storing_path>

		<server_neighbor>
			<path>/home/tmserver/users/nZZZZZ/http/neighborhood/RFTTRAIN_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>/home/tmserver/users/nZZZZZ/http/neighborhood/Rft_Fun_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>

		<server_neighbor>
			<path>http://tm10.nc1.eu/nXXXXX/neighborhood/nttserv_serverinfo.xml</path>
			<enable>true</enable>								<!-- 'true' or 'false' -->
			<force_spectator>false</force_spectator>					<!-- 'true' or 'false' -->
		</server_neighbor>
and it's working now

( sry for my english... i'm french )

;)
Last edited by Xymph on 04 Jan 2015 09:33, edited 1 time in total.
Reason: Use code tags for code/configs/logs...

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: [XASECO] 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

User avatar
L3cKy
happy cruiser
happy cruiser
Posts: 138
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Manialink(s): woa
Location: Sweden
Contact:

Re: [XASECO] Plugin: Server Neighborhood 1.4.8 (UPDATE)

Post by L3cKy » 22 Mar 2017 23:45

With this version it shows at the end of an rotation a non existing server. (as you can see on the picture)

Image

I think the problem is at line:722 because when i change following code ->

Code: Select all

if (( isset($sn_servers[$i]) ) && ($sn_servers[$i]['STATUS'] == false) ) {
into this ->

Code: Select all

if ($sn_servers[$i]['STATUS'] == false) {
The issue is gone.

Post Reply