Bisa / factorio-init

Factorio init script
MIT License
414 stars 82 forks source link

Need some help with standalone server #163

Closed TM-Defcon5 closed 3 years ago

TM-Defcon5 commented 4 years ago

Hello,

I`m new on this so sorry for maybe the wrong question or not read the whole story.

I have a linux dedicated services running, but i don`t understand how your script excacly works. Did not install factorio on the server, I just downloaded the headless server and stored the executeable file in the home dir. This is like this :

/home/factorio/Services/Factorio_a/

here I put all the files.

Now I want to run you script, but seems i get errors like the config file not found... etc.. Where do I change the PATHS and on wich lines?

the reason i did not install the game on the linux server, is that i want to run other programm`s as well.

Maight be wrong, but this is how i always did it and I had help from a good friend of me, he really understand linux much better than me, but during hi`s jobs and other work, he has no time to help me out. I am like a linux noob, but I understand some of the commands and know how to use them.

So can you help me out? Currently I run it when I logged in. factorio version : 0.18.21 (test) SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux.

Thanks for the help in advanced.

Regards,

Bisa commented 4 years ago

Hi, did you rename the "config.example" to just "config" yet? (that's the file where you change most of the settings/paths etcetera, if you need more debug output that's where you enable debugging)

Once you have that sorted, try running: /path/to/factorio-init-script/factorio start

TM-Defcon5 commented 4 years ago

Hi, did you rename the "config.example" to just "config" yet? (that's the file where you change most of the settings/paths etcetera, if you need more debug output that's where you enable debugging)

Once you have that sorted, try running: /path/to/factorio-init-script/factorio start

And where must the config.example be in? cant find it. As i said, i didnt install the game on my server.

Bisa commented 4 years ago

You will need to download this script, and the config.example file to start with. Then, if you want the script to install for you, try the install option - or manually download and unpack the server from factorios official page.

To get you started, try:

If you run into any issues with the last two steps - try changing DEBUG=0 to DEBUG=1 in the /opt/factorio-init/config file and try the command again, paste any output here and I'll see what I can do.

jgradzki commented 4 years ago

Hi, can you explain to me how can i have both file and directory named "config" on linux? :) Directory is generated by server.

I started server with "standard" way, but i see configuration is now from data folder so i guess i can delete config folder, but anyway i changed "config" file name (in script too)

Bisa commented 4 years ago

Hi, can you explain to me how can i have both file and directory named "config" on linux? :) Directory is generated by server.

@jgradzki I'm afraid you cannot have two items in the same location on most unix filesystem (if not all?) with the same name.

The config (a directory) generated by the server: [factorio install dir]/config The config (a file) used by my init script needs to live next to the actual init script, as suggested by most guides: /opt/factorio-init/config

If you installed my script in the [factorio install dir] you will need to move it out of that directory and update your PATH to reflect the change.