Page 1 of 2

In trouble with UASECO.xml [solved]

Posted: 31 May 2016, 20:27
by Hexagon
Hey there, I'm trying to update my server from XA2 to UA, but I'm in trouble with UASECO.xml file.
Nowhere it is write how to complete it. :roflol:
I DELETED THE PART ARE (probably) USELESS, JUST TO HAVE A SHORT VERSION TO MAKE SEE IT TO YOU. :!:
By the way, that's my UASECO.xml file;

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<settings>
	<!--
	Setup for connection to the dedicated server, make sure this is
	the same as you have set in "UserData/Config/dedicated_cfg.txt"
	//-->
	<dedicated_server>
	</dedicated_server>

	<masteradmins>
		<!-- /ip:port in tmlogin only useful when joining server over LAN -->
		<!-- ipaddress can be specified to guard each login against       -->
		<!-- unauthorized use of admin commands from other IP addresses   -->
		<tmlogin>andreaseppi_virgilio.it2</tmlogin> <ipaddress></ipaddress>
	</masteradmins>

	<!--
	MySQL Server Settings for mysqli connection
	//-->
	<mysql>
		<!-- The ServerLogin is a good prefix to identify, but you should write it lower case and remove all underscore (max. 64 chars, incl. the default names like "maphistory") -->
		<table_prefix>lucariopriv</table_prefix>
	</mysql>

	<!--
	Set to contact (email, ICQ, etc) to show in /server command, leave empty to skip entry
	//-->
	<admin_contact>andreaseppi@outlook.it</admin_contact>

	<!--
	To protect all "/admin" commands you should setup a unlock password
	//-->
	<lock_password>agoodpassword</lock_password>

	<!--
	Set to 'false' to log passwords in the logfile
	//-->
	<mask_password>true</mask_password>

	<!--
	We supports the "stripling" script for controlling the dedicated Server and UASECO,
	here you can setup the path where the XML-File will be stored.
	//-->
	<stripling_path>cache\stripling.xml</stripling_path>

	<!--
	Full path in where the "ManiaPlanetServer" or "ManiaPlanetServer.exe" is located,
	required for the checking routine of the dedicated server scripts.
	E.g.: /home/user/bin/GameServer/
	//-->
	<dedicated_installation>C:\Users\AndreaPhoenixx\Desktop\eXpire\ManiaPlanet_Server\ManiaPlanetServer.exe</dedicated_installation>

	<!--
	Maplist used by the dedicated server, typical located in
	"UserData/Maps/MatchSettings/"
	//-->
	<default_maplist>tm2_autosave1.txt</default_maplist>
	<writemaplist_random>true</writemaplist_random>

	<!--
	Specifies how large the Map(List) history buffer is.
	//-->
	<max_history_entries>30</max_history_entries>

	<!--
	Setup a path into the image from each Map will be stored.
	//-->
	<mapimages_path>Cache\Mapimages</mapimages_path>

	<auto_admin_addip>true</auto_admin_addip>
	<adminops_file>config\adminops.xml</adminops_file>
	<bannedips_file>config\bannedips.xml</bannedips_file>

	<!--
	Will be stored into "UserData/Config/" folder of the dedicated server.
	-->
	<blacklist_file>tm2_blacklist1.txt</blacklist_file>
	<guestlist_file>tm2_guestlist1.txt</guestlist_file>

	<log_all_chat>true</log_all_chat>
	<chatpmlog_times>true</chatpmlog_times>

	<!--
	2 = in message window, 1 = in chat, 0 = none
	//-->
	<show_playtime>1</show_playtime>

	<!--
	2 = in message window, 1 = in chat, 0 = none
	//-->
	<show_curmap>0</show_curmap>

	<lists_colornicks>true</lists_colornicks>
	<lists_colormaps>true</lists_colormaps>
	<global_win_multiple>50</global_win_multiple>

	<admin_client_version></admin_client_version>
	<player_client_version></player_client_version>

	<afk_force_spec>true</afk_force_spec>
	<clickable_lists>true</clickable_lists>
	<show_rec_logins>true</show_rec_logins>

	<!--
	True = in message window, False = in chat
	//-->
	<rounds_in_window>false</rounds_in_window>

	<!--
	Timeout of the message window in seconds
	//-->
	<window_timeout>6</window_timeout>

	<!--
	Setup a timeout to make sure that UASECO or a Plugin does not hang,
	for more details see: http://www.php.net/manual/en/function.set-time-limit.php
	//-->
	<script_timeout>120</script_timeout>

	<!--
	Setup the PHP "memory_limit" for UASECO, e.g.:
		"-1"	= no limit
		"256M"	= max. 256 MB (minimum)
		"1G"	= max. 1024 MB
	If the value is "-1" in the php.ini or as exe parameter, then this setting will be ignored!

	For more details see: http://www.php.net/manual/en/ini.core.php#ini.memory-limit and
	http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
	//-->
	<memory_limit>256M</memory_limit>

