Commit Graph

35 Commits

Author SHA1 Message Date
Cooldude2606
9bd699ebf1 Refactor legacy addons into Clusterio format (#413)
* Refactor custom start

* Refactor afk kick

* Fix use of assert get player

* Refactor chat popup

* Refactor chat auto reply

* Refactor help bubbles

* Refactor damage popups

* Refactor death markers

* Refactor deconstruction log

* Remove FAGC logging

* Refactor discord alerts

* Refactor insert pickup

* Refactor inventory clear

* Refactor extra logging

* Refactor nuke protection

* Refactor pollution grading

* Refactor protection jail

* Refactor report jail

* Refactor mine depletion

* Refactor degrading tiles

* Refactor station auto name

* Refactor spawn area

* Refactor fast deconstruction

* Bug Fixes
2025-12-02 18:34:24 +00:00
Cooldude2606
27a2feaae9 Refactor Selection Util (#409)
* Add Selection to ExpUtil

* Convert modules to use new lib

* Bug Fixes
2025-09-04 10:54:55 +01:00
Cooldude2606
8bcb65101b Switch to sp/mp init events (#404) 2025-08-30 20:39:54 +01:00
Cooldude2606
7ab721b4b6 Refactor some of the Guis from the legacy plugin (#399)
* Fix bugs in core and add default args to Gui defs

* Refactor production Gui

* Refactor landfill blueprint button

* Fix more bugs in core

* Consistent naming of new guis

* Refactor module inserter gui

* Refactor surveillance gui

* Add shorthand for data from arguments

* Make element names consistent

* Add types

* Change how table rows work

* Refactor player stats gui

* Refactor quick actions gui

* Refactor research milestones gui

* Refactor player bonus gui

* Refactor science production gui

* Refactor autofill gui

* Cleanup use of aligned flow

* Rename "Gui.element" to "Gui.define"

* Rename Gui types

* Rename property_from_arg

* Add guide for making guis

* Add full reference document

* Add condensed reference

* Apply style guide to refactored guis

* Bug fixes
2025-08-29 14:30:30 +01:00
Cooldude2606
aedc3cff6b Fix lint errors on new luals version (#384) 2025-04-06 17:05:40 +01:00
Cooldude2606
e34a320d97 Convert toolbar minus datastore 2025-01-30 00:08:44 +00:00
Cooldude2606
242545b007 Convert tasks, production, tools, and landfill 2025-01-30 00:07:09 +00:00
Cooldude2606
cc274595c7 Convert rocket info and autofill 2025-01-30 00:07:08 +00:00
Cooldude2606
1a17f11062 Multiple fixes for role commands
- Fix server being 'Guest' for commands
- Make autocomplete of arguments more intuitive
- Fix usage text for commands
2025-01-25 18:26:59 +00:00
516bdcabc4 Fix ExpUtil.extract_time_units (#362)
* Update module_exports.lua

* Add type annotation to prevent regression

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-01-21 21:05:52 +00:00
Cooldude2606
b666758a54 Fix time format with nil plural 2025-01-19 23:47:22 +00:00
Cooldude2606
1d1a03cf6a Fix issues with format
- Remove tailing 'join'
- Remove 'and' with single unit
- Pad time values to 2 digits
2025-01-19 00:30:27 +00:00
Cooldude2606
b29a141d5d Fix sudo command
- Fixes autocomplete using patterns by default
- Fixes required argument for sudo
- Fixes format player name for table type
2025-01-15 21:02:44 +00:00
Cooldude2606
0e6bce6975 Fix get_storage_for_stack errors with invalid stacks
Fixes `entity` is nil inside of `ExpUtil.get_storage_for_stack` #352
2025-01-13 21:00:01 +00:00
Cooldude2606
3e6ec6a867 Fix issues with util and commands
- Use rawget when testing for locale strings
- Use player index 0 for errors in rcon commands
2025-01-11 00:42:41 +00:00
60e34a0767 Add Assert For Issue 352 (#349)
* Update module_exports.lua

* Update module_exports.lua

* Link to issue rather than PR

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
2025-01-08 21:30:13 +00:00
Cooldude2606
4a087a3324 Fix cache for get_storage_for_stack 2025-01-03 19:12:17 +00:00
Cooldude2606
2e2e7c8518 Fix types on item transfer 2024-12-31 18:57:54 +00:00
Cooldude2606
15ea31df78 Fix output of locale color tag 2024-12-24 15:21:52 +00:00
e63ed17f47 Add zh locale to util (#19)
* Create zh-CN.cfg

* Create zh-TW.cfg
2024-12-24 14:27:03 +00:00
Cooldude2606
99ab54da0a Enable stricter type checks 2024-11-21 00:03:19 +00:00
Cooldude2606
b26ce578f2 Disable name style check due to open issue
https://github.com/LuaLS/lua-language-server/issues/2643
2024-11-19 23:48:13 +00:00
Cooldude2606
9aee1c425f Fix start, join, formatting, and locale issues 2024-11-19 22:37:49 +00:00
Cooldude2606
c61c931b58 Further improvements for ExpUtil 2024-11-19 22:36:04 +00:00
Cooldude2606
c9666ea6c5 Improved docs for exp_util.storage 2024-11-19 22:35:44 +00:00
Cooldude2606
64a7b34824 Update types in math include 2024-11-19 22:35:44 +00:00
Cooldude2606
90d0a122cd Fixed more breaking changes 2024-11-19 22:35:22 +00:00
Cooldude2606
88cd64e422 Update Command Lib 2024-11-19 22:34:57 +00:00
Cooldude2606
377fb69152 Migration for new helpers library 2024-11-19 22:34:39 +00:00
Cooldude2606
67a169ce0a Improve Async Module 2024-11-19 22:33:47 +00:00
Cooldude2606
f8c74c9dd3 Merge Game, FlyingText, Common and table 2024-11-19 22:33:27 +00:00
Cooldude2606
3145f7e904 No more warnings 2024-11-19 22:32:46 +00:00
Cooldude2606
292c1a1b68 Update all code styles 2024-11-19 22:29:35 +00:00
Cooldude2606
2a1206c498 Add startable legacy code 2024-11-19 22:09:54 +00:00
Cooldude2606
446e87b610 Add Clusterio Plugins 2024-11-19 21:51:13 +00:00