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

296 Commits

Author SHA1 Message Date
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
Matthew
c49f5007fa Utils cleanup (#411)
* Clean up unused vars and using same var names

* Autoformat
2018-11-20 11:46:42 +01:00
plague006
fed616ab15 Typo in var name 2018-11-18 19:16:12 -05:00
Valansch
7fa48bc583
Changed all windows style line endings to unix style line endings (#393) 2018-11-18 17:12:00 +01:00
Matthew
5beaee7144 Comments to luadoc (#355)
Add logging to many commands, admin chat notices for a few commands
Overhaul print_admins
2018-11-18 12:59:52 +01:00
Matthew
b24801a8ec Extend tables library, split on_create and hodor messages from functions (#357)
* Add table.get_random and table.get_random_weighted

* Rewrite and randomize the messages from on_create

* Split hodor messages resource from function

* Return variable directly instead of adding an extra step

* Change to luadoc
2018-11-17 12:56:03 +01:00
der-dave
3299280c64 Added basic scoretable GUI and moved comma_value to utils 2018-11-16 17:13:45 +01:00
Lynn
aaac2f2b2a Fixed missing end (#277) 2018-11-10 00:54:18 +01:00
Valansch
7624263d8c
Merge branch 'develop' into global_removal 2018-11-09 23:49:23 +01:00
Lynn
675e8fb0f5 Added scrolling text popups and UX for market chests 2018-11-06 21:36:11 +01:00
Valansch
66df4a9a67 made degrees local 2018-11-06 13:09:21 +01:00
Valansch
8562c2663e removed some _G entries 2018-11-06 12:55:52 +01:00
Maik Wild
4a2e258ff3 moved math functions into math.lua 2018-10-04 17:56:49 +02:00
Valansch
3abd779775
Added math.inv_sqrt2 2018-10-02 23:53:05 +02:00
Maik Wild
a8e883b8ec added math.sqrt2 2018-10-02 10:08:57 +02:00
Valansch
646d050dd0
Round math.sin instead of approximating it 2018-09-28 18:42:36 +02:00
Valansch
b94f65ba51
Update math_fix.lua 2018-09-28 17:37:09 +02:00
Valansch
d85d969dce
Update math_fix.lua 2018-09-28 17:35:05 +02:00
Maik Wild
b01cef726b made sin use rads instead of deg 2018-09-28 17:28:01 +02:00
Maik Wild
7e0194996d replaced math.sin with lua implementation 2018-09-28 16:26:50 +02:00
grilledham
d38a87e9bb changed Game.players to Game.get_player_by_index(index) 2018-09-23 11:46:58 +01:00
grilledham
f1ef10beb6 Game is now local 2018-09-22 23:25:13 +01:00
grilledham
d232add93f more to utils + changed implementation 2018-09-22 23:24:47 +01:00
grilledham
594c1fa15b changed game.player -> Game.player 2018-09-22 21:07:05 +01:00
Maik Wild
0f0df92cd0 moved format_time to utils 2018-08-13 17:03:37 +02:00
Maik Wild
eb9b149617 implemented /report 2018-08-10 19:10:30 +02:00
grilledham
6ba2c75cbd misc fixes 2018-07-04 16:22:26 +01:00
grilledham
1c2f699676 fixed typo 2018-06-28 18:28:39 +01:00
grilledham
25011dd144 player_list_rewrite 2018-06-27 14:48:04 +01:00
grilledham
988c5f27a1 small performance tweak 2018-06-24 11:52:51 +01:00
grilledham
4ad4182d80 refactor + more events 2018-06-21 17:11:52 +01:00
grilledham
5cf2532063 added on text changed 2018-06-20 17:15:48 +01:00
grilledham
0dce95686b added math.clamp 2018-06-19 16:33:21 +01:00
grilledham
3b6116d72b tweaks to traingle of death map 2018-06-17 11:39:55 +01:00
grilledham
415bbb3006 Merge branch 'develop' of https://github.com/grilledham/RedMew into tag-group-refactor 2018-06-12 22:17:08 +01:00
grilledham
199bce4b00 random gens refactoring 2018-06-12 16:57:39 +01:00
grilledham
de8315bf72 added global.lua 2018-06-09 11:43:37 +01:00
Valansch
2d438a2629 Implemented undo rotation, paste, decon 2018-06-05 18:00:25 +02:00
Valansch
e6a2ef8697 implemented Utils.find_entities_by_last_user and undo warning. 2018-06-05 01:34:58 +02:00
grilledham
1520f95738 merged branches 2018-06-04 16:35:18 +01:00
Maik Wild
b4602f687b fixed typo in utils 2018-06-04 12:40:31 +02:00
Maik Wild
efa3fd2f33 Fixed merge conflict between master and develop (#176 vs. #177 & #178) 2018-06-04 12:36:21 +02:00
Valansch
2a582d69f2 Misc fixes 2018-06-03 14:24:33 +02:00
Valansch
ac15b60c02 Cleanup up utils 2018-06-02 18:16:04 +02:00
Valansch
43d1eb0ad6 Added missing require user_groups into nuke_control.lua
- Fixed bugs in user_groups
- Moved get_actor into utils/utils.lua
2018-06-02 17:17:54 +02:00
grilledham
b3bffbf967 changed task module to take a token rather than a global function name 2018-05-24 15:16:38 +01:00
grilledham
4c1892bc10 added debug support 2018-05-22 01:03:04 +01:00
grilledham
172268788a updates 2018-05-21 23:48:50 +01:00
grilledham
364898f6f7 updates 2018-05-21 18:22:07 +01:00
grilledham
594c6195f1 added gui help utils 2018-05-20 16:28:54 +01:00
grilledham
52e1448bf2 formatting 2018-05-20 16:28:33 +01:00
grilledham
5fb107e20f added global tokens 2018-05-16 11:37:22 +01:00
Valansch
5168e77c01 Implemented Cams, fixed invalid entity log spam 2018-04-16 14:25:59 +02:00
grilledham
7d6db2c737 fixed typo 2018-04-07 00:38:59 +01:00
grilledham
1cf6639352 fixed bug 2018-04-07 00:24:30 +01:00
grilledham
45cbda810d experimental removable events 2018-04-07 00:24:16 +01:00
grilledham
77d4fc9c4a added global token 2018-04-06 22:51:17 +01:00
grilledham
197a677559 name changes 2018-04-06 22:32:13 +01:00
grilledham
a656e3a459 changes to match new event module 2018-04-06 20:58:50 +01:00
grilledham
e0756f9dcb rewrite of events module 2018-04-06 20:57:58 +01:00
grilledham
ad20355fa7 renamed to event2 2018-04-06 17:45:20 +01:00
grilledham
0aa879ef55 rewrite of events 2018-04-06 16:35:41 +01:00
grilledham
5ec739e7aa added events2 2018-04-02 14:40:25 +01:00
Valansch
18b5e0e4e4 Made Task queue only change tasks per tick every 5 seconds 2018-02-02 00:37:08 +01:00
grilledham
61947204e9 changed callbacks + added global.task_queue_speed 2018-01-31 20:30:32 +00:00
grilledham
fbee5b117c added PriorityQueue 2018-01-31 20:29:15 +00:00
grilledham
5e65e4e970 added weights to tasks 2018-01-28 18:33:25 +00:00
grilledham
e3168f8bee renamed thread / action to task 2018-01-27 15:49:55 +00:00
grilledham
cab8233c74 changes action_queue to use Queue 2018-01-25 23:31:47 +00:00
grilledham
d14f0aae76 added Queue.lua 2018-01-25 23:31:09 +00:00
grilledham
4d951fb4b0 added binary_search to list_utils.lua 2018-01-21 15:32:07 +00:00
Maik Wild
66e5d2ae0e locale/utils/ ==> utils/ #152 2018-01-19 15:08:48 +01:00