Linux hosts can't change the map

Linux hosts can't change the map

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Linux hosts can't change the map

Post 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?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post by Forboding Angel »

Here is a pastebin of the maplists conf:
https://pastebin.com/5trPX95x
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Linux hosts can't change the map

Post 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 ?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post 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.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Linux hosts can't change the map

Post by FabriceFABS »

:arrow: Finally !
This is one of the mysterious things in computers... :wink:
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: Linux hosts can't change the map

Post by dansan »

User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Linux hosts can't change the map

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Linux hosts can't change the map

Post 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
Post Reply

Return to “SPADS AutoHost”