Multiplayer testing by myself
Multiplayer testing by myself
I need to test the multiplayer compatibility of my mod, but I don't wanna pester my friends to do something stupid in Factorio over and over again. Is there a way I can have multiple clients on one system or something similar?
Re: Multiplayer testing by myself
Use /c game.force_crc() or /toggle-heavy-mode.
Re: Multiplayer testing by myself
You also could try to run Factorio from two different user accounts on your machine. Host a multiplayer game from the first instance (make sure it's not a public game!), then switch over to the other user and join that game.
Caveat: This may not work if your computer is low on RAM. Even then, things may work really slow, so it may be a good idea to set up a testing environment while only one instance of the game is running and then join with the second player. Also, you probably should have a close look at your mod list. Throw out everything that isn't necessary for your tests! If possible, get rid of huge mods, or mods that pull in lots of other dependencies! (On my computer, starting the game alone takes a relatively long time when SE is active, so I wouldn't even try to run this on two instances of the game instantaneously.)
Caveat: This may not work if your computer is low on RAM. Even then, things may work really slow, so it may be a good idea to set up a testing environment while only one instance of the game is running and then join with the second player. Also, you probably should have a close look at your mod list. Throw out everything that isn't necessary for your tests! If possible, get rid of huge mods, or mods that pull in lots of other dependencies! (On my computer, starting the game alone takes a relatively long time when SE is active, so I wouldn't even try to run this on two instances of the game instantaneously.)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: Multiplayer testing by myself
Don't need two accounts - you can just use the standalone version. You'll need to change settings so they use a different username and don't check accounts, but it works fine. Done it before.
Re: Multiplayer testing by myself
Thanks for making this more clear! I'm not using Steam etc. myself, but the stand-alone version. I didn't mean you should buy two keys for Factorio! But for some reason, I had trouble running two different instances of Factorio as the same Linux user. So I log in as user 'Pi-C' on my machine, start the first instance of Factorio, then log in as user 'test' and start the second instance, then switch back to the first account to host the local multiplayer game, and back again to connect to the game as 'test' (doing everything at once sometimes brings down my computer as I usually have a lot of stuff open in my main account, and things may get nasty if the computer starts to swap memory).
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Re: Multiplayer testing by myself
Definitely works on the same user account in Windows. Not sure why it wouldn't on Linux. Might have had issues if you tried to run the same instance twice. You need to use two different installs, otherwise factorio can't lock the files it needs.
Re: Multiplayer testing by myself
just force your friends to help you - help developing a mod is propably a greater thing than whatever they do instead