BATTALION: Legacy

BATTALION: Legacy

Hoerli Aug 19, 2022 @ 11:16am
Server configuration
Does anyone have an actual guide on how to configure a server?
The quick start guide from here (https://steamcommunity.com/app/489940/discussions/0/3432326055078758588/) is not particularly super ...

1. get SteamCMD and load the game
steamcmd +login anonymous +app_update 805140 +quit
2. create this folder
mkdir -p /home/USERNAME/.steam/sdk64
3. link the steamclient.so to the folder to fix some errors
ln -s /home/USERNAME/Steam/linux64/steamclient.so /home/USERNAME/.steam/sdk64/
4. start the game with the following command
./BattalionServer.sh

5 ... Config?

My server automatically gets a number as name.
No idea where it comes from.
You can specify the server port with
-QueryPort=X
.But I have not found more information on the Internet.
< >
Showing 1-15 of 18 comments
MagnuM AR Aug 19, 2022 @ 7:41pm 
-SteamServername ""
Hoerli Aug 20, 2022 @ 1:47am 
Good, now we have a server name.
Are there any other commands?
Oli Aug 20, 2022 @ 3:37am 
Hello, quick question. Is it possible to create locked (password) server without bots? Running on my PC... I notice that free places for players are always fill up with bots.
DoLt. Aug 21, 2022 @ 5:33pm 
Originally posted by Oli:
Hello, quick question. Is it possible to create locked (password) server without bots? Running on my PC... I notice that free places for players are always fill up with bots.
Hi @oli from the default game ini file packaged with the ded server looks like you should have the following set in your server.ini:
; Default number of bots to spawn into the game. Note: functionality not used while FillEmptySlotsWithBots is true.
NumBots=0

; Automatically populates empty slots with bots (up to MaxPlayersPerTeam).
FillEmptySlotsWithBots=False
Last edited by DoLt.; Aug 21, 2022 @ 6:04pm
DoLt. Aug 21, 2022 @ 5:56pm 
@Hoerli - having similar problems - running a dedicated on one of my other windows PCs. Server does run but I cannot see it in the ingame server browser. I know it works , I can see the connects in the server console and I have had a couple of mates pick it up via their server browser (AU low ping and server name 9016.... not hard to find) and watched them play via discord stream.

The game.ini packaged with the dedicated server is a little bit ... err ..'bare bones' and I can't find better on searches. Cannot set server name and the password locks don't seem to work.

If anyone getting to this thread is willing to post a working run.bat and server.ini (without the personal information, of course)(for a windows server) that would be greatly appreciated.
ta,
Dolt.
Last edited by DoLt.; Aug 21, 2022 @ 5:59pm
Sevvy Aug 22, 2022 @ 5:11am 
Came to post this. My friend tried to jerryrig a server and he said there's literally no documentation anywhere. He also couldn't remove bots - we just wanted an empty server where we could frag eacother - will be watching this thread.
Hoerli Aug 22, 2022 @ 8:51am 
@DoLt. You can use the two parameters above also with Windows.
SteamServername to set the name and QueryPort to set the gameport.
That here the default ini is probably not used, I have already noticed.
Data that I have changed there are not used.

At Linux i need to link a file called "steamclient.so" that the gameserver find a steam client on a linux server to start the server and add it to the serverbrowser of steam.
Maybe a developer will drop by here and solve the puzzle at ....
DoLt. Aug 22, 2022 @ 4:52pm 
Originally posted by Hoerli:
@DoLt. You can use the two parameters above also with Windows.
SteamServername to set the name and QueryPort to set the gameport.
That here the default ini is probably not used, I have already noticed.
Data that I have changed there are not used.

At Linux i need to link a file called "steamclient.so" that the gameserver find a steam client on a linux server to start the server and add it to the serverbrowser of steam.
Maybe a developer will drop by here and solve the puzzle at ....
@Hoerli - thanks for the response :steamhappy:
More testing and changes last night and with the help of a good mate we nutted through iterations of change and (at least) I can start my server and now see it in the ingame server browser (that was a win).
Setting server name in the older Battalion 1944 package was done in the server config (.ini) so I assumed the @MAgnum_AR post above was for the .ini server config. Penny dropped ,light went on, and I moved it to a command line line parameter for the windows executable - still didn't work , so more testing today.

I'm tending to agree with you that the packaged server ini is being ignored, so more testing to confirm and see if there is a way to force the use of a server config. You wonder why it's in the package in the first place if there is not a way to use it.
thanks again,
DoLt.
Sevvy Aug 23, 2022 @ 4:10am 
Originally posted by DoLt.:
Originally posted by Hoerli:
@DoLt. You can use the two parameters above also with Windows.
SteamServername to set the name and QueryPort to set the gameport.
That here the default ini is probably not used, I have already noticed.
Data that I have changed there are not used.

At Linux i need to link a file called "steamclient.so" that the gameserver find a steam client on a linux server to start the server and add it to the serverbrowser of steam.
Maybe a developer will drop by here and solve the puzzle at ....
@Hoerli - thanks for the response :steamhappy:
More testing and changes last night and with the help of a good mate we nutted through iterations of change and (at least) I can start my server and now see it in the ingame server browser (that was a win).
Setting server name in the older Battalion 1944 package was done in the server config (.ini) so I assumed the @MAgnum_AR post above was for the .ini server config. Penny dropped ,light went on, and I moved it to a command line line parameter for the windows executable - still didn't work , so more testing today.

I'm tending to agree with you that the packaged server ini is being ignored, so more testing to confirm and see if there is a way to force the use of a server config. You wonder why it's in the package in the first place if there is not a way to use it.
thanks again,
DoLt.

Any progress on removing bots entirely?
MagnuM AR Aug 24, 2022 @ 9:59am 
Originally posted by DoLt.:
Originally posted by Hoerli:
@DoLt. You can use the two parameters above also with Windows.
SteamServername to set the name and QueryPort to set the gameport.
That here the default ini is probably not used, I have already noticed.
Data that I have changed there are not used.

At Linux i need to link a file called "steamclient.so" that the gameserver find a steam client on a linux server to start the server and add it to the serverbrowser of steam.
Maybe a developer will drop by here and solve the puzzle at ....
@Hoerli - thanks for the response :steamhappy:
More testing and changes last night and with the help of a good mate we nutted through iterations of change and (at least) I can start my server and now see it in the ingame server browser (that was a win).
Setting server name in the older Battalion 1944 package was done in the server config (.ini) so I assumed the @MAgnum_AR post above was for the .ini server config. Penny dropped ,light went on, and I moved it to a command line line parameter for the windows executable - still didn't work , so more testing today.

I'm tending to agree with you that the packaged server ini is being ignored, so more testing to confirm and see if there is a way to force the use of a server config. You wonder why it's in the package in the first place if there is not a way to use it.
thanks again,
DoLt.

No, my post was for the commandline. I haven't tested the .ini command.
For the .ini i copied the file Battalion\Config\DefaultGame_PrivateServer.ini
to
\Server.ini

For Serverpassword: -ServerPassword="" (Commandline)

All guesing and asking, since there's no documentation. The devs doesn't care.
SDSurfer Aug 25, 2022 @ 4:41am 
I tried: -SteamServername "{TR} TombRaiders” in my .bat file after the .exe and didn’t work (running in windows). Does it not like brackets? When I launch the exe without the bat file I can see my server with generic name.

Also any admin controls when I in the server?

Anyway to see server output in command line? I see it in the log but would be nice to see scrolling across bat file command line
DoLt. Aug 25, 2022 @ 7:31pm 
I've put so many hours into testing without much progress. The best I can get is a no-name (9016..........) no password 5v5 server with bots filling empty slots. Server starts with a random map and when finished goes to a set 7 option voteable next round. ...I could rant but serves no purpose.

Some info - others may like to try and may (or may not) get different results:

I run the windows package, my server is installed to f:\batt44 for point of reference - there are 2 executables and I've tried both directly - no difference in outcome. My run.bat options:

start /b F:\BATT44\Battalion\binaries\win64\BattalionServer-Win64-shipping.exe -log -SteamServerName "dolt" -Password "asif"
OR
start /b F:\BATT44\BattalionServer.exe -log -SteamServerName "dolt" -Password "asif"

@sdsurfer - make sure you have the '-log ' option in your command line that will show you whats happening with the server ... joins, map changes....

I tried to force the use of a server config by using '-defgameini ="f:\batt44\server.ini" ' in the run.bat command line - didn't work (just seeing if I could get rid of the bots)

Server name and password has not worked in any of the tests.

IN GAME OPTIONS (Console):
Start your server, jump over to your game PC and join your server, when joined, bring up the game console with the '`' (tilde key)

type 'Serve' in console and it will bring up a list of all the server command matches
server.changemap -this command works

server.config.Fillemptyslotswithbots false
server.config.NumBots 0

- excecute both the bot commands and the console will tell you the values have been set (fillemptyslotswithbots was: True, fillemptyslotswithbots set to:False) -BUT nothing changes with the bots on the server, not even after end of round.

Bottom Line:

My Guess is that hosted servers are fully configurable and private servers are MVP (Minimum Viable Product)

There is a Battalion Discord channel and region channels setup (Eu,Oceania etc) but I'm not getting anything out of them of any use (Baker the dev posts there)

Not going to waste much more time, I have a new Destiny2 season to get into, but I will keep checking to see if anything changes

D.
Sevvy Aug 26, 2022 @ 3:40am 
It's so dumb there's little config info. Honestly, this game is great and i'd love to make a server to play with just mates. Other than trying to jerry rig CoD2 to work on modern systems and all that comes with that....there's nothing else like BAT for simple multiplayer fragging.

I know there's Quake n ♥♥♥♥, but I hate all that sci fi fantasy crap.
SDSurfer Aug 26, 2022 @ 4:20am 
@DoLt. Thank you for the update. Same for me. I did get the -log to work, thank you!

I may try installing Linux on a virtual box then installing battalion on it and trying to run the server from in there to see if The commands work in Linux
Last edited by SDSurfer; Aug 26, 2022 @ 4:21am
DoLt. Aug 26, 2022 @ 11:06pm 
OK... I had a tiny win.
Like @Sevalar I just want a server for a few mates to get in and have a social killfest whilst slinging BS @ each other on discord (we do this for a couple of other games that I run servers)

Get rid of the BOTS:
*only works for current map - master BOT variables reset at map change*
Suggested sequence:
-jump in your server, get your mates in as well, and ready
- Do a 'server.changemap ' in the console (pick a new map)
Soon as map changes:
-'server.freeze' (stops all player and server time to give you time for further commands)
-'server.config.fillemptyslotswithbots false'
-'server.killbots' bots get shown the front door ....gone!
-'server.freeze' unfreezes the server,play proceeds without bots

repeat with each map change

PUBS joining your server
If you don't want unknowns in the middle of your socialness, and they join, maybe do a server.freeze -see if they leave, highpingers are a pain in the rear so it's not that antisocial to want to kick. I haven't tested the server.kick <playername> or <steamid> yet. You should be able to get the steamid from your player console

@Oli - this might help with your original post

I know it is a bit clunky... but hey.....
regards,
D.
Last edited by DoLt.; Aug 26, 2022 @ 11:07pm
< >
Showing 1-15 of 18 comments
Per page: 1530 50