Add password command line parameters

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
JaJe
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Feb 27, 2019 6:48 pm
Contact:

Add password command line parameters

Post 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
Attachments
unknown.png
unknown.png (68.31 KiB) Viewed 1350 times
Koub
Global Moderator
Global Moderator
Posts: 7807
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Add password command line parameters

Post 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.
Koub - Please consider English is not my native language.
User avatar
JaJe
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Feb 27, 2019 6:48 pm
Contact:

Re: Add password command line parameters

Post by JaJe »

The token is for login with user and token than password for multi-player. This have nothing to do with server password.
Koub
Global Moderator
Global Moderator
Posts: 7807
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Add password command line parameters

Post by Koub »

Oh I see, my bad!
Koub - Please consider English is not my native language.
Post Reply

Return to “Ideas and Suggestions”