Page 1 of 1

Linux hosts can't change the map

Posted: 23 May 2017, 16:05
by Forboding Angel
Every attempt to change the map is met with:

Code: Select all

WARNING - [SPADS] Unable to find any other allowed map compatible with current number of players (0), keeping current map
This error happens when there are players in the match (number of players changes).

Ok, the hosts were copied from a windows install. Conf files have been altered to suit linux and they are operating properly (as in game starts players play, etc). Distro is Xubuntu.

Now, an important thing to note is that I have all of the maplists joined via symlinks. I.E. host 2 symlinks to host1's maplist file as does host 3 4 5 and 6.

I also have all hosts symlinked to a single saveboxes file.

Ok, so that is all fine and good. Here is my spads conf for evortsdedicated1 (the master host): https://pastebin.com/v1LtTzcd

I already checked to make sure that symlinks didn't break it. The symlinking doesn't effect the problem. Removing the symlinks had no effect. It should be noted that my windows setup was exactly like this (symlinked maplists and saveboxes).

Currently all of the evo hosts are locked to using a single map. Help plox?

Re: Linux hosts can't change the map

Posted: 23 May 2017, 22:43
by Forboding Angel
Here is a pastebin of the maplists conf:
https://pastebin.com/5trPX95x

Re: Linux hosts can't change the map

Posted: 24 May 2017, 03:00
by FabriceFABS
Hello,

I can say you that symlinks doesn't break Spads, I use it also for maps, and not only for that.

IMO, I don't see anything wrong in your files & config.
I would be glad to see your complete spads directory, then I could make some tests on my side.
Would you want to send it zipped to me ? > Don't forget to remove longin+password in your spads.conf if you want to.

Did you try a fresh install from 0 in another directory, just to focus on an eventual misconfig not discovered yet ?

Re: Linux hosts can't change the map

Posted: 24 May 2017, 03:16
by Forboding Angel
Well I got to looking in the logs, and spads is bitching about a lot of map hashes. I'm wondering if windows - > linux they are stored or written differently. I'm checking that now. This is a weird problem to have.

I'm in the lobby, but the best place to reach me is on discord tbh , just mention me on discord or DM me.

Re: Linux hosts can't change the map

Posted: 24 May 2017, 03:35
by Forboding Angel
I have a message showing occasionally:
Argument "\r" isn't numeric in numeric ge (>=) at /home/spads/spads/spads.pl line 6785
I'm trying everything I can think of. I'm tempted to just kill the entire var folder and see what happens.

Re: Linux hosts can't change the map

Posted: 24 May 2017, 03:43
by Forboding Angel
Deleting everything in var and having spads rebuild it does nothing. This HAS to be an issue with confs somewhere.

I have downloaded the maps, turned off ghostmaps and autolearn maps, and still nothing.

Re: Linux hosts can't change the map

Posted: 24 May 2017, 03:51
by Forboding Angel
It must have been a line ending issue with windows -> linux in maplists.conf. On a whim, I created a new file with notepadqq, and copy and pasted the entirety of the old maplists into the new file, saved it, then overwrote the old one (interestingly the filesizes were a tiny bit different). All of a sudden, they work.

Magic.

Re: Linux hosts can't change the map

Posted: 24 May 2017, 07:46
by FabriceFABS
:arrow: Finally !
This is one of the mysterious things in computers... :wink:

Re: Linux hosts can't change the map

Posted: 24 May 2017, 10:00
by dansan

Re: Linux hosts can't change the map

Posted: 24 May 2017, 10:23
by FabriceFABS
It's right the method of copy-paste you did that I know for other reasons (for removing typo and formatted text) would be one of my try.
This, always clean-up any text.
Haha nice we got the reason now !! Thx.

Re: Linux hosts can't change the map

Posted: 26 May 2017, 07:25
by Forboding Angel
This is a better tool:

https://github.com/mdolidon/endlines

Throw the renamed binary in usr/local/bin and just run:

endlines unix * -r