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
Copy file name to clipboardExpand all lines: README.md
+23-28Lines changed: 23 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This tool runs on a Factorio server and allows management of the Factorio server
43
43
4. Visit [localhost:8080](localhost:8080) in your web browser.
44
44
45
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.
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
47
```
48
48
Usage of ./factorio-server-manager:
49
49
-bin string
@@ -60,11 +60,21 @@ Usage of ./factorio-server-manager:
60
60
Maximum filesize for uploaded files (default 20MB). (default 20971520)
61
61
-port string
62
62
Specify a port for the server. (default "8080")
63
-
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")
@@ -89,8 +99,8 @@ It also acts as the webserver to serve the front end react application
89
99
All api actions are accessible with the /api route. The frontend is accessible from /.
90
100
91
101
#### Requirements
92
-
+ Go 1.7
93
-
+ NodeJS 4.2.6
102
+
+ Go 1.11
103
+
+ NodeJS
94
104
95
105
#### Building Releases
96
106
Creates a release zip for windows and linux: (this will install the dependencies listed in gopkgdeps)
@@ -121,7 +131,7 @@ make app/bundle
121
131
```
122
132
123
133
##### For development
124
-
The frontend is completly build by npm with laravel-mix. All plugins are buld into the compiled files. No plugins need to be load fro external sources.
134
+
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.
125
135
126
136
It has different variants to build the frontend, provided by laravel-mix:
127
137
-`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.
@@ -134,46 +144,31 @@ In every of those cases, also images and fonts will be copied to the app-folder.
6. You will need to setup GOPATH in environmental settings in windows. You will want to go into Control Panel\System and Security\System From there on the left hand side click "Advanced system settings". A window will open and you need to click Environment Variables.
144
-
7. Under System Variables click New. For Variable name use GOPATH and Variable value C:\Go\
147
+
3. Download and install Go 1.11 or newer. https://golang.org/dl/
148
+
4. Download and install NodeJS 64-bit or 32-bit depending on your operating system, most users need 64-bit nowadays.
Once everything is installed and ready to go you will need to compile the source for windows
147
153
148
154
1. Open the folder where ever you unzipped from step #2 above.
149
155
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.
150
-
3. You will now need to install some dependencies for Go. You will need to open up a command prompt and one at a time type each of these and hit enter before typing the next one.
151
-
152
-
```
153
-
go get github.com/apexskier/httpauth
154
-
go get github.com/go-ini/ini
155
-
go get github.com/gorilla/mux
156
-
go get github.com/hpcloud/tail
157
-
go get github.com/gorilla/websocket
158
-
go get github.com/majormjr/rcon
159
-
```
160
-
161
-
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down left shift and right click an empty area of the folder. Then click "Open command windows here"
156
+
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"
162
157
4. Type this into the command prompt then hit enter:
163
158
164
159
```
165
160
go build
166
161
```
167
162
168
163
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.
169
-
6. From here you need to build the web front-end by going into your ui folder for me its C:\FS\factorio-server-manager\ui\ and again hold shift and left click in an empty area then select open command prompt here. You then need to type this:
164
+
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:
170
165
171
166
```
172
167
npm install
173
168
npm run build
174
169
```
175
170
176
-
7. Now execute the src file created in step #4 above
171
+
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)
177
172
8. You can now Visit [localhost:8080](localhost:8080) in your web browser to start using the Factorio server Manager
0 commit comments