//grep_blocks command #2006

Closed
opened 2022-05-30 03:00:50 +00:00 by flux · 3 comments
Member
  • able to use it w/ either areas or worldedit (until i unify those interfaces, some day...)
  • e.g. //grep_blocks 20 mesecons.* would show the first 20 nodes in the region which match the pattern mesecons.*
  • output: mod:block @ (x,y,z)
* able to use it w/ either areas or worldedit (until i unify those interfaces, some day...) * e.g. `//grep_blocks 20 mesecons.*` would show the first 20 nodes in the region which match the pattern `mesecons.*` * output: `mod:block @ (x,y,z)`
flux added the
1. kind/enhancement
label 2022-05-30 03:00:56 +00:00
flux self-assigned this 2022-05-30 03:01:01 +00:00
Author
Member

fixed in 500c23d05d

fixed in https://gitea.your-land.de/your-land/yl_commons/commit/500c23d05dc401eae8071c7f041b3e8aef412072
flux added the
4. step/ready to QA test
label 2022-05-31 00:21:06 +00:00
AliasAlreadyTaken was assigned by flux 2022-06-02 01:51:52 +00:00

Nice!

Maybe we need a max limit ... :

/area2we 2
//grep_nodes 1000 cobble

leads to

2022-06-07 12:35:39: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_commons' in callback on_chat_message(): table overflow
2022-06-07 12:35:39: ERROR[Main]: stack traceback:
2022-06-07 12:35:39: ERROR[Main]: 	[C]: in function 'get_data'
2022-06-07 12:35:39: ERROR[Main]: 	..._test/bin/../mods/yl_commons/chatcommands/grep_nodes.lua:47: in function 'func'
2022-06-07 12:35:39: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function 'func'
2022-06-07 12:35:39: ERROR[Main]: 	.../mtlive/5.5.1/Minetest_test/bin/../builtin/game/chat.lua:79: in function 'func'
2022-06-07 12:35:39: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:100>
2022-06-07 12:35:39: ERROR[Main]: 	...ive/5.5.1/Minetest_test/bin/../builtin/game/register.lua:429: in function <...ive/5.5.1/Minetest_test/bin/../builtin/game/register.lua:415>
Nice! Maybe we need a max limit ... : ``` /area2we 2 //grep_nodes 1000 cobble ``` leads to ``` 2022-06-07 12:35:39: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'yl_commons' in callback on_chat_message(): table overflow 2022-06-07 12:35:39: ERROR[Main]: stack traceback: 2022-06-07 12:35:39: ERROR[Main]: [C]: in function 'get_data' 2022-06-07 12:35:39: ERROR[Main]: ..._test/bin/../mods/yl_commons/chatcommands/grep_nodes.lua:47: in function 'func' 2022-06-07 12:35:39: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function 'func' 2022-06-07 12:35:39: ERROR[Main]: .../mtlive/5.5.1/Minetest_test/bin/../builtin/game/chat.lua:79: in function 'func' 2022-06-07 12:35:39: ERROR[Main]: ...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:100> 2022-06-07 12:35:39: ERROR[Main]: ...ive/5.5.1/Minetest_test/bin/../builtin/game/register.lua:429: in function <...ive/5.5.1/Minetest_test/bin/../builtin/game/register.lua:415> ```
AliasAlreadyTaken added this to the 1.1.112 milestone 2022-06-07 10:39:08 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2022-06-07 17:04:31 +00:00
Author
Member

this is live, the crash is in a new issue

this is live, the crash is in a new issue
flux closed this issue 2022-06-07 17:04:34 +00:00
flux removed their assignment 2022-09-21 00:02:34 +00:00
AliasAlreadyTaken was unassigned by flux 2022-09-21 00:02:34 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#2006
No description provided.