Commit graph

349 commits

Author SHA1 Message Date
VorTechnix
7f9c8796d0 meta link fix 2021-07-18 17:27:21 -07:00
VorTechnix
d94ebd7e54 separate init for meta commands 2021-07-18 13:12:45 -07:00
VorTechnix
5ea6ac18d2 wireframe blanks 2021-07-18 13:12:19 -07:00
8b4ba8ccc1
airapply, ellipsoidapply: allow //multi to be a subcommand 2021-07-16 23:00:31 +01:00
271032a6d7
Merge pull request #68 from sbrl/VorTechnix
Add measurement tools, the start of worldeditadditions_core, some bug fixes, and other goodness :D
2021-07-15 22:13:01 +01:00
VorTechnix
0ad0c63def
Fix typos in mtools
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-07-15 13:44:56 -07:00
57caddece7
airapply: fix header 2021-07-15 21:39:25 +01:00
VorTechnix
c57e8e6558 Merge branch 'main' into VorTechnix 2021-07-15 13:27:30 -07:00
VorTechnix
e3dd7ae428 fixed optional dependency on worleditdebug 2021-07-15 12:00:05 -07:00
0b379c48cb
Implement //airapply
For #56, but the docs aren't written yet so we'll wait on closing it 
until I've written them.
2021-07-15 02:17:14 +01:00
VorTechnix
5ac0b8a04c Update mtrig.lua 2021-07-13 19:43:56 -07:00
VorTechnix
428ec12918 Update mtrig.lua 2021-07-13 09:59:53 -07:00
VorTechnix
9d2a0ca23c round mtrig values 2021-07-13 09:54:11 -07:00
VorTechnix
3f6b8f4d21 Fix and stabilize //mtrig 2021-07-13 09:09:40 -07:00
VorTechnix
f94906c854 force output syntax in msize 2021-07-13 09:08:56 -07:00
46c2a02ade
//noise2d: add white algorithm; fix nasty bug in apply_2d 2021-07-12 02:45:32 +01:00
VorTechnix
d69dae5087 comment out worldedit debug stuff 2021-07-08 21:04:51 -07:00
VorTechnix
71460cb316 Added mtrig (vector3 broken) 2021-07-08 20:54:05 -07:00
0b0595a1d3
Remove a whole bunch of stray debug print statements 2021-07-04 14:35:02 +01:00
1d82013d86
//noise2d: add sin; sort out apply_mode as number 2021-07-04 13:21:13 +01:00
b2eb76d280
//noise2d works!
...just.

Next up more engines and documentation
2021-07-03 22:53:16 +01:00
VorTechnix
e047372c22 Added //msize 2021-07-02 20:10:03 -07:00
VorTechnix
d479e167b9 //midpos implemented 2021-06-30 11:14:45 -07:00
VorTechnix
d65fe98de6 added mface 2021-06-28 21:15:47 -07:00
VorTechnix
71fb8da089 refactor s-tool init 2021-06-28 20:17:43 -07:00
643790dc07
Merge pull request #64 from sbrl/selection-tools
sfactor and housekeeping
2021-06-28 01:08:10 +01:00
db7b20d485
Refactor table functions into subtable of wea
Also, you can return a value from dofile()!!!!

