Skip to content

Conversation

@RedRafe
Copy link
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: WIP
  • Added Guide/Commands page: full list, breakdown & search of in-game commands (100+)
  • Added Guide/Server page: WIP
  • 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
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?


local search_field_name = Gui.uid_name()

local base_commands = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be possible to generate theses dynamically? Just thinking about maintenance effort to keep this update to date when adding new commands. We should at least be able to get the redmew commands dynamically given we have our own custom module for registering commands, and those are the ones that are most likely to change in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the base ones - not really, for two reasons:

  1. it is not known if a command is admin only or anyone can run it other than reading it from the official Wiki/testing it out in-game (I did both)
  2. the command-name/command-help are formatted differently

For RedMew's: yes, it could be posssible to keep it saved in the utils.command module & then have the list automatically populated from registered commands (only needs a few extra formatting steps but really doable)

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