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

958 Commits

Author SHA1 Message Date
grilledham
15001b9e6b
Fix dumping corpse for banned players. (#1269) 2021-12-29 16:28:39 +00:00
Jayefuu
25f88f09f1
Eating fish causes a little flying text to show other players you're healing (#1268) 2021-12-26 16:35:59 +00:00
grilledham
f78db8a966
Add poison-cloud to entities_allowed_to_bomb. (#1267) 2021-12-23 20:19:49 +00:00
grilledham
355844bfb3
Add 'artillery-flare' to entities_allowed_to_bomb. (#1256) 2021-11-21 20:59:47 +00:00
jacobwatkinsgit
774236a670
qol when mining an inserter, pick up item an inserter dropped on the ground (#1250)
- Added qol so when an inserter is mined, an item put on the ground by the inserter is also picked up. enabled by default, tested and should work properly.
- inserter drops pickup, fix get_set_alt_on_create typo.
2021-11-16 20:32:14 +00:00
James Gillham
b5525604af Include 'assembling-machine' and 'furnace' for loader qol. 2021-08-07 14:32:17 +01:00
James Gillham
26b84037b1 Report script kicks and bans to moderation-log channel. 2021-06-26 16:21:54 +01:00
James Gillham
2e749601a9 Remove test code + increase name textfield width. 2021-05-15 12:24:56 +01:00
James Gillham
ca381aa289 Add config-restart command.
- change Restart command to use server.start_game (offers setting the mod pack).
- Change danger ores and crashsite maps to use the new restart command.
2021-05-15 11:21:46 +01:00
James Gillham
66883a87b3 Change game.players -> game.get_player 2021-05-15 11:21:46 +01:00
James Gillham
832848ac5b Set last user when connecting loader. 2021-05-12 17:21:18 +01:00
James Gillham
4db09f98f4 Require admin for poll command. 2021-05-08 20:29:32 +01:00
James Gillham
cc1bc3ba27 Require landfill research to remove landfill. 2021-03-31 17:05:25 +01:00
James Gillham
ef4be55e1a Add resource-layer to landfill remover collision mask. 2021-03-31 16:19:19 +01:00
James Gillham
6442eab80c Require auto trusted to use landfill remover. 2021-03-31 15:24:01 +01:00
James Gillham
6f1edb7a63 Add _NO_CUTSCENE flag 2021-03-31 12:01:17 +01:00
James Gillham
680580438c Add skip cutscene player setting. 2021-03-30 20:21:57 +01:00
James Gillham
f6ea2cbabc Remove corpse pings + Refactor redmew_settings. 2021-03-30 12:56:21 +01:00
James Gillham
d6a60bf09b Snap loader to container when built + extra cases for rotate loader. 2021-03-17 21:36:14 +00:00
James Gillham
ac78f22277 Refactor corpse features:
- Turn dump_offline_inventories on by default.
- Reduce corpse_util to storing and removing corpse tags.
- Add death_corpse_tags which handles adding tags for dead players. This prevents dump_offline_inventories from needing a dependency on what is now death_corpse_tags.
- If a player dies with no items, don't create a map tag and remove the corpse.
- Changed the message slightly for dump_offline_inventories to make it consistent with the other corpse messages.
2021-03-08 21:09:31 +00:00
James Gillham
8b429eed8c Add check that player is offline before dumping inventory.
I accidentally removed the check when testing and forgot to put it back in :(
2021-03-04 22:20:29 +00:00
Jayefuu
e2f164cadc Added feedback message. 2021-03-04 08:23:14 +00:00
James Gillham
02e2b59103 dump_offline_inventories fixes. 2021-03-03 20:13:25 +00:00
Jayefuu
e9d197999c Update dump_offline_inventories.lua 2021-03-03 19:09:30 +00:00
Jayefuu
a4d9707f42 WIP 2021-03-03 18:52:30 +00:00
Jayefuu
c0da8fbdc7 Removed some debug messages 2021-03-02 21:09:19 +00:00
Jayefuu
031c62f27b Fixed LUA checks 2021-03-02 21:01:39 +00:00
Jayefuu
c00fcd6a77 Update corpse_util.lua 2021-03-02 21:00:02 +00:00
Jayefuu
be9d32411f oops 2021-03-02 20:47:04 +00:00
Jayefuu
27ba6e412f Dump player inventories (not armor and weapons) after 15 mins 2021-03-02 20:46:42 +00:00
Jayefuu
81f10b1fe7 Limiting /zoom command to admins only
Would prefer a fast fix as players are abusing the fuck out of it in crash site after one of them found it :(
2021-02-27 19:18:31 +00:00
Jayefuu
329dfb346b Updated as per grilledham's comments. 2021-02-19 13:33:13 +00:00
Jayefuu
21fbde82fc Fixed coins ins chest count bug
- Removed events.on_player_mined_item from outpost_builder because we don't want to add coins every time they mine and it's duplicated in player_stats.
- Removed events.on_player_mined_item from player_stats because it doesn't tell us what entity the items came from.
- Added coin tracking to events.on_pre_player_mined_item event instead. Checks if the mined item was a chest with coins in it and adds to the player stats if so.
- Tested that coins from trees and rocks still track when market is enabled
- While I was at it, added a pretty coin floating text for when RNG gives coins from mining trees/rocks
2021-02-18 13:43:50 +00:00
James Gillham
0c63769c38 Fix error in player stats when robot built entity.
When the robot_owner is a spidertron there is no player for the owner and calling the player property would error, now we check that the owner is a character first.
2021-02-14 10:51:06 +00:00
grilledham
a3a389ff37
Merge pull request #1173 from grilledham/report_auto_bans
Send auto bans to discord moderation log channel.
2021-02-14 10:39:17 +00:00
Jayefuu
6851e36def
Update features/player_stats.lua
Co-authored-by: grilledham <jrdgillham@gmail.com>
2021-02-13 17:47:34 +00:00
James Gillham
9748482446 Send auto bans to discord moderation log channel. 2021-02-13 15:42:59 +00:00
Jayefuu
89f82d689f
Merge branch 'develop' into fish_munchers 2021-02-12 08:49:59 +00:00
grilledham
c26148b1e7
Merge pull request #1146 from Refactorio/entities_built_fix
Added player_built and player_crafted to the crash site awards ceremony
2021-02-11 19:26:34 +00:00
Jayefuu
d386dea2bf Updated as per suggestions 2021-02-11 11:25:39 +00:00
Jayefuu
826d5d3b99 Fixed logic error 2021-02-09 22:34:01 +00:00
Jayefuu
c2f2bf49e1 Updated with suggested corrections 2021-02-09 22:30:33 +00:00
Jayefuu
917c21da6a Sure I fixed this already :( 2021-02-09 19:53:27 +00:00
Jayefuu
f86ff01b31 Stupid lua checks 2021-02-09 18:14:59 +00:00
Jayefuu
5254a2ccf7 Fixed lua checks 2021-02-09 18:10:09 +00:00
Jayefuu
bb2da07962 Added recording and award for how many fish each player eats/uses 2021-02-09 18:08:03 +00:00
Jayefuu
1a72529e75 Updated behaviour for robot built entities
- Players get an increment to entities built when a robot they own builds something
- Players don't get an increment if they placed the blueprint and the base's roboport con bots build the entity OR if another players robots do the building.
2021-02-09 17:36:54 +00:00
James Gillham
71f6fede74 Add combat robots to corpse remover. 2021-02-06 15:56:03 +00:00
James Gillham
480f1dd888 Updates to sanitise_message. 2021-01-30 16:20:13 +00:00
Jayefuu
0430bfc64b Fixed bold titles and added sanitisation attempt 2021-01-29 09:06:51 +00:00
Jayefuu
48ca840671 Updated and tessted prettier line formatting 2021-01-28 09:14:32 +00:00
James Gillham
9ecf53d76a Add Player online time to discord report/jail embeds. 2021-01-27 21:27:41 +00:00
Jayefuu
9ce26844f1
Merge pull request #1153 from Refactorio/accessibility_notifications
Added white text above player when mentioned in chat
2021-01-23 17:41:42 +00:00
Jayefuu
f9e5752dd0 Removed old comments 2021-01-23 17:38:34 +00:00
Jayefuu
75df3186b8 Update chat_triggers.lua
- Changed font size and line_to_live slightly on feedback from nibu and diffie
- Added check for if player is dead. Assume that if they're dead they're probably not distracted and will pay attention to chat.
- Removed us of game.get player and replaced with player.name
2021-01-21 14:46:18 +00:00
James Gillham
a46435ec00 Fix desync when changing global.config.biter_corpse_remover.max_queue_size 2021-01-20 17:10:21 +00:00
Jayefuu
476b07a2ab Fixed locale issues 2021-01-20 08:48:08 +00:00
Jayefuu
c88520cccb Update chat_triggers.lua 2021-01-19 13:37:00 +00:00
Jayefuu
5a585e38d9 Update chat_triggers.lua 2021-01-19 13:36:25 +00:00
James Gillham
98b39b93bf Updated corpse remover to remove worms. 2021-01-12 16:51:30 +00:00
Jayefuu
0a4355eb2c Updated corpse remover to only remove biter corpses 2021-01-12 08:33:44 +00:00
James Gillham
21ec6fb120 Change biter corpse remover.
The biter corpse remover was attempting to be clever about removing corpses and only remove them when they exceeded a certain threshold per chunk. For some reason it is no longer working and I can't figure out why.
So I replaced it with a simpler approach. Now we keep track of the corpses in a queue. When the queue size exceeds the threshold we remove and destroy the oldest corpse.
2021-01-10 15:45:28 +00:00
Jayefuu
565249ff1b Added player_built and player_crafted to the crash site awards ceremony 2021-01-08 12:34:51 +00:00
Jayefuu
0089075f9c
Merge pull request #1138 from Refactorio/player_stats_kill_tracking
Player data types updated and saved to server on restart
2021-01-03 08:53:04 +00:00
grilledham
0717eb2a3e
Merge pull request #1142 from grilledham/info_gui_updates
Fix info_gui layout issues.
2021-01-02 12:22:00 +00:00
grilledham
e093b92dc9
Merge pull request #1141 from grilledham/player_leave_reason
Add player leave reasons
2021-01-02 12:18:42 +00:00
grilledham
ad929499c6
Merge pull request #1140 from grilledham/loader_snap
When rotating loader connect to container.
2021-01-02 12:13:52 +00:00
James Gillham
741267873f Use PlayerStat names in player_list.lua 2021-01-02 12:12:10 +00:00
James Gillham
0e768ec608 Expose PlayerStats names publicly. 2021-01-02 12:00:21 +00:00
James Gillham
27e76d2ed0 Refactor get player index logic 2021-01-02 11:37:54 +00:00
Jayefuu
50bf98f8f2 Updated as per suggestions
- Added small fixes to commands.lua
- Added logic to player_stats.lua to count kills made with vehicles. Tested on S10 with a passenger.
2021-01-02 11:37:53 +00:00
James Gillham
b527d146f8 More player_list tweaks. 2021-01-02 11:37:16 +00:00
James Gillham
24bedfb925 grilledham's review changes:
- Rename biter_kill_counter->entity_died
- Refactor logic in entity_died function to reduce table lookups.
- Fix nil cause bug.
- Fix player_list kills header different size to cells.
2021-01-02 11:37:16 +00:00
Jayefuu
9b39e35d0d Player data types updated
- Saves more kill data to Scoreboard
- Displays total kills in score board
- Saves player data to crash site scenario data set
- Added scenario name to data set so that if we later want to add data for danger ores we can filter it out
2021-01-02 11:37:16 +00:00
grilledham
b18dad52cb
Merge pull request #1137 from grilledham/server_start_data
Add server start_data.
2021-01-01 18:22:45 +00:00
James Gillham
345029c10b Fix info_gui layout issues. 2021-01-01 18:04:14 +00:00
James Gillham
a2331b0a53 Don't hard code the filter slot count. 2021-01-01 16:26:21 +00:00
James Gillham
b6053fd3e3 Preserve loader filters when connecting 2021-01-01 15:49:07 +00:00
James Gillham
4634bcca00 When rotating loader connect to container. 2020-12-31 22:55:26 +00:00
James Gillham
7545a41e52 Add player leave reasons 2020-12-31 22:04:40 +00:00
James Gillham
c6739cd4d7 Fix loader gui layout issue in multiplayer
- Change the loader gui logic to be more conservative about when it deletes the loader frames. Now the layout issue should only happen when the player goes from having no loader recipes unlocked to any or vice versa Which in most cases will only happen once per game.
2020-12-31 20:17:43 +00:00
James Gillham
9564d51dcc Add server start_data. 2020-12-30 20:19:22 +00:00
James Gillham
d33392b1cf Remove /dc command, use /sc instead. 2020-12-28 22:44:42 +00:00
James Gillham
2f53b43165 Send report to discord. 2020-12-27 15:57:22 +00:00
Jayefuu
a6e64743ac Update redmew_settings.lua 2020-12-27 07:42:02 +00:00
James Gillham
281500aeb6 Don't draw loader frame when no loader recipe is unlocked. 2020-12-23 21:58:18 +00:00
James Gillham
0281a88350 Add named discord channels. 2020-12-23 13:08:20 +00:00
grilledham
42f82de031
Merge pull request #1119 from Refactorio/craft-loaders
Loader GUI buttons
2020-12-22 11:16:22 +00:00
James Gillham
4507ffbcdc redmew_qol laoder updates
- Use the player's force rather than the player force for determining whether the recipes are enabled.
- Call draw_loader_frame_for_player when player opens crafting gui instead of on_player_created.
- Check in the button events if the recipe is enabled.
- Draw the frames even if 'loader' recipe is not enabled to allow for the case that only 'fast-loader' or 'express-laoder' is enabled.
2020-12-21 11:29:54 +00:00
Jayefuu
a5bc9ac584 Update redmew_qol.lua 2020-12-21 09:06:58 +00:00
Jayefuu
73eb4f5ad1 Updated as per suggestions 2020-12-20 17:25:33 +00:00
Jayefuu
534fa6a790
Update landfill_remover.lua 2020-12-16 13:02:41 +00:00
Jayefuu
8e365dc89f
Update landfill_remover.lua
Just added a top comment to describe the feature so that players that find it don't need to work through the code to understand.
2020-12-16 12:51:26 +00:00
James Gillham
abddfe85b9 fix luacheck value assigned unused. 2020-12-14 20:26:14 +00:00
James Gillham
83befd776e Gui.destory when loader_crafter closes + update .luacheckrc 2020-12-14 20:25:22 +00:00
Jayefuu
ee2e77fbba Update redmew_qol.lua 2020-12-14 18:30:25 +00:00
Jayefuu
7b78dc036b Fixed failed lua checks 2020-12-14 18:28:03 +00:00
Jayefuu
be63ca9668 Features complete and tested. Needs review. 2020-12-14 18:22:17 +00:00
Jayefuu
c210c8a17e Update redmew_qol.lua 2020-12-14 10:06:33 +00:00
Jayefuu
e5e131ed07 Update redmew_qol.lua 2020-12-14 09:01:42 +00:00