This changes everything.
2021-06-28 00:56:29 +01:00
VorTechnix
29bb6a0063 Merge branch 'main' into selection-tools 2021-06-27 15:22:55 -07:00
VorTechnix
5d28179bab remove release block 2021-06-27 15:11:57 -07:00
VorTechnix
79211cf8cb collapse check 2021-06-27 15:11:00 -07:00
VorTechnix
df209a9f61 removed tests 2021-06-27 15:06:03 -07:00
VorTechnix
03093112bb added sfactor 2021-06-27 14:54:17 -07:00
VorTechnix
d176cb5419 revised comments 2021-06-27 14:53:33 -07:00
VorTechnix
0b23f0174b added separate init.lua for selectors 2021-06-27 14:39:36 -07:00
25e6ff467c
//smake: describe operation & mode a bit better 2021-06-26 02:26:06 +01:00
VorTechnix
3f96fa708f fixed a bug (trailing comma) 2021-06-25 18:15:43 -07:00
VorTechnix
16b7748ac6 some refactoring and commenting in smake 2021-06-25 18:12:30 -07:00
VorTechnix
e592e6746f smake documentation 2021-06-25 13:30:40 -07:00
VorTechnix
88c70ee233 restored indentation in torus.lua 2021-06-25 11:58:44 -07:00
VorTechnix
70972f4084 //smake equal stable 2021-06-25 11:42:16 -07:00
VorTechnix
7c92c811e5 odd and even tested, stable 2021-06-22 17:32:24 -07:00
VorTechnix
99c0b26086 Update to smake, fixed odd 2021-06-22 09:41:05 -07:00
VorTechnix
efef201fde //smake added 2021-06-22 09:33:49 -07:00
VorTechnix
8bffeda5b5 Merge branch 'main' into vortechnix 2021-06-02 17:59:06 -07:00
VorTechnix
75c998f369 ellipsoid parse tweak 2021-05-31 08:43:42 -07:00
9c4e23daa8
//floodfill: fix error handling 2021-05-31 00:38:01 +01:00
VorTechnix
956fc5370a Ellipsoid parsing overhaul with hollow option addition 2021-05-30 15:29:14 -07:00
VorTechnix
8884c938e0 Merge branch 'main' into vortechnix 2021-05-30 09:35:41 -07:00
5083ea05ca
Start on #55, but because Minetest blocks our read attempts to Chat-Command-Reference (symlinks don't help), we can't continue this 2021-05-30 16:18:08 +01:00
ccf27c8629
Bugfix new //erode river implementation
next stop: docs!
2021-05-30 01:42:06 +01:00
ffdef17761
//multi: add { curly brace } syntax support for grouping blocks of commands 2021-05-29 01:17:24 +01:00
e111decd3a
//multi: reduce code duplication 2021-05-28 21:10:23 +01:00
VorTechnix
912ecf09c2 Merge branch 'main' into vortechnix 2021-05-21 09:21:17 -07:00
VorTechnix
639c2061ef
Bugfix/torus: fix hollow implementation; improve clarity 2021-05-18 15:22:52 +01:00
VorTechnix
0a44992676
reference: add hollow example to torus 2021-05-18 14:56:19 +01:00
VorTechnix
184ca1a328 recovery 2021-05-17 21:12:46 -07:00
VorTechnix
d4b457f85d
Merge branch 'main' into vortechnix 2021-05-17 20:45:28 -07:00
VorTechnix
0ca9ed30bc Update torus.lua 2021-05-17 20:33:08 -07:00
VorTechnix
7defe829c3 Revert "Merge branch 'main' of https://github.com/sbrl/Minetest-WorldEditAdditions into main"
This reverts commit d9069b3cfa, reversing
changes made to 35eeb918d0.
2021-05-17 18:49:07 -07:00
VorTechnix
5b893901dc //torus update 2021-05-17 17:16:04 -07:00
bf8c847dc1
torus: fix and improve the error messages 2021-05-15 02:15:14 +01:00
3fbfc1fb15
torus: rework to add axes, but it's not finished yet 2021-05-15 02:00:40 +01:00
4e544c555c
replacemix: add support for wea.parse.chance
TODO: use wea.parse.weighted_nodes

The problem here is that we have a target_node with an optional chance 
too, so a finite state machine is needed to parse it currently

