View 7d2dcmd.sh
#!/bin/bash | |
#Written on Ubuntu 16.04 LTS | |
#Written against Factorio 0.15.3 (tested again 0.15.35) | |
#walkthough: tbd | |
#props: https://gist.github.com/othyn/e1287fd937c1e267cdbcef07227ed48c | |
#disclaimer: stole the idea from someone (can't remember who, sorry), but modified it for my wants | |
#Requires Sudo for systemctl commands (start, stop, restart, ect) | |
clear |
View 7d2d.service
#place in /etc/systemd/system/7d2d.service | |
# systemctl start 7d2d.service | |
# systemctl enable 7d2d.service #autostarts the server | |
# systemctl stop 7d2d.service | |
[Unit] | |
Descritpion=7D2D Headless Server | |
After=network.target | |
After=systemd-user-sessions.service | |
After=network-online.target |
View servergrid.templates.json
"serverTemplates": [ | |
{ | |
"templateColorR": 0.05, | |
"templateColorG": 0.2, | |
"templateColorB": 1.0, | |
"gridX": 0, | |
"gridY": 0, | |
"MachineIdTag": "", | |
"ip": "", | |
"name": "Polar", |
View redis.windows-service.conf
# Redis configuration file example | |
# Guide on how to use with Atlas: https://www.drac346.net/2018/12/atlas-dedicated-server-setup-main-menu.html | |
# Note on units: when memory size is needed, it is possible to specify | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes |
View ServerGrid.json
{ | |
"BaseServerArgs": "", | |
"gridSize": 1400000.0, | |
"MetaWorldURL": "", | |
"WorldFriendlyName": "XXXYYYXXX", | |
"WorldAtlasId": "XXXYYYXXX", | |
"AuthListURL": "", | |
"WorldAtlasPassword": "XXXYYYXXX", | |
"ModIDs": "", | |
"MapImageURL": "XXXYYYXXX", |
View ServerGrid.ServerOnly.json
{ | |
"LocalS3URL": "", | |
"LocalS3AccessKeyId": "", | |
"LocalS3SecretKey": "", | |
"LocalS3BucketName": "", | |
"LocalS3Region": "", | |
"TribeLogConfig": { | |
"MaxRedisEntries": 1000, | |
"BackupMode": "off", | |
"MaxFileHistory": 10, |
View factorio.service
#place in /etc/systemd/system/factorio.service | |
# systemctl start factorio.service | |
# systemctl enable factorio.service #autostarts the server | |
# systemctl stop factorio.service | |
[Unit] | |
Descritpion=Factorio Headless Server | |
After=network.target | |
After=systemd-user-sessions.service | |
After=network-online.target |
View factoriocmd.sh
#!/bin/bash | |
#Written on Ubuntu 16.04 LTS | |
#Written against Factorio 0.15.3 (tested again 0.15.35) | |
#walkthough: tbd | |
#props: https://gist.github.com/othyn/e1287fd937c1e267cdbcef07227ed48c | |
#disclaimer: stole the idea from someone (can't remember who, sorry), but modified it for my wants | |
#Requires Sudo for systemctl commands (start, stop, restart, ect) | |
clear |
View factorio.15.notes.txt
#walkthought: https://www.accessdenied.wtf/single-post/2017/09/24/Factorio-15-Server-Customizations-with-LUA-Commands | |
#Set game to peaceful mode (global setting) | |
/c game.player.surface.peaceful_mode=true | |
#In the next section, replace "player_name_[1,2,3]" with whatever name makes sense to you | |
#create player factions (this is for 4 players, 3 named and the default [player] faction) | |
/c game.create_force('f_player_name_1') | |
/c game.create_force('f_player_name_2') | |
/c game.create_force('f_player_name_3') |