Page 1 of 1

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

Posted: 18 Jan 2020, 17:31
by ExNought
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

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

Posted: 18 Jan 2020, 17:53
by undef.de
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.

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

Posted: 18 Jan 2020, 17:55
by sotn0r
[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

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

Posted: 18 Jan 2020, 19:02
by HaagseSmurf
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!

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

Posted: 19 Jan 2020, 11:06
by ExNought
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.

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

Posted: 19 Jan 2020, 11:12
by ExNought
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 ^^

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

Posted: 19 Jan 2020, 12:51
by undef.de
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

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

Posted: 19 Jan 2020, 12:59
by ExNought
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 ^^

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

Posted: 19 Jul 2020, 16:32
by cesar010294
I have the same problem,

My encoding is UTF 8 on the maplist.txt (I think, otherwise could you help me modifying the files needed? I'm a noob but would like to play with my friends)

https://1drv.ms/u/s!ArI5U_7fGDdghf0gE7b ... w?e=GCGaL7

Can you help me out pls!

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

Posted: 19 Jul 2020, 18:24
by undef.de
cesar010294 wrote: 19 Jul 2020, 16:32 I have the same problem,

My encoding is UTF 8 on the maplist.txt (I think, otherwise could you help me modifying the files needed? I'm a noob but would like to play with my friends)

https://1drv.ms/u/s!ArI5U_7fGDdghf0gE7b ... w?e=GCGaL7

Can you help me out pls!
Your encoding is right, but your "maplist.txt" has the wrong name ("maplist.txt.txt" current), just rename it to "maplist.txt". :thumbsup: