Test MP?

Place to get help with not working mods / modding interface.
Post Reply
inferis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri Nov 01, 2019 2:02 am
Contact:

Test MP?

Post 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.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Test MP?

Post 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.

inferis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri Nov 01, 2019 2:02 am
Contact:

Re: Test MP?

Post 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!

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2252
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Test MP?

Post 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

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2420
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: Test MP?

Post 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 ?
BobDiggity (mod-scenario-pack)

Bilka
Factorio Staff
Factorio Staff
Posts: 3157
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Test MP?

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

inferis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri Nov 01, 2019 2:02 am
Contact:

Re: Test MP?

Post 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?

Post Reply

Return to “Modding help”