Page 1 of 1

Add password command line parameters

Posted: Tue Mar 29, 2022 9:55 pm
by JaJe
Hi!
I own 2 dedicated servers of Factorio, one which is Vanilla and the other one is Modded so everytime I want to play one server or another without loading the game, select/deselect the mods and restart the game I made a script to automatize that which works like a charm but the only inconvenient now is that prompt every single time the password to join.

I'd like to have a command line parameters to add a password too, like -applaunch 427520 --mp-connect server:port --password password123

See my script for anyone that wants to easy swap between servers as example

Re: Add password command line parameters

Posted: Tue Apr 05, 2022 4:37 pm
by Koub
Wouldn't it be better to use a token ? there's a page on the wiki I can't link for now that explains ho to get an authentication token from Factorio's authentication API.
I'm not sure your need would be addressed with that solution, I just have a vague understanding of how those things work.

Re: Add password command line parameters

Posted: Tue Apr 05, 2022 4:48 pm
by JaJe
The token is for login with user and token than password for multi-player. This have nothing to do with server password.

Re: Add password command line parameters

Posted: Tue Apr 05, 2022 5:06 pm
by Koub
Oh I see, my bad!