Open lucastucious opened 1 year ago
For the records of the use case, i have 2 separate launcher for my dedicated server. One that enable crossplay and work online, and another to disable crossplay, when we play LAN.
Since it's 2 different method to launch the server even on vanilla valheim.
Anyways to lookup for this, and display a different message based on -crossplay argument?
You have an option to set one of the message variables to be something to indicate this. For example on one of the servers you can set %VAR1%
to say "LAN Server" and on the other server set it to "Crossplay Server".
Is it the case that you use the exact same configurations of everything and only change the launch message?
I think there probably is a way to determine if crossplay is enabled which I could add, but I have to figure that out.
Yes that's the same server, same files, just the start_server.bat have a different commandline.
So you say I can set a %var% in this command line ?
No sorry for confusion, you cannot set that in command line. I will see what I can do about adding something like %CROSSPLAY%
to be something that displays one thing when crossplay and something else if not (both set by your config).
The way I'm determining the IP address is from the game itself, asking it what its public IP is. I don't want to fiddle around and detect something on my own if I don't need to.
Similary to the %PUBLICIP% variable we had, can we have a %LOCALIP% that display lan IP (192.168.0.x) ?