You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Download the Factorio Standalone server and install to a known directory.
32
-
3. Run the server binary file, use the --dir flag to point the management server to your Factorio installation. If you are using the steam installation, point FSM to the steam directory.
4. Visit [localhost:8080](localhost:8080) in your web browser.
44
-
45
-
## Usage
46
-
Run the UI server and specify the directory of your Factorio server installation and the interface to run the HTTP server on. Edit the conf.json file with your desired credentials for authentication.
47
-
```
48
-
Usage of ./factorio-server-manager:
49
-
-bin string
50
-
Location of Factorio Server binary file (default "bin/x64/factorio")
51
-
-conf string
52
-
Specify location of Factorio Server Manager config file. (default "./conf.json")
53
-
-config string
54
-
Specify location of Factorio config.ini file (default "config/config.ini")
55
-
-dir string
56
-
Specify location of Factorio directory. (default "./")
57
-
-host string
58
-
Specify IP for webserver to listen on. (default "0.0.0.0")
59
-
-max-upload int
60
-
Maximum filesize for uploaded files (default 20MB). (default 20971520)
61
-
-port string
62
-
Specify a port for the server. (default "8080")
63
-
-glibc-custom string
64
-
Specify if custom glibc is used (default false) [true/false]
65
-
-glibc-loc string
66
-
Path to the glibc ld.so file (default "/opt/glibc-2.18/lib/ld-2.18.so")
67
-
-glibc-lib-loc
68
-
Path to the glibc lib folder (default "/opt/glibc-2.18/lib")
69
-
-autostart
70
-
Autostarts Factorio Server when FSM is starting. Default false [true/false]
71
-
(If no IP and/or port provided at startup, it will bind the factorio server to all interfaces
72
-
and set the server port to the default 34197, always loads latest save)
Frontend is built using React and the AdminLTE CSS framework.
133
-
134
-
The root of the UI application is served at app/index.html. Run the npm build script and the Go application during development to get live rebuilding of the UI code.
135
-
136
-
All necessary CSS and Javascript files are included for running the UI.
137
-
138
-
Transpiled bundle.js application is output to app/bundle.js, 'npm run build' script starts webpack to build the React application for development.
139
-
```
140
-
make app/bundle
141
-
```
142
-
143
-
##### For development
144
-
The frontend is completely build by npm with laravel-mix. All plugins are build into the compiled files. No plugins need to be load fro external sources.
145
-
146
-
It has different variants to build the frontend, provided by laravel-mix:
147
-
-`npm run dev` Build the code for development. This will also generate map-files, so the browser, can show, what line and file causes the output.
148
-
-`npm run watch` Build the code for development like the dev-command. This will not stop and automatically rebuild, when files are changed and saved.
149
-
-`npm run hot` Build the code for development. It has the same behaviour like the watch-command and also causes a hotReload of the files inside the browser (in theory)
150
-
-`npm run build` Build the code for deployment. It will generate no map-files and also minifies the bundle-files.
151
-
In every of those cases, also images and fonts will be copied to the app-folder.
Once everything is installed and ready to go you will need to compile the source for windows
163
-
164
-
1. Open the folder where ever you unzipped from step #2 above.
165
-
2. My folder structure is like this "C:\FS\factorio-server-manager\" C:\FS is where my factorio files are located C:\FS\factorio-server-manager\ is where the server manager files are.
166
-
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down shift and right click an empty area of the folder. Then click "Open command windows here"
167
-
4. Type this into the command prompt then hit enter:
168
-
169
-
```
170
-
go build
171
-
```
172
-
173
-
5. Once finished you will now see src.exe or src file inside the folder. You need to move that file to the C:\FS\factorio-server-manager\ or the folder that is before your src folder.
174
-
6. From here you need to build the web front-end. Again hold shift and right click in an empty area then select open command prompt here. You then need to type this:
175
-
176
-
```
177
-
npm install
178
-
npm run build
179
-
```
180
-
181
-
7. Now execute the src file created in step #4 above. You have to specify the directory, where the factorio-server is located, as parameter. More about the parameter under [Usage](#Usage)
182
-
8. You can now Visit [localhost:8080](localhost:8080) in your web browser to start using the Factorio server Manager
0 commit comments