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.
Test MP?
Re: Test MP?
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.
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?
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!
Oh well, I guess that's a good start anyway. Thanks!
Re: Test MP?
Command /toggle-heavy-mode may interest you
https://wiki.factorio.com/Console#Normal_commands
https://wiki.factorio.com/Desynchroniza ... de_command
- BlueTemplar
- Smart Inserter
- Posts: 3110
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: Test MP?
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)
Re: Test MP?
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.
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.
Re: Test MP?
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?
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?