Once we've extracted the target_node and it's optional chance though, we 
should be able to use wea.parse.weighted_nodes in theory
2021-05-11 22:29:15 +01:00
ea05d5f559
bonemeal: use wea.parse.chance 2021-05-11 22:20:29 +01:00
8877e356f0
refactor: refactor utils/strings.lua into multiple files 2021-03-20 01:48:56 +00:00
VorTechnix
866748a5c3 dir function rename 2021-03-19 16:25:26 -07:00
VorTechnix
d4edeaeff7 renamed translation function 2021-03-18 09:37:53 -07:00
VorTechnix
00b9a1f517 srel stable? 2021-03-17 11:36:12 -07:00
VorTechnix
20a879a7af scentre and some sorting 2021-03-15 20:51:23 -07:00
VorTechnix
0b55863d55
scloud.lua second typo fix
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 19:26:38 -08:00
VorTechnix
5ffa67b7ac refactor func names, move punchnode function 2021-03-12 18:01:17 -08:00
VorTechnix
39f82c99ca
scloud.lua params change
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 17:55:10 -08:00
VorTechnix
f95d7622c7
scloud.lua cosmetics
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 17:09:57 -08:00
VorTechnix
4777b93f60
scloud.lua error return fix
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 17:06:15 -08:00
VorTechnix
cc20297b88
scloud.lua typo fix
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 17:03:37 -08:00
VorTechnix
3df23e8086 scloud and cloud wand refactor 2021-03-12 15:47:10 -08:00
VorTechnix
97f8d551cd Merge branch 'master' of https://github.com/VorTechnix/Minetest-WorldEditAdditions 2021-03-11 12:59:07 -08:00
VorTechnix
53d899b3fe commented tmp 2021-03-11 12:59:04 -08:00
VorTechnix
f0f6fe3765
Merge pull request #4 from sbrl/master
multi many multi bug fix
2021-03-10 21:34:37 -08:00
VorTechnix
ff9abded2e localize wea 2021-03-10 20:56:38 -08:00
VorTechnix
bdb51ff944
Fix Typo
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-10 18:44:27 -08:00
48619163d5
//multi: gracefully handle empty invocations; ensure args is always set
if it isn't found via the :find() call, then set it to an empty string.
This prevents crashes where the callee expects to be passed a string
2021-03-11 02:04:22 +00:00
VorTechnix
cbd07aee4f scube and vector population 2021-03-10 13:21:33 -08:00
VorTechnix
234e0a1325 simplified scol 2021-03-09 11:19:47 -08:00
VorTechnix
a671f742e9 scol and srect refactor 2021-03-09 11:05:03 -08:00
e8d97959b2
Add //spush, //spop, and //sstack 2021-03-01 22:23:36 +00:00
8cce699313
srect: minor formatting tidyup 2021-03-01 21:16:23 +00:00
e1755ce8e1
srect: localify parsing function 2021-03-01 21:08:32 +00:00
2acc6b3470
Merge pull request #34 from VorTechnix/master
Added //srect and //basename
2021-03-01 20:54:13 +00:00
VorTechnix
12e5be8da6 stable axis1 processing 2021-02-28 11:59:46 -08:00
VorTechnix
727ee41e72 Simplify srect function 2021-02-28 09:59:09 -08:00
VorTechnix
0c4736fbc2
Debugging returns
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-02-28 09:56:39 -08:00
VorTechnix
b31b005bdd -axyzb patch 2021-02-26 08:23:10 -08:00
VorTechnix
cb1d54c665 Added getsign, fixed srect glitch 2021-02-25 20:22:39 -08:00
756bd49470
//scale: remove debug statement 2021-02-25 22:52:47 +00:00
VorTechnix
f6ed297270 indentation fixes 2021-02-24 19:35:20 -08:00
VorTechnix
1d93122801 basename error handling 2021-02-24 09:19:08 -08:00
VorTechnix
489d856176 Added srect and basename
Also moved saplingaliases and corrected the block text in forest.lua
2021-02-24 08:40:53 -08:00
ee3effd458
//subdivide: fix passing arguments to the command being executed 2021-02-21 15:19:21 +00:00
3f871e01f5
//scale: fix more bugs, and also update the worldedit region after scaling 2021-02-18 02:18:34 +00:00
a63923fec9
//scale: scaling up works! Can't say the same about scaling down though, but that will come in time. 2021-02-18 01:24:53 +00:00
ed3adde56a
//scale: fix some bugs, and rename direction → anchor internally
It's nice to have some consistency, and find&replace saves soooo much 
time :P
2021-02-18 00:30:24 +00:00
bl-ue
1d3c2a0416 Fix typos 2021-02-09 19:53:30 -05:00
ad9e5a26b1
Start working on //scale, but it isn't finished yet. 2021-02-07 23:39:09 +00:00
555058b4ac
//subdivide: tweak update message display 2021-02-07 03:12:09 +00:00
1179ecb19a
//subdivide: cosmetic change to update messages 2021-02-07 02:59:41 +00:00
151afadf6c
//many: fix running commands that take no arguments 2021-02-07 02:59:19 +00:00
a360f06138
Fix eta calculations 2021-02-07 02:45:34 +00:00
2f5c1b759d
//subdivide: fix undefined variable; update reference 2021-02-07 01:35:06 +00:00
888ee04f9d
//subdivide: fix a number of other issues 2021-02-07 01:28:07 +00:00
15417354c6
//subdivide: fix undefined local variable 2021-02-06 19:34:46 +00:00
ac954abaea
//subdivide: tweak outut 2021-02-06 14:34:30 +00:00
0f4d95fc01
//hollow: fix parsing logic 2021-01-31 19:59:38 +00:00
0be205dae7
Start implementing //hollow, but it isn't finished yet 2021-01-31 18:03:07 +00:00
4b1cf074d5
//count: make numbers human-readable
Fixes #14
2021-01-31 17:43:08 +00:00
4b2f2b0001
Add //line
Fixes #25.
2021-01-16 18:36:17 +00:00
0cfd651510
Bugfix //subdivide: fix chunk size display 2020-10-10 22:41:19 +01:00
d2f101e9dd
It works! 2020-10-10 22:22:53 +01:00
2ac6ea03a7
Fix some bugs, but the new //subdivide still doesn't work yet 2020-10-10 21:50:03 +01:00
aa234595a8
Refactor //subdivide to call minetest.emerge_blocks
....whether it actually works or not is another question entirely 
though.....
2020-10-10 21:43:22 +01:00
7e02714c86
//subdivide: remove debug logging 2020-10-10 17:02:29 +01:00
ef165b9c58
Add ETA to //many, and tidy up message generation in //subdivide 2020-10-10 17:01:08 +01:00
fea89f2e3c
//maze, //maze3d: Allow non-number seeds
This uses a simple (non-crypto!) hash function to hash non-number 
strings to a number. Existing seeds are *not* affected - they will still 
work as before.
2020-09-28 01:31:15 +01:00
130524a7d0
Disable some debug prints, and update docs 2020-09-20 22:07:47 +01:00
a6f5fe5123
Finish initial //ellipsoidapply implementation 2020-09-20 21:19:29 +01:00
358fac7c7c
//subdivide: print update whent he last chunk is completed
....it's very misleading otherwise.
2020-09-20 17:38:58 +01:00
d2b38d0ea1
Move special commands to dedicated subdirectory 2020-09-20 17:33:48 +01:00
5ad44e7c31
//forest: Fix error message on invalid on sapling/node name 2020-09-15 01:40:55 +01:00
66a265bbce
Add soft dependencies to worldeditaditions & updaate docs 2020-09-14 02:12:05 +01:00
2a592a808c
Finish bugfixing //forest!
moretrees still doesn't work with it though, and I don't understand 
why....
2020-09-14 01:19:15 +01:00
a6fc9712b4
Fix some crashes, but it's still not functioning as expected 2020-09-13 22:57:26 +01:00
0b285fa681
Start implementing //forest, but it isn't finished yet 2020-09-13 20:32:55 +01:00
25f369c582
Implement //fillcaves for #23 2020-08-26 19:17:07 +01:00
b303f8758a
//erode snowballs: make tweaks & add new noconv param 2020-08-21 22:01:24 +01:00
6846369cf9
typo & insert link into quick reference 2020-08-21 21:28:14 +01:00
e8a9ba8800
Update changelog & document //erode in the README 2020-08-21 21:26:29 +01:00
fd5804dd9c
//erode: Finish the initial round of bugfixing, but I'm on the fence about it.
Specifically, I'm unsure about whether I'm happy with the effects of the 
algorithm.
Also, we convolve with a 3x3 gaussian kernel after erosion is complete - 
and we have verified that the erosion is having an positive effect at 
"roughening up" a terrain surface.
It seems like the initial blog post was correct: the algorithm does tend 
to make steep surfaces steeper.
It also appears that it's more effective on larger areas, and 'gentler' 
curves. THis might be because the surface normals are more conducive to 
making the snowballs roll.
Finally, we need to decide whether we want to keep the precomputed 
normals as we have now, or whether we want to dynamically compute them 
at the some of request.
2020-08-21 20:59:50 +01:00
997eb4d101
fix all the crashes with the new erosion algorithm
......but it doesn't look like it's functioning as intended just yet
2020-08-21 15:21:10 +01:00
acb288b984
Fix a ton of bugs but there are lots more to go..... 2020-08-21 13:27:40 +01:00
de6ea49d6f
//many: fix server logging 2020-08-11 21:47:52 +01:00
90ea388003
Implement //many command 2020-08-11 21:39:28 +01:00
f3c6329526
For #21, but I can't reproduce 2020-07-17 17:02:12 +01:00
32b4a84a4a
//subdivide: no no no. that can't be the problem because worldedit.sort_pos() implicitly clones 2020-06-27 02:05:31 +01:00
ce6ed01b36
//subdivide: hrm. maybe a shallowcopy might work? 2020-06-26 22:47:13 +01:00
0e74d22971
//subdivide: improve chunk counting again
....we really should do the maths properly, but I can't seem to get it 
right
2020-06-26 21:56:26 +01:00
9b913bdfb1
all commands: use human_time() in output 2020-06-26 21:23:03 +01:00
3487e5c32b
//subdivide: Tidy up output 2020-06-26 21:15:13 +01:00
0afbba4deb
os.clock() → minetest.get_us_time()
....how did I miss that :P
2020-06-26 20:46:35 +01:00
5aec4d756c
//subdivide: it works!
Now to pretty it up a bit.
2020-06-26 18:57:25 +01:00
be38facaab
//subdivide: fix crash, but it's still not working as intended 2020-06-26 18:43:07 +01:00
20a026724f
Start implementing //subdivide, but it isn't finished yet. 2020-06-26 02:13:11 +01:00
c0624f5a94
Port human_time from Pepperminty Wiki & put it to use in //multi
Also, we've got a changelog!
2020-06-25 23:45:27 +01:00
b8a5bec987
Centralise all command aliases
This should avoid any crashes on startup because worldedit.alias_command 
is nil too (strange!)
2020-06-11 01:00:19 +01:00
75a17ed64f
Add //layers command
Also add aliases //naturalise and //naturalize
2020-06-11 00:38:16 +01:00
da1c56cc23
Add //convolve documentation to README & aliases 2020-06-10 01:38:09 +01:00
2b32385fdf
convolve: fix minor chat command issues 2020-06-10 01:06:34 +01:00
2dbbeef9c9
convolve: fix a bunch of bugs.
It's still behaving reeaallllly strangely though
2020-06-09 22:00:56 +01:00
868052f945
Add //convolve command
....but it's all untested of course :P
2020-06-09 21:11:34 +01:00
e5d847f7e6
//count: fix logging 2020-06-09 21:08:15 +01:00
e26d5b1580
Upgrade //overlay to support a mix of nodes 2020-06-07 20:46:46 +01:00
c0b40266c8
//replacemix: add command 2020-05-14 21:37:27 +01:00
f3a8c1dd64
Add //count 2020-05-12 00:38:42 +01:00
952d7a96f8
Add //walls command - fixes #12 2020-05-11 21:44:18 +01:00
5f7a64702a
Add //bonemeal command 2020-05-11 02:02:02 +01:00
df629157b2
//maze[3d]: fix logging 2020-05-10 23:46:19 +01:00
fb228bb37b
//maze[3d]: Fix no arguments specified edge case 2020-05-10 23:40:46 +01:00
70f7e64371
worldedit → worldeditadditions 2020-05-10 23:29:49 +01:00
576351225a
//maze[3d]: fix path dimension edge cases
- value less than 1
 - non-integer value (unconditionally math.floor(); comment added about 
this)
2020-05-10 22:18:26 +01:00
6be534d4b7
Migrate //ellipsoid and it's sibling to worldedit.register_command 2020-05-10 22:01:31 +01:00
b7888a2b3f
migrate //floodfill to worldedit.register_command 2020-05-10 21:52:35 +01:00
bdf0bdea93
Migrate //torus to worldedit.register_command 2020-05-10 21:44:00 +01:00
ae068989e2
migrate //overlaya to worldedit.register_command 2020-05-10 21:32:01 +01:00
bdfd74346e
Migrate //maze3d to worldedit.register_command 2020-05-10 21:21:00 +01:00
58faa8349e
Fix safe_region 2020-05-10 21:08:22 +01:00
8e515c3778
Refactor //maze to use worldedit.register_command
....but I'm confused as to how the automatic safe_region thing works - I 
can't get it to trigger
2020-05-10 21:00:16 +01:00
35bd8f19b2
maze3d: fix command parsing 2020-05-03 17:10:41 +01:00
29223a3455
Patch maze3d to support the path dimennsion settings, but there's some weirdness going on 2020-05-03 17:02:28 +01:00
2720f62d09
//maze: add path_length and path_width support
....now we jujst need to tackle //maze3d
2020-05-03 16:19:42 +01:00
d35a55ea9e
commands: refactor into separate files 2020-05-03 00:37:18 +01:00
a2d078e156
Add //maze3d command 2020-04-29 01:55:55 +01:00
cf4f602f38
add //maze command 2020-04-28 22:41:55 +01:00
4824f28a95
Refine chat output of //multi command 2019-06-18 00:41:34 +01:00
9f3e3c23ae
Bugfix: Use a copy of worldedit's safe system to avoid issues 2019-06-02 13:57:28 +01:00
6f2d328f4b
//multi: Remove command name in brackets 2018-10-19 23:45:14 +01:00
3eefdd4d39
/multi: Add timing info 2018-10-19 22:35:02 +01:00
ccc86e78ae
//floodfill: Fix crash 2018-10-14 12:59:00 +01:00
ac05627d53
Add //multi command.
TODO: Documentation. Perhaps it should be it's own mod?
2018-10-14 00:19:32 +01:00
bbde06c72e
[floodfill] Bugfix: Don't get caught in an infinite loop if the search & replace nodes are identical
Also fix a crash in the //floodfill command logic if pos1 is nil
2018-06-22 21:23:12 +01:00
f3745dc6ba
Fix a few small bugs 2018-06-10 13:48:11 +01:00
429beb2e52
Add a hollowellipsoid command 2018-06-09 20:02:30 +01:00
43f395ad02
Try to fix the ellipsoid function, but it's not working right.
Thankfully I have a clue as to what's going wrong, which I've made a
note of. Time for some research I think.....
2018-06-09 13:36:25 +01:00
88c59fca7c
Initial //ellipsoid implementation. Also reduce default floodfill radius 2018-06-09 13:05:09 +01:00
e4eb070c0f
Add //overlay, and start filling out README 2018-05-22 22:20:26 +01:00
083f7a2967
Remove todos 2018-05-20 14:51:30 +01:00
a9d8dab77c
Add safe_region support 2018-05-20 14:46:54 +01:00
85cfd93d5e
Add dependency to commands mod 2018-05-20 14:28:15 +01:00
9412a1bf30
Add optimised radius checking 2018-05-20 14:19:43 +01:00
0bb807ff86
Fixed some bugs, but it keeps running out of memory. 2018-05-20 12:23:09 +01:00
02b54e6215
It doesn't have any syntax errors, so I guess there's only one way to find out if it actually works :P 2018-05-20 11:52:16 +01:00