</settings>
And thats what uaseco.bat says when I start it:

Code: Select all

[2016-05-31 19:23:49] ###############################################################################
[2016-05-31 19:23:49] Initializing UASECO...
[2016-05-31 19:23:49] [Config] Load settings [config/UASECO.xml]
[UASECO Fatal Error] Could not read/parse config file [config/UASECO.xml]! on line 778 in file C:\Users\AndreaPhoenixx\Desktop\eXpire\UASECO\uaseco.php
Premere un tasto per continuare . . .
Any ideas? How can I resolve it?
Thanks in advance, Lucario / Hexagon. :teub:

Re: In trouble with UASECO.xml

Posted: 31 May 2016, 21:59
by TheBigG.
you probably removed somewhere a <>/ at line 778 or entered something wrong and that is causing your problem. if you cant find it start with a clean config from scratch.

Re: In trouble with UASECO.xml

Posted: 31 May 2016, 22:16
by TMarc
778 is the line in the php, not in the XML ;)
It would be interesting to see what this is in the PHP.

The problem is... in the part you have left for us to check, there is apparently no XML error.
Does it run with that? :?

See yourself, and use a web based XML validator, e.g. http://www.w3schools.com/xml/xml_validator.asp

Re: In trouble with UASECO.xml

Posted: 31 May 2016, 22:24
by TheBigG.
oh you are right, did read to fast over it. than start the config from scratch

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 14:56
by Hexagon
TMarc wrote:778 is the line in the php, not in the XML ;)
It would be interesting to see what this is in the PHP.

The problem is... in the part you have left for us to check, there is apparently no XML error.
Does it run with that? :?

See yourself, and use a web based XML validator, e.g. http://www.w3schools.com/xml/xml_validator.asp
I checked the XML file; all correct, no errors. :shock:
That is the uaseco.php file, cant type all there, over character limits, so I uploaded it on Dropbox:
http://dl.dropbox.com/s/8olqr4mzmz3cy20/uaseco.php :teub:

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 15:00
by askuri
Yep indeed, there are no syntax errors.

Anyway, between XAseco and UASECO is a lot of change, also in the main config file. Download a fresh uaseco.xml and change it line by line. Then you will find your mistake.

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 15:10
by Hexagon
askuri wrote:Yep indeed, there are no syntax errors.

Anyway, between XAseco and UASECO is a lot of change, also in the main config file. Download a fresh uaseco.xml and change it line by line. Then you will find your mistake.
Well, I started with the uaseco.xml, I just typed the informations needed.
Hum... Let's check all things in the server. :?

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 15:22
by askuri
Maybe you saved in wrong character set. Try to save with UTF-8 without BOM.

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 16:46
by hackie
I think there is nothing wrong with Uaseco , runs fine here.

Did you copy the files into the right place ?

Re: In trouble with UASECO.xml

Posted: 01 Jun 2016, 19:17
by undef.de
If the syntax of UASECO.xml is correct, then:
  • save it without UTF8-BOM (as askuri already said)
  • check if the file really is in the config folder (as hackie already said)