bbassie
b86305db8c
Updated colors of the instance tag
2021-11-16 23:42:02 +01:00
bbassie
fe803a99ca
Instance status tag color changes
2021-11-16 21:50:21 +01:00
jake87
4612826664
spelling mistake
2021-11-16 21:43:59 +11:00
Hornwitser
a5a99e2ab1
Fix error when localhost resolves to ::1
...
Some systems may resolve localhost to ::1 while Factorio doesn't respond
to RCON connection over IPv6 loopback, this causes instances startup to
fail. Fix by using 127.0.0.1 instead of localhost.
2021-11-15 21:29:51 +01:00
Danielv123
56584a25c8
Remove old pipeline
2021-11-15 10:26:32 +01:00
Danielv123
03ba7cb68c
Added new testing pipeline
2021-11-15 10:20:18 +01:00
jake87
cc605250db
removed final debugging helpers
2021-11-14 20:55:16 +11:00
jake87
ae34a86cbf
Removed debugging prints, and added removing of tmpFile
2021-11-14 20:54:27 +11:00
jake87
86de5ae151
Fixed config editing, fixed child spawning, fixed config setting
...
Using an event emmiter, the fields can now be set correctly in the
master config. Null values are now handled correctly, and numbers are also set
correctly.
2021-11-14 20:51:06 +11:00
jake87
bcc25047f2
Readded config file editing, working on config file value setting
2021-11-13 22:35:15 +11:00
bbassie
f5ce0a8a8c
Missing import
2021-11-07 22:00:27 +01:00
bbassie
55bbc10986
Added slave status indicator tag to slave details page
...
Co-authored-by: Danielv123 <danielv@live.no >
2021-11-07 21:54:10 +01:00
bbassie
4fef2d8143
Fix message null issues
2021-11-07 21:35:48 +01:00
bbassie
4432a689bb
Fix instance list
2021-11-07 21:31:56 +01:00
jake87
6013fcd528
Started rework of file loading system
2021-11-06 17:04:34 +11:00
jake87
71fb8541d5
Added more comments, added quotes around strings
2021-11-06 14:32:13 +11:00
jake87
4398d33fea
Fixed definitions to be consistant with bullet points.
2021-11-05 23:32:18 +11:00
jake87
92814aa9b3
Reworked to use config list's grabber system
...
Also now using the system described by Hornwitser, in using
libConfig.MasterConfig.groups to get definitions. Now all that's needed
is to re-read the updated data back into clustorio.
2021-11-05 23:24:13 +11:00
bbassie
69d4a883ad
Add copy public address button
2021-11-04 22:25:53 +01:00
bbassie
2e5617c4b5
Fix instance port and status update
...
Master was not recieving instance status after restart. Instead only a status from the slave but the slave doesn't store the full instance status.
2021-11-04 22:25:36 +01:00
bbassie
f930ed36a0
Changed to using the real factorio port
2021-11-04 21:29:53 +01:00
bbassie
83b720eade
Added public_address field to lists
...
- InstanceList
- SlavesPage
Added public_address field to messages
- slaveProperties
- instanceProperties
2021-11-04 01:39:28 +01:00
bbassie
c3a1b420ea
Added InstanceStatusTag react component
...
- Modified InstanceList & InstanceViewPage to use it
2021-11-04 01:36:56 +01:00
Hornwitser
c889d8f325
Ignore SessionLost from updateInstances ( #422 )
...
Don't shutdown the slave if the connection session is lost during
updateInstances. Resolves #418 .
2021-11-03 16:27:21 +01:00
Hornwitser
e23d07e965
Use safe file writing pattern ( #421 )
...
Write new file contents to a temporary file and then rename over the
target file to avoid data loss in the unlikely event there's an error
writing the new file contents or the process is interrupted.
Resolves #416 .
2021-11-03 16:14:18 +01:00
jake87
08a8182173
Reworked to use throw error, added system for getting config groups
...
Now using `throw error` to exit out, instead of exit(1). Reworked config
get system to use the map of configs in libConfig.MasterConfig.groups .
2021-11-01 20:40:44 +11:00
Hornwitser
9e7a7a602f
Merge pull request #420 from Hornwitser/slave-page
...
Slave page
2021-10-31 16:53:34 +01:00
Hornwitser
6e5e5f0aeb
Show log console for master and slaves in web UI
...
Rename InstanceConsole to LogConsole and use it to show logs for the
master server and slaves as well.
2021-10-31 10:41:25 +01:00
Hornwitser
7769c1f89e
Add SlaveViewPage
...
Add slave overview page displaying instances assigned and some basic
properties.
2021-10-31 10:41:25 +01:00
Hornwitser
a2a5cf6d4c
Warn on instances with duplicated ids
...
It's possible that someone copies an instance folder and don't change
the instance id in it. Emit a warning in case this happens.
2021-10-31 07:26:56 +01:00
jake87
77e9b929dc
Testing why config not being returned correctly
2021-10-30 12:31:20 +11:00
jake87
b6306031dc
Reworked some of editor logic to work with async functions
...
Now async functions can be used after the editor returns, as before they
couldnt be used due to .on being non-async.
2021-10-29 22:21:46 +11:00
jake87
0564eee400
Experementing with the master config
...
no important work, commit for my own sake
2021-10-29 22:09:01 +11:00
jake87
f548ac2ecc
Added more logic into ctl.js
...
Now prints out a basic approximation of the final look of the config
file; with comments on the function of each part.
2021-10-29 20:42:32 +11:00
jake87
c9fd99589b
Added more selection options for the edit
...
ctl master config edit [editor]
is the new structure; it can take an optional editor, and will prio this
editor over any other editor, such as one set by env vars. Generally,
the prio goes like this: argv supplied editor > EDITOR env var > VISUAL
env var. Things needing to be done are marked with a TODO.
2021-10-27 20:16:37 +11:00
jake87
23d8a819af
Added basic framework for edit command
...
Implimented framework for edit command, including ability to get a temp
file, open an editor on the file, then resume code execution once the
editor exits.
2021-10-26 21:23:23 +11:00
jake87
14b3331c8e
Added basic logic for config edit command
...
Added groundwork for the ctl master config edit command,
including temporary file grabbing and JSON config fetching.
2021-10-26 20:46:24 +11:00
jake87
f266c441db
Fixed async logic within lib/file_ops.js
2021-10-26 20:46:24 +11:00
jake87
ed73e3ad1e
Fixed variable naming issue with file_ops.getTempFile
2021-10-26 20:46:05 +11:00
jake87
4f9a8fb45c
Rewrote temp function to be safer, using findUnusedName
2021-10-26 17:50:39 +11:00
jake87
6910737374
Added function in lib/file_ops.js to return a temp filename with salt
2021-10-25 21:58:56 +11:00
Hornwitser
bdfe8e630e
v2.0.0-alpha.10.b hotfix for installer
v2.0.0-alpha.10.b
2021-10-05 20:19:58 +02:00
Hornwitser
66719375af
Fix installer not setting address and ctl config ( #417 )
...
Somehow the step of automatically obtaining the right address to apply
to slave.public_address, and asking for the master url and token for ctl
installations was implemented but the code to actually set it in the
relevant config was forgotten.
2021-10-05 20:05:44 +02:00
Hornwitser
ef3d5209eb
v2.0.0-alpha.10
v2.0.0-alpha.10
2021-10-01 17:59:16 +02:00
Hornwitser
e4eac3f9ad
Merge pull request #415 from Hornwitser/small-things-6
...
Small things 6
2021-10-01 17:55:07 +02:00
Hornwitser
107284e796
Fix > and < being present in docs
...
< and > must apparently not be escaped inside backticks.
2021-10-01 01:52:18 +02:00
Hornwitser
bad86a5ff2
Fix inventory_sync uploading editor mode
...
The serialization and deserialization of editor mode is not supported by
the current code, and while the download correctly checked for the
player being in editor mode, the upload did not check for the player
being in editor mode causing players in editor mode to break. Fix by
adding check in upload_inventory.
2021-10-01 01:52:18 +02:00
Hornwitser
034ca4c250
Fix research_sync sending commands before instance start
...
Fix commands syncing researces being sent before the instance is started
up, and potential desync of research progress as a result of out of
order execution of RCON commands sent.
2021-10-01 01:52:18 +02:00
Hornwitser
2b101d594a
Fix statistics_exporter sending commands before start
...
Fix statistics_exporter potentially sending commands before an instance
is started when metrics are collected.
2021-10-01 01:52:18 +02:00
Hornwitser
c40362fa7f
Add sendOrderedRcon for plugins
...
Add BaseInstancePlugin method for sending RCON commands in order to
simplify logic in plugins that depend on commands being delivered in
order.
2021-10-01 01:52:18 +02:00