Skip to content

Moderation update#1512

Merged
RedRafe merged 13 commits into
Refactorio:developfrom
RedRafe:moderation-update
Jan 10, 2026
Merged

Moderation update#1512
RedRafe merged 13 commits into
Refactorio:developfrom
RedRafe:moderation-update

Conversation

@RedRafe
Copy link
Copy Markdown
Contributor

@RedRafe RedRafe commented Jan 7, 2026

This PR implements 3 major changes:

  1. Added Moderator rank
  2. Reworked commands/utils to accomodate the new rank
  3. GUIs update & extension

Detailed explanation of each bullet point below.


Changes

1. Addition of Moderator rank

  • Added moderator rank to Ranks. Value = 25, between admin(30) and regular(25)
  • Added a color and localization for mod rank (yellow)
  • Decreased the required rank for some commands from admin to mod (only the ones needed to manage the game)

2. Rework of core libs to accomodate the new rank

  • Changed core utils to allow moderators to be considered as valid actors (not just admin-only)
  • Added commands: moderator-add/remove, mute/unmute, purge, trust-all, kick (admins & mods)
  • Added new custom event for the admin panel core module to allow children to react to its events
  • Added new APIs for admin panel core module for children to easily access those properties

3.A GUIs update

  • Updated RedMew's URL from redmew.com to refactorio.de in game (Wiki excluded)
  • Uniformed commands format
  • Updated RedMew Info panel (features/gui/info) with all features available: ranks, market, autofill, polls, tasks, shortcuts, paint brush, production HUD, train station teleport, score
  • Changed sprite for Tags feature from text to bookmark
  • Restyled map restart config window for admins with a grid
  • Uniformed topbar's tooltips for all features
  • Renamed "softmods" to "Features" in RedMew Info
  • Removed old localization entries from non-EN locales when wrong/unused

3.B GUIs extension

  • Added localization for all commands (debug-only excluded)
  • Added tooltip localization for all commands (debug-only excluded) & for admin panel usage
  • Added "Moderation Guide" section in Admin panel to provide support to all mods/admins
  • Added Guide/Ranks page: breakdown of each rank's permissions & tools
  • Added Guide/Moderation page: a wiki-like overview of all admin panel features
  • Added Guide/Commands page: full list, breakdown & search of in-game commands (100+)
  • Added Guide/Server page: list of useful console commands/procedures for admins to manage the server
  • Added Guide/Resources page: link to the github's wiki/moderation guide & our mission statement

Future works

  1. I'm marking this PR as a draft while I finish implementing: Guide/Moderation and Guide/Server (mainly wiki-style).
  2. Couple old modules have massive code repetitions in them that could be (maybe) simplified in the future (or not, certainly not in this PR).
  3. I'm considering if the Guide ("in-game wiki") page should be made available for everyone in game (or keep it mods/admins, probably not in this PR, but support for it will be in place)
  4. I will rework the style of the Guide to allow to open and keep on the side each page individually for cross reference instead of opening everything in a long scroll pane like it is presented now (before this PR gets merged).

Let me know if anything from the core functionalities/new functionalities needs better explanation or rework

Copy link
Copy Markdown
Collaborator

@grilledham grilledham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked through the code and looks great. Really appreciate the effort you have put into this. I'd be happy for it to merge as is, but I do I have a few comments/thoughts though.

I also didn't test it. Perhaps you can get Tigress to help test it?

Comment thread features/admin_commands.lua Outdated
Comment thread features/gui/admin_panel/moderation_pages.lua Outdated
Comment thread features/gui/admin_panel/functions.lua
@RedRafe
Copy link
Copy Markdown
Contributor Author

RedRafe commented Jan 8, 2026

Nevermind, the commands registered by all the modules loaded after admin gui are not listed. May need to revert last 2 commits or find a way to cache commands after control.lua finishes/first load of the page

@RedRafe RedRafe marked this pull request as ready for review January 9, 2026 16:46
@RedRafe
Copy link
Copy Markdown
Contributor Author

RedRafe commented Jan 9, 2026

I think I'm happy with the result. This is how it now works: Admin panel > Guide > Secondary pages (that can be kept open simultaneosly and closed individually). When closing the main window (with 'X' or ESC) all other secondary pages are closed too. Opening toggle button works too.

Screenshot from 2026-01-09 17-45-49

Future works:

  • expand on the wiki with all the buttons info
  • maybe spawn Admin panel a bit more on the left so there's more space, but whatever

@RedRafe RedRafe requested a review from grilledham January 9, 2026 16:53
Copy link
Copy Markdown
Collaborator

@grilledham grilledham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing stuff. I had a play around with it and it looks good to me.

@RedRafe RedRafe merged commit 02def31 into Refactorio:develop Jan 10, 2026
1 check passed
@RedRafe RedRafe deleted the moderation-update branch January 11, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants