Again another new server host with .ERROR: Unable to read the playlist file.

Moderator: NADEO

Post Reply
ExNought
Posts: 4
Joined: 18 Jan 2020, 17:21

Again another new server host with .ERROR: Unable to read the playlist file.

Post by ExNought » 18 Jan 2020, 17:31

I am trying for a couple hours to set up a dedicated server for me and my friends to play and I currently ramming my head againt this error.

From what I can tell my file should be correct?

Can you help me spot my error?

This is one of the logs:

Code: Select all

[2020/01/18 17:24:15] Starting ManiaPlanet date=2019-10-23_20_00 Svn=97219 GameVersion=3.3.0...
[2020/01/18 17:24:15] Configuration file : dedicated_cfg.txt
[2020/01/18 17:24:15] Loading system configuration...
[2020/01/18 17:24:15] ...system configuration loaded
[2020/01/18 17:24:15] Loading cache...
[2020/01/18 17:24:15] ...OK
[2020/01/18 17:24:15] Loading dedicated server configuration...
[2020/01/18 17:24:15] ...Dedicated server configuration loaded
[2020/01/18 17:24:15] Connecting to master server...
[2020/01/18 17:24:15] ...OK
[2020/01/18 17:24:16] Identifying on master server...
[2020/01/18 17:24:16] ...OK
[2020/01/18 17:24:17] Listening for xml-rpc commands on port 5001.
[2020/01/18 17:24:17] Match settings file : MatchSettings\maplist.txt
[2020/01/18 17:24:17] Loading match settings...
[2020/01/18 17:24:17] ...ERROR: Unable to read the playlist file.
...Could not load the match settings
[2020/01/18 17:24:17] Server not started: no Maps available. Check your matchsettings!
[2020/01/18 17:24:17] URL: maniaplanet://#join=xxx@TMStadium@nadeo
[2020/01/18 17:24:17] Server not running, exiting.
This is my maplist.txt:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> 
<playlist> 
  <gameinfos> 
    <game_mode>0</game_mode> 
    <chat_time>10000</chat_time> 
    <finishtimeout>1</finishtimeout> 
    <allwarmupduration>0</allwarmupduration> 
    <disablerespawn>0</disablerespawn> 
    <forceshowallopponents>0</forceshowallopponents> 
    <script_name>TimeAttack.Script.txt</script_name> 
  </gameinfos> 
  <filter> 
    <is_lan>1</is_lan> 
    <is_internet>1</is_internet> 
    <is_solo>0</is_solo> 
    <is_hotseat>0</is_hotseat> 
    <sort_index>1000</sort_index> 
    <random_map_order>0</random_map_order> 
  </filter>
  <script_settings> 
    <setting name="S_ChatTime" type="integer" value="10"/> 
    <setting name="S_UseClublinks" type="boolean" value="0"/> 
    <setting name="S_UseClublinksSponsors" type="boolean" value="0"/> 
    <setting name="S_NeutralEmblemUrl" type="text" value=""/> 
    <setting name="S_ScriptEnvironment" type="text" value="production"/> 
    <setting name="S_AllowRespawn" type="boolean" value="1"/> 
    <setting name="S_RespawnBehaviour" type="boolean" value="3"/> 
    <setting name="S_UseLegacyXmlRpcCallbacks" type="boolean" value="1"/> 
    <setting name="S_WarmUpNb" type="integer" value="0"/> 
    <setting name="S_WarmUpDuration" type="integer" value="30"/> 
    <setting name="S_TimeLimit" type="integer" value="600"/> 
	<setting name="S_ForceLapsNb" type="integer" value="0"/> 
  </script_settings> 
  <startindex>0</startindex> 
  <map><file>InConfig\NadeoMaps\StadiumA01.Map.Gbx</file></map>
</playlist> 
I shortened all the maps to one.

And I start it with this batch:

Code: Select all

echo off
ManiaPlanetServer /Title=TMStadium@nadeo /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/maplist.txt
if %errorlevel% NEQ 0 pause
Also some paths:
"D:\Games\TM2S Server\UserData\Maps\InConfig\NadeoMaps\StadiumA01.Map.Gbx"
"D:\Games\TM2S Server\UserData\Maps\MatchSettings\maplist.txt"

Everything should work, right?
I checked for issues regarding the <script_name> tag and from the conflicting info I found and the nadeo-confighelper I guess the CDATA-stuff is not supposed to be there, I focused on this the most. But nothing I did seemed to have changed anything.
I also ran maplist.txt through a XML validator, but I don't seem to have any <s and >s missing ...

I really hope you guys can help me :D

User avatar
undef.de
Posts: 2061
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by undef.de » 18 Jan 2020, 17:53

ExNought wrote:
18 Jan 2020, 17:31
I am trying for a couple hours to set up a dedicated server for me and my friends to play and I currently ramming my head againt this error.

From what I can tell my file should be correct?

Can you help me spot my error?

This is one of the logs:

Code: Select all

[2020/01/18 17:24:17] Match settings file : MatchSettings\maplist.txt
[2020/01/18 17:24:17] Loading match settings...
[2020/01/18 17:24:17] ...ERROR: Unable to read the playlist file.
...Could not load the match settings
[...]
I shortened all the maps to one.
The error the dedicated server gives you seems that your maplist.txt has mismatching tags and as it looks like you've added the filenames by hand you should look for missing tags. Wired is that the XML validator don't said something... anyway you didn't posted the full unchanged files, it's just a guess.

