1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00
Commit Graph

321 Commits

Author SHA1 Message Date
Matthew
6b9f6b68f4
Merge pull request #788 from plague006/event_view
Add event toggles to debugger
2019-02-21 16:51:12 -05:00
Matthew
74c11132a8
Merge pull request #702 from SimonFlapse/Train-AntiGrief
Added anti grief for trains
2019-02-21 16:39:08 -05:00
Matthew Heguy
184d5fa56d Add event toggles to debugger, increment version of debuggertron 2019-02-21 13:43:40 -05:00
Matthew Heguy
5c362be410 print_admins to use locale 2019-02-20 12:27:03 -05:00
Matthew
0f9ad4b93f
Merge pull request #773 from theorangeangle/oldsci
Toxic_science_jungle.lua
2019-02-20 02:43:31 -05:00
Matthew Heguy
ba5f05297f Change options to match style of others: opposite of defaults 2019-02-19 20:02:50 -05:00
Matthew Heguy
ca7d6edbd5 Add missing comment tag 2019-02-19 19:58:56 -05:00
Matthew
16fe4a7345
Merge pull request #742 from plague006/apply_lifecycle
Apply lifecycle
2019-02-19 14:13:28 -05:00
Matthew
5f283c90d8
Merge pull request #723 from plague006/entity_restriction
Add generic entity restriction module
2019-02-19 14:02:32 -05:00
grilledham
adb8936cd0 switched ipairs to normal for loop 2019-02-19 17:28:00 +00:00
grilledham
d07458bc84 local references in event and event core 2019-02-19 17:24:46 +00:00
plague006
0fe8c61886 Add recipe_locker
(cherry picked from commit 684fd03587c1a4c39d44afb406f86058514e901a)
2019-02-19 00:46:00 -05:00
plague006
8ccfe43cef Make lifecycle more readable. 2019-02-18 01:43:59 -05:00
plague006
7c29683b2e Split commands into their respective modules 2019-02-16 21:24:28 -05:00
Matthew
2b18c30949
Merge pull request #760 from grilledham/print_override
print override to own module
2019-02-16 18:16:25 -05:00
grilledham
03b81f4221 Switch to log to allow localized strings 2019-02-16 18:15:50 -05:00
grilledham
17d799224c print override to own module 2019-02-16 12:57:10 +00:00
Matthew Heguy
d6d4df26f0 Change command feedback and help text to use locale 2019-02-14 14:35:11 -05:00
Matthew Heguy
52a0622995 Use locale for new rank system 2019-02-12 20:23:20 -05:00
Matthew Heguy
c95c935003 Fix no color to player_print 2019-02-12 20:22:13 -05:00
Matthew Heguy
fe3a67e682 Add more functions for increasing/decreasing ranks, remove all prints 2019-02-12 20:22:13 -05:00
plague006
e4df3b34a4 Add timestamp to log 2019-02-12 20:22:12 -05:00
plague006
e0b59e5fe6 Many fixes and tweaks 2019-02-12 20:22:12 -05:00
Matthew Heguy
63bb4e6a83 improve table doc
add instructions for changing ranks in ranks
add missing config entry
refine regular and probation commands
2019-02-12 20:22:12 -05:00
Matthew Heguy
28daf88f21 Overhaul rank system, command, donator, add probation rank 2019-02-12 20:22:12 -05:00
Matthew
44765cd966
Update core.lua 2019-02-12 09:35:35 -05:00
Matthew Heguy
596f329337 Fix print_except 2019-02-11 12:08:23 -05:00
Matthew Heguy
4c0c7ed41c Fix lifecycle mistakes 2019-02-10 22:44:54 -05:00
grilledham
9a1cdfd512 gui_data 2019-02-09 17:57:55 +00:00
grilledham
8186395805 changed structure of gui.data 2019-02-06 21:20:27 +00:00
Matthew Heguy
98657c9308 Fix reward printout 2019-02-05 10:50:13 -05:00
plague006
e574a2dc36 Use lifecycle 2019-02-04 18:02:15 -05:00
plague006
7aec77239c Apply lifecycle to "if game " 2019-02-04 16:08:02 -05:00
Matthew
4a71fe9b82
Merge pull request #700 from plague006/data_cycle
Add _LIFECYCLE as an indicator of where we are in the data lifecycle
2019-02-04 15:39:25 -05:00
plague006
d6e8b145af Fix doc in info, expand doc task, fix MP check in player_create 2019-02-04 14:40:27 -05:00
plague006
8d35c61108 Add doc for task.lua 2019-02-04 13:07:40 -05:00
Matthew
b2b91caf4a
Merge pull request #726 from plague006/command_notifications
Add command notifications
2019-02-04 12:28:09 -05:00
grilledham
be84bd1349
Merge pull request #732 from linaori/pling-for-toast
Pling for toast
2019-02-04 16:48:23 +00:00
grilledham
7d7485e5b4 grilled's suggestions 2019-02-04 16:37:23 +00:00
plague006
dbbe8aa7ac Fix param names in event (nobody ever reads the doc) 2019-02-03 16:37:57 -05:00
Lynn
c2b3fcc4f7 Review feedback 2019-02-03 11:28:00 +01:00
Lynn
398927844e Player can use /setting-all to show all their values 2019-02-03 11:27:21 +01:00
Lynn
3ebd1f5f7b Allow players to change their notification volume 2019-02-03 11:27:20 +01:00
Lynn
0179a1d96d
Merge pull request #712 from plague006/table
Refine/add functions in Table
2019-02-03 11:17:24 +01:00
plague006
50e686e775 Cleanup, check for player 2019-02-03 01:01:32 -05:00
Matthew
61b4d04f00
Merge pull request #674 from plague006/fix/player_rewards
Deal with negative numbers in a sane way in player rewards
2019-02-02 17:45:16 -05:00
Matthew Heguy
65d538374f Fix doc 2019-02-02 14:19:29 -05:00
Matthew Heguy
88754b5521 Add/refine table searching functions 2019-02-02 14:19:29 -05:00
plague006
eb71109c5b Expand doc for deepcopy 2019-02-02 13:36:31 -05:00
plague006
0705a76ee0 Fix nested ifs 2019-02-02 12:11:31 -05:00
grilledham
ef9262abce Allow Debug.object_type to cope with LuaObjects that are invalid or do not have help function 2019-02-02 14:35:36 +00:00
plague006
950cfe10d3 Add command notifications 2019-02-01 20:46:12 -05:00
plague006
ddbae68baf Add color-redmew deprecation warning 2019-02-01 09:30:53 -05:00
plague006
47bafbac5c Remove eventcore dep 2019-02-01 09:22:14 -05:00
Matthew Heguy
7e6a632ebd Add _LIFECYCLE as an indicator of where we are in the data lifecycle 2019-01-30 19:39:11 -05:00
Matthew
214257b007
Merge pull request #716 from grilledham/debug_token
Debugger
2019-01-30 18:19:13 -05:00
grilledham
23e6d3815d debug mode 2019-01-30 22:16:44 +00:00
Lynn
6ac1062754
Merge pull request #704 from linaori/evolution-progress
Added a GUI element + toasts to notify of biter evolution
2019-01-29 19:04:22 +01:00
Matthew
5adf2c3dca
Fix calling obj.is_player before checking validity 2019-01-28 19:25:37 -05:00
Matthew Heguy
4dd4056592 Add get_player_from_any 2019-01-28 18:59:58 -05:00
Matthew Heguy
85a9c6d050 Add object_type() to Debug 2019-01-28 17:48:24 -05:00
Lynn
53fad1a75b Added a GUI element + toasts to notify of biter evolution 2019-01-28 21:21:33 +01:00
plague006
3d24f023c0 Remove deprecated tp commands
Refine messaging for deprecated commands
2019-01-27 16:44:45 -05:00
Matthew
129b6b031b
Merge pull request #677 from plague006/action_warnings
Action warnings
2019-01-27 15:24:36 -05:00
plague006
99f6f6893d Update doc 2019-01-27 15:23:52 -05:00
plague006
784983eb7d Fix doc 2019-01-25 13:16:25 -05:00
Matthew
87691f0fbd
Merge pull request #670 from plague006/table_get_random_dictionary_entry
Remove get_random, add get_random_dictionary_entry
2019-01-24 18:14:27 -05:00
Matthew Heguy
c210016999 Update docs 2019-01-24 16:11:02 -05:00
Matthew Heguy
d5be21a990 Chaaaaaaange places 2019-01-23 23:37:11 -05:00
Matthew Heguy
31266f60d4 Efficiency! 2019-01-23 16:19:52 -05:00
Matthew Heguy
2ce35ada6a Add action warnings 2019-01-23 15:54:46 -05:00
Matthew Heguy
eef70ac92f Deal with negative numbers in a sane way 2019-01-23 15:44:50 -05:00
plague006
f4ec6aa196 Remove get_random, add get_random_dictionary_entry, and may we never speak of it again. 2019-01-21 14:28:21 -05:00
Matthew
e88c72f972
Merge pull request #667 from grilledham/corpse_looting_message
Corpse looting message
2019-01-21 11:04:48 -05:00
grilledham
9a7a697bef return nil is player invalid 2019-01-21 15:54:34 +00:00
plague006
f86b46ef26 Fix typos 2019-01-21 01:53:15 -05:00
grilledham
7184d7c5e2 merge devople into terraforming_danger_ores 2019-01-16 20:50:51 +00:00
Matthew
3f8be3151a
Add redmew_surface (#631)
* Add redmew_surface

* Change map_layout to have all maps use redmew_surface

* Maps: switch hardcoded nauvis refs to redmew_surface

* Features: switch hardcoded nauvis refs to redmew_surface

* Per discussion, removal of RSO

* Changes to files based on linting warnings/errors

* ent_functions: remove functions from global scope, ignore remaining linting warnings (~100 remaining)

* borg_planet: ignore linting warnings (88 remaining)

* mazes refactored

* Changed global.lua so events are run in the order they are registered
2019-01-16 13:44:55 -05:00
grilledham
e7538bf797 added fast_remove to utils.table 2019-01-16 15:19:37 +00:00
Matthew
5dd9ce9f90 Remove math and table as globals. (#647)
* Remove math and table as globals.
Create exceptions for table.lua and math.lua to modify respective globals and add returns for respective globals.

* Fix lint errors from table and math
2019-01-15 14:27:48 +01:00
Matthew Heguy
3cbc7c4553 Change server color to yellow 2019-01-11 19:12:55 -05:00
Matthew Heguy
df125191c7 Fix bad copy paste? Improve doc 2019-01-11 15:52:25 -05:00
Valansch
7fa83bae6c Add Tetris (#605)
Somehow nailed everything on the first try. What a pro.
2019-01-11 13:31:23 -05:00
Matthew
f09ca708ee Change source option to full stack traceback option (#630) 2019-01-11 17:46:12 +01:00
Maik Wild
1eebea55e8 renamed fish_market.lua to market.lua and market_item to currency 2019-01-10 15:18:55 +01:00
Valansch
73a3b7756b
Merge branch 'develop' into event-fixes 2019-01-10 14:38:55 +01:00
grilledham
d74a9fc225 fixed not registering events bug 2019-01-09 22:46:36 +00:00
Matthew Heguy
63100e0590 Fix merge mistake 2019-01-08 12:15:14 -05:00
grilledham
53590ed280 fix typo 2019-01-07 20:05:23 +00:00
grilledham
0b3d796b60 extra documentation + fixed error for removing not registered handlers 2019-01-06 20:58:43 +00:00
grilledham
e57d34cfe2 added comment 2019-01-06 20:56:36 +00:00
grilledham
84597ea1fe Merge branch 'develop' of https://github.com/Valansch/RedMew into event-fixes 2019-01-06 12:40:39 +00:00
plague006
4c1a94c71e Change pointer for inspect 2019-01-05 12:38:37 -05:00
Lynn
afec58b440 Admins have regular permissions, commands should reflect this 2019-01-05 18:04:02 +01:00
plague006
8669330b90 Rename q and schedule back to queue and task 2019-01-04 15:02:16 -05:00
Matthew
2bd96d267d Add source of message to Debug.print (#623)
ENHANCE debug!
2019-01-03 21:04:09 +01:00
grilledham
ab347734e8 allow removeable event to be added on_init 2019-01-03 17:23:41 +00:00
Matthew
a84dcfdd91 Overhaul commands (#576)
* Split admin-only commands out of custom commands
Remove free item logging

* Overhaul commands remaining in custom_commands

* Overhaul commands in remaining files

* Change custom_commands to redmew_commands

* Remove follow.lua
2019-01-02 16:34:17 +01:00
Matthew
c2234505f3 Implement server-side color saving (#566)
* Implement server-side color saving

* Add set_and_return to core utils
2019-01-02 14:42:18 +01:00
Matthew Heguy
7bda4622a1 Add explanation of what core contains 2019-01-01 11:09:01 -05:00
Matthew
31a7b0c7f6 Document utils from factorio's util.lua (#611)
* Document utils from factorio's util.lua

* Change doc to match suggestion
2019-01-01 16:03:41 +01:00
Lynn
a62fed2b78
Merge branch 'develop' into market-gui-tweaks 2018-12-31 09:22:26 +01:00
plague006
494648f35c Change custom colors to presets 2018-12-29 12:39:20 -05:00
Lynn
91b4b0f007 Added a distance check for the Retailer market GUI to close 2018-12-29 14:09:26 +01:00
grilledham
d1f2eb5686 Event (#565)
* First pass at removable events

* added documentation

* added is_closure function

* fixed return multiple values

* is_closure now ignores _ENV
2018-12-28 17:21:45 +01:00
Matthew
012bcffb87 Add random_RGB to utils (#592) 2018-12-25 18:54:14 +01:00
Matthew
9282cc974a Add inspect to utils, change require pointer (#578) 2018-12-22 13:49:21 +01:00
Matthew
8d3c32e932 Add dump_env (#558)
* Add dump_env

* Create new global for env dump
2018-12-22 09:42:19 +01:00
Lynn
5cdb67979a Added some features to the market GUI (#564)
* Added some features to the market GUI

* Grouped inputs differently

* Use referenced table instead of copy
2018-12-22 00:39:18 +01:00
Matthew
bcf0c3e85d Fix issues with silly names (#559)
* Fix new LuaPlayer created on join.

* Change set_map_extra_info to add_map_extra_info

* Make silly_player and regulars compatible
2018-12-22 00:38:47 +01:00
Valansch
bbc90d3f28
Made tasks throw errors if _DEBUG (#567)
* Made tasks throw errors if _DEBUG
2018-12-22 00:37:00 +01:00
Valansch
e269656743
Fixed possible gui uid collision (#563)
* Fixed possible gui uid collision
2018-12-20 14:13:40 +01:00
Matthew
eb892a372e Add player_reward, add coins as reward for looking at info (#546)
* Add player_reward, add coins as reward for looking at info

* Remove table entries for completed rewards
2018-12-19 14:56:02 +01:00
Matthew
074ea00c54 Add regulars to potential train station names (#561)
* Add regulars to potential train station names

* Decrease odds of in-game player and regular, increase odds of backer

* Clarify that _player_ is not the player that placed the entity

* Specify random's use, cover case of nil random_player
2018-12-19 14:43:30 +01:00
grilledham
de8cf8760d no longer store top_elements in global 2018-12-16 10:58:28 +00:00
grilledham
6cc74b50e8 removed unused variables 2018-12-16 01:41:12 +00:00
grilledham
8bf193db70 fixed typo 2018-12-16 01:39:19 +00:00
grilledham
f45d6d5111 allow player to toggle top buttons visibility 2018-12-16 01:28:00 +00:00
Matthew
238f6b9d7b Rename task and queue (#535)
* Rename task and queue to q

* Threading to schedule

* processing_queue to q
2018-12-15 21:28:27 +01:00
Lynn
8e901a4674 Fixed missing format function 2018-12-09 19:24:08 +01:00
Lynn
0fbfe49b2f AlienEvolutionProgress to utils and uses prototype data 2018-12-09 19:18:16 +01:00
Matthew
c3d7876113 Overhauled day_night_cycle, creep_spread, and nightfall. Add Venus map. (#524)
* Added dead trees to starting area

* Add shuffle_table to table utilities

* Refine venus, terraforming, nightfall, day_night_cycle

* Overhaul day_night

* Cleanup from day_night overhaul
2018-12-09 16:50:16 +01:00
Lynn
35c916c9b4 Removed unused variables 2018-12-09 00:37:59 +01:00
Lynn
a9d40f74a9 Added a command-search command 2018-12-09 00:34:25 +01:00
Lynn
5e00d9b721 Reduced to a single command 2018-12-06 18:17:51 +01:00
Lynn
39a5b13928 Minor fixes in the config 2018-12-01 22:06:24 +01:00
Lynn
b48731ad50
Merge pull request #492 from plague006/extend_table
Add inspect and size to table util
2018-12-01 18:04:24 +01:00
grilledham
b350276472 fixed timestamp bug 2018-12-01 16:30:05 +00:00
Matthew Heguy
c0404c33ac Add inspect and size to table util 2018-12-01 00:53:54 -05:00
Matthew
55ae4ab093
Merge pull request #443 from iltar/new-command-wrapper
Added a new command wrapper to reduce boilerplate
2018-11-30 17:23:37 -05:00
Lynn
fcbae24ff0 table.size -> table_size 2018-11-30 19:29:06 +01:00
Lynn
cb3c9ba1d0 Fixed refactored util import 2018-11-30 19:25:05 +01:00
Lynn
bfe804e2f0 ipairs -> pairs 2018-11-30 19:21:46 +01:00
Lynn
1f99757654 Added a bit more documentation 2018-11-30 19:15:11 +01:00
Lynn
f88b05448e Using global print if server 2018-11-30 18:50:57 +01:00
Lynn
8cdf747a2e Improved debug logging and error reporting during development 2018-11-30 18:45:27 +01:00
Lynn
8c0874a10d Added support to capture excess arguments as sentence 2018-11-30 18:45:27 +01:00
Lynn
9d35776849 Server/Debug/Player only flags and Debug extraction 2018-11-30 18:45:27 +01:00
Lynn
bd1425956f Added admin check and aggregate errors 2018-11-30 18:43:37 +01:00
Lynn
1dcc5cefdc Ensured player can be nil in case of being the server 2018-11-30 18:43:37 +01:00
Lynn
eb7de9bc2e Added a new command wrapper to reduce boilerplate 2018-11-30 18:43:37 +01:00
grilledham
26e375ec7e extra timestamp functions 2018-11-30 15:55:27 +00:00
grilledham
2a2de3b32e timestamp helper util 2018-11-30 00:19:02 +00:00
Matthew Heguy
ae29ad21e5 Remove extraneous 'else' 2018-11-27 17:08:27 -05:00
Matthew Heguy
ae024c4e10 utils->core, list_utils->table, overhaul both and updated extant uses 2018-11-27 17:08:26 -05:00
Matthew Heguy
c7201e119b Rename utils and fix requires 2018-11-27 17:08:26 -05:00
Simon
22c21011ab Diggy - New leveling system (#402)
* Basic setup for Force Control

* Buffs transitioned to new level system

Implemented level up buffs (Also made a double value avaliable at certain levels)

Added experience for research, rocket launched, mined rocks

Removing experience on player death. 0.5% of total experience

Added total_experience to ForceControl.lua

Refactored util/game.lua

* Transfered market item unlocks

Made Market Items unlock through the force control system.

Removed stone from mined stone

* Initial conversion of market items to coins

* Started biter killing giving XP

* XP for killing enemies. GUI update

* Made ForceControl.remove_experience return the actual removed experience

* Got my head and mind back, also fixed progress bar saying long numbers

* Changed get_market()

* Brand new formula, CI review changes

* Update CHANGELOG.md
2018-11-24 10:45:43 +01:00
Matthew
b9e360ce3a Shift command logging to free_item_logging, fix cases of server as actor (#427)
Shift command logging to free_item_logging, fix cases of server as actor
2018-11-23 18:07:44 +01:00
Matthew
8fb9ae35d7 Add server print on admin_prints (#430)
* Add server print on admin_prints
2018-11-22 23:04:01 +01:00
plague006
0b2d6e98e9 Add some documentation to list_utils 2018-11-22 04:39:07 -05:00