#alr
1 messages Ā· Page 1 of 1 (latest)
So, are you using docker ?
I don't think I will for simplicity
Ok, and you are on windows ?
Yes
Ok, so you cannot use the headless version, it is for linux only.
You can use the regular version, either from steam or downloaded from the factorio website
ah ok
To keep things clean, I suggest you get the website version, and put it into it's own separte folder.
This way you don't mix your game with the server
Alr
Specifically get the zip download, not the installer
Also, quick disclaimer :
Unlike many other game, were you can run the server alongside the actual game without worrying too much, running a factorio server on the same computer that you play will double the work for the computer.
So you should do that only if you plan on leaving the computer on for others to play.
If you are always here when the other plays, you don't need a server
I'm planning to set it up on a separate pc :)
ok cool
So, download the zip version, and unzip it were you want the server to live (any folder will do, just make it a separate one)
alright
In the same folder you unzipped everything, create a file named start.bat, and paste this in
start /wait .\bin\x64\factorio.exe --start-server ./saves/save.zip --server-settings .\data\server-settings.json
Ok, its gunna take a second to extract everything. Feel free to keep listing the next steps
ok
(I tweaked the command above slightly)
On you other computer, use your game to create the save you are gonna use, with any mods you want.
Transfer this save into the server, in the saves subfoler, and copy your entire mods folder if you used any.
Make sure the save is named save.zip
Then you should be ready to test it, by running the start.bat file. It should open a console with the factorio server
for the start.bat do I create a text file?
yes it's like a regular text file, that you can edit with notepad.
Just make sure it doesn't end with .txt, but with .bat
nah, you probably have the true extention hidden, windows does that by default
Learn what file name extensions are, which extensions are common in Windows, and how to view them in File Explorer.
Tick the box in the file explorer, and you should be able to see/edit the full filename
you can create it
right next to the bin, config, data and the rest
if you have the save yes
alr
share a screen once the line of text stop scrolling
Alright so the server is running š
But you have a file missing, read the error near the end
the server settings json right
yes
is that a file I create?
you should copy data\server-settings.example.json and give it the proper name
This way you start with a pre-filled config
(we will come back to this file latter, after we make sure the server works)
Should I move it from data into the folder with 'bin' 'data' and the others?
nope, if you read the error, it is expecting this file to be in the data folder, next to server-settings.example.json
I'll set it up later then.
š
we'll deal with that latter, go into the file you just created, and change visibility > public to false
it's near the top
Done
now the server should run properly, and you should be able to connect to it with your other computer, using the local IP
Ok, give me a second to test
(if you don't know the local ip of the server, open a command prompt, and type ipconfig)
Sorry for the wait, it works
Connected rn
nice
so now, we make it public
revert the config change you made
and go to the factorio website, login, and go to your profile to get the token
Grabbed it
there is place for it in the config file
also, put your username in the config file
config file or server settings file
server-settings
still in the same file, I strongly suggest you put a game_password, and you should also change the name and description so your friend can find the server in the browser
Will do
Do I put the token where ācomment_tokenā is
?
Wait no
Next to where it says ātokenā right
it should look like this
you don't need the password
Oh ok
the token takes care of that
yeah you don't need the password, but you need a game_password
Mhm
Everyone will need to enter the game_password every time they join, to prevent undesired guest
Mhm
so don't put your actuall factorio account password
alright, so turn public back to true, and give it a spin
If there is no error, you should see the server in the ingame browser
Also how do I know if itās running or not?
isn't there a command line opening when you launch the .bat file ?
then the server isn't running
Oh wait that means somethingās prolly wrong
Mb lol
Key ādescriptionā was not found in properly tree at ROOT
you can share the content of the factorio-current.log if you want some help.
But don't share you server-settings, it contains your token and someone could use it to host servers in your name
alright then you probably did something wrong with the server-settings
make sure you didn't break the quotations or commas, it should look like this
{
"name": "Name of the game as it will appear in the game listing",
"description": "Description of the game that will appear in the listing",
"tags": ["game", "tags"],
Itās the same
dumb question just to make sure : did you save the file ?
Yes
Gimmie one second I think I figured it out
There we go
Iām just an idiot lol
as much as everyone here. don't worry
Hmmm
Canāt seem to connect
It shows up on the public server list
But cannot establish nerwork communication
Maybe because you are on the same network as the server.
Maybe ask a friend to connect, ot me if you want to share the server name and password privately
If I wanted to join would I just use a LAN connection?
if this is the issue yes
I'll dm you the server info
I'm in
nearly
if you type something in the command line of the server and press enter, it should show up as a message ingame, can you confirm ?
One sec
Also, how will this work with the dlc?
I assume Iād have to redownload the zip
the dlc should just be another mod, that you have to copy into the mods subfolder with the rest of the mods you want to turn on
Ok
Yes
and to upgrade to the 2.0 version yeah you will have to redownload and unzip
override evrything, but mke sure to keep the server-settings and the save
in the console, you have absolute control, and from here you can manage stuff.
First you should give yourself (as a player), the same right, by typing /promote Your_username
and from here you will be able to do all the command as a player too
Ok
(also, as an admin, you can click on players to open them like chests š )
nice
Does the server save auto saves?
yes, you should see them in the saves folder
and you san increase the number of autosaves in the server-settings
I think you are pretty much done.
Just make sure to back up the saves (for example by saving as a player from time to time).
And if you have any doubt when doing something, just copy the whole folder as a backup to be able to rollback
or Ctrl+C in the command line yes
Also, as an extra precaution, you might want to look into setting up the whitelist.
It's a bit of work, but this way you know who can join the server in your absence.
And when it is setup, you can drop the password
Other than that congrats, you have a server now