EDIT: Or your maplist.txt has the UTF-8 header, that could also be a problem.
Last edited by undef.de on 18 Jan 2020, 17:56, edited 2 times in total.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

User avatar
sotn0r
Posts: 87
Joined: 13 Mar 2011, 15:57
Contact:

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by sotn0r » 18 Jan 2020, 17:55

[2020/01/18 17:24:17] ...ERROR: Unable to read the playlist file.
this hints that the server process can not read the matchsettings file. either a problem with permissions, invalid xml in the file (most likely not the case if you have validated it) or you are supplying an invalid path to the file.

I am unsure if on windows you should use \ instead of / in the command line for the matchsettings path, worth a try
Last edited by sotn0r on 18 Jan 2020, 19:03, edited 1 time in total.
nc1.eu - TMF, TM² and ShootMania servers with first class support, control panel, FTP access and more..!

Image https://nc1.eu/
Image http://facebook.com/nc1.eu/
:arrow: https://twitter.com/nc1eu/

HaagseSmurf
Posts: 2145
Joined: 13 Apr 2011, 19:46
Contact:

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by HaagseSmurf » 18 Jan 2020, 19:02

My suggestion is to recheck your server settings with this topic, cause this topic is the best guideline there is.

Follow all the steps and then you probably find whats wrong: viewtopic.php?f=261&t=43622#p295332

Good luck!
HaagseSmurf

Check Smurfen.net and / or Smurfen.nu for all info.
You can also like our facebookpage at FaceBook Smurfen.net.
Or just visit
our Smurfen.net Canyon servers,
the Smurfen.net Valley and Royalserver.

ExNought
Posts: 4
Joined: 18 Jan 2020, 17:21

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by ExNought » 19 Jan 2020, 11:06

undef.de wrote:
18 Jan 2020, 17:53
The error the dedicated server gives you seems that your maplist.txt has mismatching tags and as it looks like you've added the filenames by hand you should look for missing tags. Wired is that the XML validator don't said something... anyway you didn't posted the full unchanged files, it's just a guess.

EDIT: Or your maplist.txt has the UTF-8 header, that could also be a problem.
Thanks for your reply. I created the file with help from Powershell *g* I shortened it, so my post would not be overly long, I have 160 maps in the config.

I tried with the config provided with the "How to setup"-thread (viewtopic.php?f=261&t=43622#p295332) but with that too I have no luck.

You wrote that the UTF-8 header could be a problem, can you explain that, what should it be? The config helper also puts out a UTF-8, so I expect this to be correct?
sotn0r wrote:
18 Jan 2020, 17:55
this hints that the server process can not read the matchsettings file. either a problem with permissions, invalid xml in the file (most likely not the case if you have validated it) or you are supplying an invalid path to the file.

I am unsure if on windows you should use \ instead of / in the command line for the matchsettings path, worth a try
I also thought that my pathing may be at fault and changed that already back and forth, sadly not resulting in success. I also tried to place it directly in Userdata\Maps, which also wasn't working. That's why my best guess was that I malformed the XML. Since I am currently creating this server on my personal rig, there are no fancy permissions set, so I think we can exclude this too, but I checked and every service/localuser has full-control...
HaagseSmurf wrote:
18 Jan 2020, 19:02
My suggestion is to recheck your server settings with this topic, cause this topic is the best guideline there is.
For a test I copied the provided config in this thread 1:1. Well. No success ^^ I also tried to rip things out of the config to maybe narrow down my issue to a specific part of the file, but I wasn't able to get it to fly yet.

ExNought
Posts: 4
Joined: 18 Jan 2020, 17:21

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by ExNought » 19 Jan 2020, 11:12

If anyone is interested I uploaded my complete server to googe drive. The absolute only thing I changed is, I blanked out my masterserver_account-Creds

https://drive.google.com/open?id=1vdWYr ... EjGScS52-s
I will point out: This may be google drive and they check for viruses, but I am just a rando person in the internet, don't trust me, be sceptical!

But tbh I am kinda desperate, I want this server to get up and running ^^

User avatar
undef.de
Posts: 2061
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by undef.de » 19 Jan 2020, 12:51

As I assumed, it's the encoding of your maplist.txt. It is UTF-16 encoded instead of UTF-8 and it contains the UTF-16 header "ÿþ":

Your file with UTF-16 headers "ÿþ"
Image

How it should look like
Image
Last edited by undef.de on 19 Jan 2020, 20:51, edited 1 time in total.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

ExNought
Posts: 4
Joined: 18 Jan 2020, 17:21

Re: Again another new server host with .ERROR: Unable to read the playlist file.

Post by ExNought » 19 Jan 2020, 12:59

undef.de wrote:
19 Jan 2020, 12:51
As I assumed, it's the encoding of your maplist.txt. It is UTF-16 encoded instead of UTF-8 and it contains the UTF-16 headers "ÿþ":

Oh my god. OH MY GOD! I feel like I am back being a trainee. It works.
Damn PowerShell and it's stupid Out-File Cmdlet.
You literally saved my day ^^

Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 2 guests