Hornwitser
c79ced28dd
Merge pull request #468 from Hornwitser/installer-fixes
...
Installer fixes
2022-07-19 21:23:09 +02:00
Hornwitser
2408dc8985
Remove obsolete Factorio download instructions
...
On Linux the installer offers to correctly download and install the
latest version of Factorio. Remove no longer needed instructions for
how to do it incorrectly.
2022-07-18 20:10:08 +02:00
Hornwitser
2953eb17d6
Refuse installing Clusterio as root
...
I have seen multiple people have installed Clusterio as the root account
and then run it as root when tasked with setting up Clusterio on Linux.
Make this mistake harder to do by refusing to install as root by
default.
2022-07-18 20:05:37 +02:00
Hornwitser
c9619397b6
Use current user's group for systemd files
...
Generate systemd files using the current user's main group name instead
of nogroup as the latter is not present in all systems.
2022-07-18 19:39:01 +02:00
Daniel
c8a6b8094e
Merge pull request #452 from Danielv123/slave-guided-setup
...
Added setup guide for slaves from web interface
2022-07-16 16:51:41 +02:00
danielv
7ee9c60e38
Add syntax highlighting to codeblock
2022-07-16 15:59:57 +02:00
danielv
4b0a33174d
Added setup guide for slaves from web interface
2022-07-16 15:59:27 +02:00
Hornwitser
db27650b60
Merge pull request #467 from Hornwitser/user-ui-update
...
User UI update
2022-07-16 15:11:21 +02:00
Hornwitser
aadf24db99
Add test for sending user ban_reason
2022-07-16 14:30:06 +02:00
Hornwitser
2496e756f1
Fix display of stats in Web UI when empty
2022-07-15 16:14:04 +02:00
Hornwitser
5ba9f94b7e
Only show admin/whitelist switches if usable
...
Since the admin and whitelist status is shown with a tag next to the
name it's no longer necessary to show the admin and whitelisted switches
when the user does not have permission to use them.
2022-07-15 16:14:04 +02:00
Hornwitser
9fa41e37f3
Show ban reason in Web UI
...
Show and update live the reason given for someone being banned in the
Web UI.
2022-07-15 15:57:45 +02:00
Hornwitser
d184b9db81
Merge pull request #466 from Hornwitser/player-tracking
...
Per player statistics
2022-07-13 22:49:33 +02:00
Hornwitser
08e7434d24
Add command to extract play time from save
...
Add command that extracts play time (and players) from the currently
running save to the recorded instance statistics. This is useful for
getting correct play time statistics when an existing save game is
imported.
2022-07-13 00:31:02 +02:00
Hornwitser
0245ccd16c
Share player stats with master server
...
Send the per player stats with the player event updates to the master
server and expose it to the Web UI and ctl interfaces.
2022-07-12 23:03:50 +02:00
Hornwitser
deb6842a4d
Record all players as leaving on server exit
...
In the case of shutdown the Factorio server will not notify the
currently online players as leaving the game. Notify the master server
that all remaining online players quit the game in this case.
2022-07-12 23:03:50 +02:00
Hornwitser
ac62f66aa1
Move PlayerStats to separate data class
2022-07-12 23:03:50 +02:00
Hornwitser
097827b515
Update linter for ES2022 syntax
...
Allow modern JavaScript syntax including class property declarations
since Node.js v12 supports this.
2022-07-12 17:29:22 +02:00
Hornwitser
9a3edc8c11
Fix web build broken by assert and buffer imports
...
Not sure what made it break, but it seems like it shouldn't have worked
to begin with.
2022-07-08 01:00:54 +02:00
Hornwitser
096f338277
Add live updating of users
...
Provied a subscription for user updates and send updates whenever the
details of a user account is changed.
2022-07-08 01:00:54 +02:00
Hornwitser
db562ce6a0
Provide reason for player leaving
...
Expose the reason for why a player is leaving a server in playerEvent.
2022-07-08 01:00:54 +02:00
Hornwitser
8017497bdd
Merge pull request #464 from Hornwitser/player-time-autosave
...
Player online autosave pool
2022-06-30 14:33:19 +02:00
Hornwitser
3cb9843f23
Add player online autosave pool
...
Add separate autosave pool for autosaves that have had players online
since the previous autosave.
2022-06-30 01:03:29 +02:00
Hornwitser
a063cf2db5
Track player stats on instances
...
Track which players are online and record basic stats for each player on
each instance including when save patching is disabled.
2022-06-29 21:35:56 +02:00
Hornwitser
72357dfd23
Fix wrong action in load scenario error message
2022-06-29 21:25:25 +02:00
Hornwitser
0df6701326
Use consistent path for saves in Instance
2022-06-29 21:25:25 +02:00
Hornwitser
f5e558cb2f
Sneaky tab removal
2022-06-29 21:25:25 +02:00
Hornwitser
995f0934ed
Merge pull request #463 from Hornwitser/player-time-autosave-bugfixes
...
Player time autosave bugfixes
2022-06-24 13:08:35 +02:00
Hornwitser
ef74436cde
Fix jsdoc for #462
...
Fix references and missing files from the jsdoc output after the
refactor in #462 .
2022-06-23 16:57:52 +02:00
Hornwitser
51c025c79b
Fix Log out button not logging out
2022-06-23 16:57:52 +02:00
Hornwitser
12767fd58c
Merge pull request #462 from Hornwitser/minor-refactor
...
Minor refactor
2022-06-23 16:40:14 +02:00
Hornwitser
826d89c7dc
Fix race condition on creating instance directory
2022-06-23 00:09:28 +02:00
Hornwitser
393652c1d9
Allow instance names to be any string
...
Replace bad characters with underscore instead of rejecting bad instance
names.
2022-06-23 00:08:23 +02:00
Hornwitser
246ce73d94
Break commands out of ctl.js
2022-06-22 22:33:54 +02:00
Hornwitser
951bad4134
Refactor slave code
...
Move classes from slave.js monolit into their own source files.
2022-06-22 22:16:58 +02:00
Hornwitser
ae17b00b6f
Hide start button based on permissions
...
Hide the start/stop buttin in instance view if the current used does not
have permission to use it.
2022-06-22 21:26:41 +02:00
Hornwitser
36808b34de
Merge pull request #461 from Hornwitser/small-things-8
...
Small things 8
2022-06-20 13:26:14 +02:00
Hornwitser
105f99ced3
Preserve entered vehicle on inventory sync
...
Save vehicle the player is driving before downloading the inventory and
restore the player position to this vehicle if possible.
2022-06-19 19:51:22 +02:00
Hornwitser
430a64722e
Use empty slots as end for logistics requests
...
Count up to 100 empty slots past the last seen slot with data in it
before stopping to look for personal logistics slots in inventory_sync.
Allows unlimeted amount of logistics request slots to be used for
heavily modded games.
2022-06-19 17:03:08 +02:00
Hornwitser
7e9604a254
Fix LogConsole scroll anchor trasmutation
...
Fix react mutating the scroll anchor element in LogConsole into a log
line and breaking scroll anchoring to the bottom as a result.
2022-06-19 16:38:02 +02:00
Hornwitser
5369f283d7
Merge pull request #460 from Hornwitser/cache-web
...
Cache static web files
2022-06-19 15:34:19 +02:00
Hornwitser
654465e4eb
Fix LogConsole using duplicated keys
...
Fix past lines loaded from the log containing keys that clash with new
items logged.
2022-06-09 00:53:12 +02:00
Hornwitser
c5a0c0a873
Migrate to new <Menu> syntax
...
The use of <Menu.Item> children to <Menu> is deprecated, convert
existing code to use the new items={...} syntax.
2022-06-09 00:52:27 +02:00
Hornwitser
16a466aed0
Merge pull request #458 from Hornwitser/replace-npm
...
Replace npm and lerna with pnm
2022-06-09 00:11:24 +02:00
Hornwitser
3e836c1dd3
Fix web interface breaking when disabling plugins
...
Fix incorrect logic to set up plugins in the web interface causing an
emptry plugin to be atempted to be loaded when a plugin was disabled.
2022-06-08 23:26:33 +02:00
Hornwitser
ddf15f9b92
Add option to turn on authentication server bans
...
Factorio 1.1.40 added a feature to use a centralized banlist maintained
by Wube. For the dedicated server this needs to be turned on with the
command line flag --use-authserver-bans.
2022-06-08 22:43:58 +02:00
Hornwitser
54897c1447
Fix deserializing to a smaller inventory
...
Void excess slots when deserializing an inventory to a target that has
fewer slots than what was serialized. This fixs inventory sync failing
when a stored inventory has trash slots in use but the player does not
have the slots unlocked.
2022-06-08 22:26:08 +02:00
Hornwitser
2a221456d9
Fix exported data loading in web interface
...
Store exported data files with a hash in the filename to allow the new
caching stategy for static files to work with it and provide a manifest
for the web interface to find the exported files with.
2022-06-08 21:01:36 +02:00
Hornwitser
48a57bf16c
Use name of the cluster as web title
...
Set the title attribute of the web interface page to the name of the
cluster.
2022-06-08 21:01:36 +02:00
Hornwitser
8742b4127c
Improve pre-loaded feedback of website
...
Render the web interface as early as possible with a black background
and show a message to indicate whether the interface is actually loading
or if an error occured loading the main bundle.
2022-06-08 21:01:36 +02:00