Page 1 of 1

Test MP?

Posted: Fri Nov 01, 2019 2:15 am
by inferis
I've searched around a bit but didn't find a answer immediately, but…

how would I test my mod with MP, apart from running an actual MP game with other people? I'd like to make sure there's no desync issues, something of which I'm not confident at the moment.

Re: Test MP?

Posted: Fri Nov 01, 2019 2:36 am
by DaveMcW
Go to factorio.com
Login, or create an account and link it to Steam.
Download the zip version of the game.
Extract the zip to folder1.
Extract the zip to folder2.
Edit config.ini in folder2 and change the port.
Start folder1/factorio and create a LAN game.
Start folder2/factorio and join the LAN game.

Re: Test MP?

Posted: Fri Nov 01, 2019 3:52 am
by inferis
Yeah, that's what I figured, but it would hardly test higher latency issues.

Oh well, I guess that's a good start anyway. Thanks!

Re: Test MP?

Posted: Fri Nov 01, 2019 7:06 am
by boskid
inferis wrote: Fri Nov 01, 2019 2:15 am I'd like to make sure there's no desync issues, something of which I'm not confident at the moment.
Command /toggle-heavy-mode may interest you
https://wiki.factorio.com/Console#Normal_commands
https://wiki.factorio.com/Desynchroniza ... de_command

Re: Test MP?

Posted: Fri Nov 01, 2019 11:27 am
by BlueTemplar
I wonder if there might not be a way to simulate latency inside the OS IP stack, like by artificially delaying packets or something ?

Re: Test MP?

Posted: Fri Nov 01, 2019 11:37 am
by Bilka
I don't quite get what you want to do with latency since mods don't interact with it. Regardless, this is an easy way to simulate it:
1. On the hosting client, go to the main menu
2. Ctrl + shift + alt + left click on "Settings"
3. Click on "The rest"
4. The top most line allows you to define a minimum latency (in ticks)
5. Confirm
6. Host game
7. Joining players will have the defined minimum latency

Note: The "The rest" gui is just an easy way to edit config file options that don't show up in the normal settings GUI, you could also just edit the config file.

Re: Test MP?

Posted: Fri Nov 01, 2019 2:40 pm
by inferis
That seems to be what I was looking for. Thanks!

I seem to be confused about what causes desync, then. I assumed that it was high latency causing clients to get out of sync, but apparently that's not the case then?