#alr

1 messages Ā· Page 1 of 1 (latest)

drowsy bone
#

@desert compass

desert compass
#

So, are you using docker ?

drowsy bone
#

I don't think I will for simplicity

desert compass
#

Ok, and you are on windows ?

drowsy bone
#

Yes

desert compass
#

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

drowsy bone
#

ah ok

desert compass
#

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

drowsy bone
#

Alr

rain field
#

Specifically get the zip download, not the installer

desert compass
#

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

drowsy bone
#

I'm planning to set it up on a separate pc :)

desert compass
#

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)

drowsy bone
#

Ok, almost done downloading

#

Ok its done

desert compass
#

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
drowsy bone
#

Ok, its gunna take a second to extract everything. Feel free to keep listing the next steps

desert compass
#

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

drowsy bone
#

for the start.bat do I create a text file?

desert compass
#

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

drowsy bone
#

still says text document, is that ok?

desert compass
#

nah, you probably have the true extention hidden, windows does that by default

#

Tick the box in the file explorer, and you should be able to see/edit the full filename

drowsy bone
#

alr

#

fixed

#

Cant seem to find a saves subfolder though

desert compass
#

you can create it

drowsy bone
#

Ah ok

#

in the data folder?

desert compass
#

right next to the bin, config, data and the rest

drowsy bone
#

Ok

#

And now hit start.bat?

desert compass
#

if you have the save yes

drowsy bone
#

alr

desert compass
#

share a screen once the line of text stop scrolling

drowsy bone
desert compass
#

Alright so the server is running šŸŽ‰
But you have a file missing, read the error near the end

drowsy bone
#

the server settings json right

desert compass
#

yes

drowsy bone
#

is that a file I create?

desert compass
#

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)

drowsy bone
#

Should I move it from data into the folder with 'bin' 'data' and the others?

desert compass
#

nope, if you read the error, it is expecting this file to be in the data folder, next to server-settings.example.json

drowsy bone
#

should I do the same to the other example files

#

or are those optional ones

desert compass
#

maybe the whitelist one, if you plan to use one

#

but that's it

drowsy bone
#

I'll set it up later then.

desert compass
#

šŸ‘

drowsy bone
#

Ok its running

#

Missing token though

#

do I pull that from %appdata%?

desert compass
#

we'll deal with that latter, go into the file you just created, and change visibility > public to false

#

it's near the top

drowsy bone
#

Done

desert compass
#

now the server should run properly, and you should be able to connect to it with your other computer, using the local IP

drowsy bone
#

Ok, give me a second to test

desert compass
#

(if you don't know the local ip of the server, open a command prompt, and type ipconfig)

drowsy bone
#

Connected rn

desert compass
#

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

drowsy bone
#

Grabbed it

desert compass
#

there is place for it in the config file

#

also, put your username in the config file

drowsy bone
#

config file or server settings file

desert compass
#

server-settings

drowsy bone
#

gotcha

#

then what

desert compass
#

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

drowsy bone
#

Will do

#

Do I put the token where ā€œcomment_tokenā€ is

#

?

#

Wait no

#

Next to where it says ā€œtokenā€ right

desert compass
#

it should look like this

drowsy bone
#

Yes

#

And username and password are in

#

Now turn back on public?

desert compass
#

you don't need the password

drowsy bone
#

Oh ok

desert compass
#

the token takes care of that

drowsy bone
#

But I do need a game password

#

Well not need, but should

desert compass
#

yeah you don't need the password, but you need a game_password

drowsy bone
#

Mhm

desert compass
#

Everyone will need to enter the game_password every time they join, to prevent undesired guest

drowsy bone
#

Mhm

desert compass
#

so don't put your actuall factorio account password

drowsy bone
#

Yes

#

It’s all set

desert compass
#

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

drowsy bone
#

Also how do I know if it’s running or not?

desert compass
#

isn't there a command line opening when you launch the .bat file ?

drowsy bone
#

there is

#

but it closes out

desert compass
#

then the server isn't running

drowsy bone
#

Oh wait that means something’s prolly wrong

#

Mb lol

#

Key ā€œdescriptionā€ was not found in properly tree at ROOT

desert compass
#

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"],
drowsy bone
#

It’s the same

desert compass
#

dumb question just to make sure : did you save the file ?

drowsy bone
#

Yes

#

Gimmie one second I think I figured it out

#

There we go

#

I’m just an idiot lol

desert compass
drowsy bone
#

Hmmm

#

Can’t seem to connect

#

It shows up on the public server list

#

But cannot establish nerwork communication

desert compass
#

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

drowsy bone
#

If I wanted to join would I just use a LAN connection?

desert compass
#

if this is the issue yes

drowsy bone
#

I'll dm you the server info

desert compass
#

I'm in

drowsy bone
#

ah it says you've joined

#

neat

desert compass
#

try joining via IP

#

perfect

drowsy bone
#

It shows up in LAN

#

for me

#

which makes sense

#

Ok cool

#

am I done then?

desert compass
#

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 ?

drowsy bone
#

One sec

#

Also, how will this work with the dlc?

#

I assume I’d have to redownload the zip

desert compass
drowsy bone
#

Ok

desert compass
#

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

drowsy bone
#

Mhm

#

I’ll start a new save for it

#

What now in the console?

desert compass
#

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

drowsy bone
#

Ok

desert compass
#

(also, as an admin, you can click on players to open them like chests šŸ˜ )

drowsy bone
#

Ik lol, ive hosted games via steam before

#

It’s very fun

desert compass
#

nice

drowsy bone
#

Does the server save auto saves?

desert compass
#

yes, you should see them in the saves folder

drowsy bone
#

Ok

#

Is there anything else I need to do

desert compass
#

and you san increase the number of autosaves in the server-settings

desert compass
# drowsy bone Is there anything else I need to do

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

drowsy bone
#

Alright

#

And /quit to close correct

desert compass
#

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

drowsy bone
#

Yeah ik how whitelists work

#

Ty!

#

Thanks again for all the help :)