Daniel
8a85cfc8da
Added small web interface with the most vital stats
2021-07-12 22:05:54 +02:00
Daniel
86bd07666f
First working draft of inventory sync
2021-07-12 22:05:53 +02:00
Hornwitser
a578719fc5
v2.0.0-alpha.8
v2.0.0-alpha.8
2021-06-28 16:29:34 +02:00
Hornwitser
72e0b6a3b1
Merge pull request #397 from Hornwitser/fix-export
...
Fix export
2021-06-28 16:17:50 +02:00
Hornwitser
90a400b782
Handle mod not found in data export
...
Handle the case of the mod file not being found from the mod version.
This could happen if the naming scheme is weird or the mod is unpacked.
2021-06-26 17:59:48 +02:00
Hornwitser
80eae94fe1
Handle leading zeros in mod filenames
...
It's possible to put leading zeroes in the names of mod zip files which
cause the existing algorithm to find the mod zip from the mod version to
fail. Fix by listing the mods directory and fixing the version numbers
for any of the mods with leading zeros in them.
2021-06-26 17:59:48 +02:00
Hornwitser
5daa492f68
Emitt more useful error on parse error
...
Rethrow parse errors with the JSON content that failed to parse for JSON
content sent to Clusterio from Factorio.
2021-06-26 17:59:48 +02:00
Hornwitser
b43a181bf4
Fix JSON serialization in export mod
...
Fix incorrect serialization of control characters to \xHH escapes since
JSON only support \uHHHH escapes, and serialization of infinite and NaN
numbers.
2021-06-26 17:59:48 +02:00
Hornwitser
a31ba31567
Fix Docker build referencing the old mod branch
2021-06-26 17:42:34 +02:00
Hornwitser
b03b201c20
Merge pull request #395 from Hornwitser/rename-repository
...
Rename repository
2021-06-22 18:46:24 +02:00
Hornwitser
af995428bc
Rename clusterio/factorioClusterioMod repository
...
The mod was rebranded to subspace_storage quite some time ago.
2021-06-22 18:36:02 +02:00
Hornwitser
d79e30f9be
Rename clusterio/factorioClusterio repository
...
Drop the factorio part of the Clusterio repository name.
2021-06-22 18:36:02 +02:00
Hornwitser
f5228e6c2e
Merge pull request #396 from Hornwitser/fix-upload
...
Fix upload
2021-06-21 17:44:57 +02:00
Hornwitser
ea77e09058
Show upload progress
...
Add progress bar for file uploads in progress and notify user if the
upload fails.
2021-06-21 16:59:36 +02:00
Hornwitser
5ab4b95e3c
Support non-standard zip mime types in save upload
...
Browser like Chrome doesn't use the application/zip mime type when
uploading .zip files. Add support for application/x-zip-compressed to
the save upload endpoint.
2021-06-21 16:59:36 +02:00
Hornwitser
8dc1415404
Skip slaveUpdateEventHandler test on Windows
...
Due to the lack of a simple way to automate graceful shutdown of a slave
on Windows causing the test to be unreliable, skip it on Windows.
2021-06-21 16:59:04 +02:00
Hornwitser
122bab303d
Remove suggestion to use the 1.2.x branch ( #394 )
...
Development on 1.2.x has effectively been abandoned. Discourage
installing or working on 1.2.x.
2021-06-18 14:00:21 +02:00
Hornwitser
160051fc3c
Merge pull request #392 from Hornwitser/installer
...
Add Nodej.s based installer
2021-06-17 15:13:11 +02:00
Hornwitser
500baffb2b
Use installer in installation guide
...
Switch over to referencing the installer as the method for installing
Clusterio in the readme and contributing docs.
2021-06-16 21:04:58 +02:00
Hornwitser
4c77f5ac31
Add installation script
...
Provide a create package for the clusterio npm org which gathers the
necessary details to install a working cluster either as standalone or
as separate nodes.
2021-06-16 18:56:37 +02:00
Hornwitser
8ad518e7b6
v2.0.0-alpha.7
v2.0.0-alpha.7
2021-06-16 13:08:58 +02:00
Hornwitser
1faf6df5a3
Merge pull request #390 from Hornwitser/alpha-7
...
Alpha 7 preparations
2021-06-16 13:06:30 +02:00
Hornwitser
fc08438164
Add generate slave token button
...
Add a generate slave token button to the web interface and modify the
generateSlaveToken message and corresponding ctl command to have the
slave id be optional. The random id is the desired behavior when adding
a slave with the installer, as it'll ask for the token for the new slave
and deduce the id from the token.
2021-06-15 14:46:44 +02:00
Hornwitser
cc562a451e
Fix create instance modal
...
Fix copy and paste bug in the name check for the create instance moddal.
2021-06-15 14:25:45 +02:00
Hornwitser
782e93f4a1
Add changelog entry for #380
...
Add entry in CHANGELOG.md for the save management feature.
2021-06-15 14:24:35 +02:00
Hornwitser
cf1e333191
Add bootstrap command to generate slave token ( #389 )
...
To simplify the standalone installation add command to create a slave
token without having to start up the master server.
2021-06-14 12:08:24 +02:00
Hornwitser
31f1099dc0
Expect error loading configs ( #388 )
...
Rethrow error loading configs as StartupError as these are most likely a
result of user error.
2021-06-14 12:07:59 +02:00
Hornwitser
ddaaf15b2e
Merge pull request #383 from Danielv123/documentation-updates
...
Documentation updates
2021-06-12 15:15:19 +02:00
Hornwitser
a6cafeb5c6
Merge pull request #386 from Hornwitser/instances-page
...
Instances page rewrite
2021-06-12 15:15:04 +02:00
Hornwitser
9b34b949a6
Accept invalid IDs in useSlave and useInstance
...
Gracefully handle invalid IDs in useSlave and useInstance as this is
necessary when when the ID isn't known by the component using the hook,
since it can't conditionally call the hook.
2021-06-10 10:26:40 +02:00
Hornwitser
82c3d27bff
Rewrite instances page
...
Render the table in the instances page using an antd Table component
directly and feed it the data via an automatically updating list of
instances.
2021-06-10 10:26:40 +02:00
Hornwitser
0e9893fcb6
Fix create save modal
...
Fix the wrong variable being passed as mapSettings and clear the form
after successfully creating the save.
2021-06-10 10:26:40 +02:00
Hornwitser
f37c387d52
Fix instance deleted status not being sent out
2021-06-10 10:26:40 +02:00
Daniel
7a49e8aa15
Merge pull request #385 from Hornwitser/fix-command-after-stop
...
Fix subspace storage sending commands during stop
2021-06-10 06:58:20 +02:00
Daniel
c80be802d1
Merge pull request #384 from Hornwitser/test-fixes
...
Fix tests on Windows and remove internet requirement to pass
2021-06-10 06:54:52 +02:00
Daniel
ff9b05fc85
Merge pull request #382 from Hornwitser/slave-updates
...
Add slave update subscriptions
2021-06-10 06:50:03 +02:00
Hornwitser
55f3dac9b6
Fix integration tests requiring internet to work
...
When factorio starts up with with the require_user_verification setting
turn on it tries to obtain a server padlock from the matchmaking server
and will fail if this does not succeed. Turn off user verification and
public visibility which require user verification both of which are on
by default for the integration tests so that they work without internet.
2021-06-09 14:53:33 +02:00
Hornwitser
1b082c6a25
Fix subspace storage sending commands during stop
...
Add logic to stop sending commands and wait for any pending commands to
complete during instance stop in subspace_storage. This should fix the
RCON connection lost errors printed in the console during stop.
2021-06-09 14:47:52 +02:00
Hornwitser
5b78a86166
Fix HttpCloser test on Windows
...
Double timeout for the refuse connnection test as it's taking 2 seconds
on Windows for some reason.
2021-06-09 13:28:18 +02:00
Daniel
7d40b086e4
Fix norwegian text in web interface
2021-06-09 09:48:47 +02:00
Daniel
59b2338891
Updated guide with commands to start from source
2021-06-08 08:20:40 +02:00
Daniel
af525c01ad
Added syntax highlighting to docs/writing-plugins
2021-06-07 14:00:21 +02:00
Hornwitser
2be91cbd3a
Add slave update subscriptions
...
Allow the web interface to listen for updates to the slave list and
apply it live to the places where slaves are shown in the web interface.
2021-06-02 16:19:18 +02:00
Hornwitser
cc438574ff
Merge pull request #380 from Hornwitser/save-management
...
Save management
2021-06-01 20:38:50 +02:00
Hornwitser
09e4256c18
Fix hang on missing/wrong Factorio version
...
Fix the start command hanging if the configured Factorio version for the
instance started is not available on the slave.
2021-06-01 16:38:58 +02:00
Hornwitser
a0f5864324
Copy save if the save to start is an autosave
...
Prevent potential data loss when starting an autosave by copying it
first. This avoids overwriting a random autosave slot when the server
shuts down after having loaded an autosave.
2021-06-01 16:38:58 +02:00
Hornwitser
12db0d5a84
Add download save feature
...
Add command and web interface button to download saves from instances.
2021-06-01 16:38:56 +02:00
Hornwitser
35f54a0ee8
Add delete save feature
...
Add command and web interface button to delete saves.
2021-06-01 16:32:58 +02:00
Hornwitser
2e314ff098
Add upload save feature
...
Add /api/upload-save endpoint that streams the data via the slave
assigned to the target instance to the instance saves directory, along
with a ctl command and web interface button to do the upload.
2021-06-01 16:27:02 +02:00
Hornwitser
0066a06107
Add findUnusedName to file_ops.js
...
Add function to find an unused name in a directory to lib/file_ops and
use it for finding an unused instance directory.
2021-06-01 11:22:22 +02:00