Commit graph

356 commits

Author SHA1 Message Date
44e6ba8e3c
Upgrade more old vector stuff in the corners 2022-09-19 18:54:53 +01:00
073d621629
test geometry commands 2022-09-19 18:30:43 +01:00
4be7bf33d0
//ellipsoid: fix crash 2022-09-19 18:10:06 +01:00
9dc8165464
fixup 2022-09-19 17:34:53 +01:00
5ec877f2b7
strip remaining worldeditadditions.vector.tostring calls 2022-09-19 17:33:02 +01:00
2af1226b49
port everything else
phew!
2022-09-19 01:16:22 +01:00
21c5b9d483
Upgrade the last of the commands o/ 2022-09-18 22:46:20 +01:00
6102a1adf5
Upgrade meta commands 2022-09-18 22:37:26 +01:00
4a56d45c4b
Upgrade all selection commands 2022-09-18 22:20:04 +01:00
c3e8df3a9e
next batch of upgraded commands 2022-09-18 21:39:48 +01:00
459e15b5c2
finish upgrading top-level commands 2022-09-18 21:30:28 +01:00
927f2f90f8
//hollow: upgrade; fix nodes_needed 2022-09-18 21:05:13 +01:00
2f4c333ca0
//layers: upgrade 2022-09-18 21:05:03 +01:00
8d6db6d3f5
upgrade 7 more commands 2022-09-18 20:58:28 +01:00
e167fb1536
start working on converting everything to the new utils location
after we've done this, we'll rename utils → lib
2022-09-18 17:59:57 +01:00
2b88fa867e
fix more warnings 2022-09-18 16:33:37 +01:00
64ff61a4d2
Fix override aliases 2022-05-24 02:24:43 +01:00
af7d39110b
//spiral2: fix params description 2022-05-24 01:05:09 +01:00
9bfb428c3f
add override aliases behind a setting 2022-05-24 00:11:22 +01:00
1750d62d3c
core: add register_alias command
it is backwards-compatible with worldedit.register_command
2022-05-19 22:50:53 +01:00
8de49ac0af
register commands with worldeditadditions, not worldedit 2022-05-19 22:10:09 +01:00
3bcca82b43
//maze, //maze3d: registere with our new WEA core rather than WorldEdit 2022-05-19 02:43:19 +01:00
b816133716
core: implement fetch_command_def
This rovides an abstraction to fetch a worldedit command's definition, 
regardless of where it was registered.

We would normally expect all commands to be registered in 
wea_c.registered_commands, but before we only do a one-off pass to 
import commands from worldedit should a new mod we aren't aware of 
register a command with worldedit and get loaded after us, we won't 
detect it - hencee  the need for this function.
2022-05-19 02:31:01 +01:00
10f350c967
Delete copied code
Given licence incompatibilities, we can't really copy code from 
WorldEdit
2022-05-16 21:21:15 +01:00
9d3a4ce263
refactor aliases into a separate file 2022-05-16 20:33:04 +01:00
98909f0fae
//metaball: bugfix
It works!
2022-05-16 20:14:31 +01:00
722e62bae0
Finish initial //metaballs command implementation, but it's untested 2022-05-16 01:21:09 +01:00
3311d80a2a
Rework metaballs backend
We need a way of defining metaballs per-player. Our solution to this is 
a custom in-memory per-player storage system. The reason for this is 
because just a position (e.g. that provided by pos1/pos2) is not enough 
- we need a radius as well.
2022-05-16 01:01:01 +01:00
0d7922d747
typo 2022-05-16 00:29:50 +01:00
03fb033b70
//dome+: add option to make the resulting dome hollow inside 2022-05-15 15:38:50 +01:00
04e971e12d
Add //dome+
Improvements oveer //dome:

 - Allow customising the direction it points in
 - Allow multiple pointing directions at once to give the effect of 
creating multiple domes on top of each other in a single command (it's 
actually implemented as an implicit union, and doesn't actually call 
wea.dome more than once).
2022-05-15 15:27:43 +01:00
a4237dcca5
depends.txt → mod.conf 2022-05-01 17:07:30 +01:00
3d12345972
//smake: fix luacheck warnings 2022-01-03 13:28:43 +00:00
4c7bb6a980
//sfactor: fix luacheck warnings; fix crash 2022-01-03 13:26:51 +00:00
81773c8556
//forest: use local wea alias 2022-01-02 17:17:05 +00:00
6a1fd707d4
//sculpt: fix crash when pos2 is not defined 2022-01-02 14:45:46 +00:00
98bf0ef386
//maze: Fix seed when generating multiple mazes in the same second 2021-12-31 14:02:53 +00:00
9df5ba6fe5
//sculpt, //sculptlist: fix naming of static brushes; prettify output 2021-12-31 01:43:53 +00:00
ef2dbc1806
Reorder brushes
circle_soft1 is now the default brush, as it's awesome
2021-12-28 19:07:02 +00:00
732010a8ee
//layers: comment debug logging 2021-12-28 18:37:54 +00:00
db5d25d1de
//convolve: update matrix & kernel to use Vector3
A lot of the maths remains in the old style, but at least it doesn't 
take a zero-indexed table
2021-12-28 18:31:46 +00:00
17cc91ba1c
//sculpt: implement circle brush 2021-12-28 17:45:20 +00:00
a2a9108d36
//sculpt: fix a bunch of bugs
including, but certainly not limited to, wea.make_heightmap now returns 
a Vector3 instance for heightmap_size
2021-12-28 15:22:51 +00:00
b0c3d34dd0
Implement apply function for VoxelManipulators 2021-12-28 02:17:26 +00:00
75ffa81b7e
bonemeal: tidy up split_shell call 2021-12-28 01:46:12 +00:00
462570f2eb
//bonemeal: bugfix argument parsing 2021-12-28 01:26:53 +00:00
d657ce1abe
//sculptlist: fix bugs. It works! 2021-12-27 19:36:57 +00:00
10c9d6f886
Start implementing a //sculpt command, but it's not finished or tested yet.
First up: test that our initial basic dynamic brushes work as intended 
with the //sculptlist [preview] command.

Also on the todo list: document it in the chat command reference!
2021-12-27 03:11:52 +00:00
af0e54cfdf
//maze: update to use Vector3 2021-12-26 22:48:37 +00:00
b962ace8a8
//maze, //maze3d: Fix crash if no arguments are specified 2021-12-26 22:45:37 +00:00
14ba42fa4a
//move+ add commented otu alias 2021-11-13 12:49:21 +00:00
607f2bfdea
//move+: bugfix 2021-11-13 12:41:00 +00:00
8ec89c3e67
Implement //move+, but it isn't working right just yet. 2021-11-13 12:36:10 +00:00
eaabf40301
Add commented out alias overrides
Eventually, worldedit *will* become an optional dependency. The
rationale for this is that WorldEditAdditions is outgrowing the core
WorldEdit API, and we want to add new features such as toggling
safe_region on and off with a chat command and other such goodies.

Merging the 2 mods is not something that has been discussed (due
mainly because I'm far too nervous to even ask the question in the
first place), but the 2 codebases are fundamentally different (and
for good reason, as WorldEditAdditions splits code over many different
files to improve maintainability and scalability) so this would
be a significant undertaking.

At no point however will WorldEditAdditions become incompatible
with WorldEdit itself. The 2 mods should happily co-exist with
one another (so long as you keep them both updated of course).
2021-11-11 02:54:44 +00:00
acb1ef1a0a
//copy+: write docs 2021-11-11 02:36:37 +00:00
d560583121
Make //copy+ a thing using the new wea.parse.axes 2021-11-11 02:20:37 +00:00
3f48832fff
Merge branch 'main' into VorTechnix 2021-11-07 14:31:01 +00:00
ea8a91568e
//spiral2: fix crash in parser 2021-10-31 19:48:51 +00:00
f5133d287b
Default to square spirals 2021-10-31 17:11:24 +00:00
e610eb7a92
//spiral2: fix bugs 2021-10-31 16:42:12 +00:00
dae59b63db
//walls: Prevent crash if not parameters are specified by defaulting to dirt as the replace_node 2021-10-31 16:41:52 +00:00
d3a8efb9b8
Add //spiral2, write glue for square spirals
Next up: circular spirals!
2021-10-31 15:11:01 +00:00
5fca3e4322
Fix bonemeal mod detection to look for the global bonemeal, not whether the bonemeal mod name has been loaded 2021-10-25 15:18:03 +01:00
2ae241aee5
Add //ellipsoid2 2021-10-14 01:50:27 +01:00
653864be99
Start working on //copy, but it's not finished yet.
We need to merge @VorTechnix's branch in first to gain access to 
advanced axis parsing functions before we can complete it.

For this reason, the command registration for //copy is currently 
commented out.
2021-10-11 02:41:45 +01:00
VorTechnix
0352595e41 Merge branch 'main' into VorTechnix 2021-10-10 18:37:58 -07:00
be3166624a
//replacemix: fix crash caused by invalid invocation 2021-09-18 12:16:03 +01:00
VorTechnix
bc0658b545 Update init.lua 2021-09-05 09:35:07 -07:00
VorTechnix
a5960983e7 Merge branch 'main' into VorTechnix 2021-09-05 09:34:54 -07:00
2920f7081d
Add //noiseapply 2021-08-07 23:01:15 +01:00
6cd367915d
//airapply: fix rogue args_parsed 2021-08-07 22:37:45 +01:00
fcd4de3429
//airapply: fix nodes_needed 2021-08-07 22:35:32 +01:00
10a649e597
//airapply: error handling 2021-08-07 21:16:17 +01:00
e1b1efb7ed
//spop: fix wording 2021-08-07 17:50:28 +01:00
82c1ebd42c
//sstack: add human-readable approx volume to output 2021-08-07 17:44:26 +01:00
VorTechnix
cff58792bf Merge branch 'main' into VorTechnix 2021-08-05 10:43:00 -07:00
f5f486f303
Bugfix //walls: correct nodes_needed calculations to take thickness into account 2021-08-05 02:07:20 +01:00
f30ddbae3b
//walls: add optional thickness argument 2021-08-05 02:00:38 +01:00
87f84e2482
//bonmeal: add optional node list constraint 2021-08-05 01:17:43 +01:00
ef678e6a05
//layers: fix 2021-08-04 12:17:39 +01:00
db830c6633
Implement slope constraint for //layers, but it isn't tested yet 2021-08-04 01:41:51 +01:00
VorTechnix
b20c8f9af1 Merge branch 'main' into VorTechnix 2021-08-01 07:03:31 -07:00
45def53294
various commands: Upgrade to use wea.split_shell 2021-07-31 16:03:04 +01:00
VorTechnix
bd84979393 //sshift added 2021-07-30 14:02:46 -07:00
655d9ebac9
//many, //multi, parse_reference: various luacheck fixes 2021-07-30 20:07:08 +01:00
c14bb40f7e
//ellipsoidapply: undefined variable fixes 2021-07-30 20:03:31 +01:00
23e08c5693
//multi: luacheck fix 2021-07-30 20:03:16 +01:00
1c8d572bb8
//airapply: fix undefined variables 2021-07-30 20:01:38 +01:00
47303acac1
//convolve: fix wea.convolve returns false, then return the associated error message 2021-07-30 20:00:41 +01:00
9ccd62845f
//line: correctly return error in parsing function 2021-07-30 19:59:34 +01:00
ee561cd6e4
//convolve: fix luacheck issue 2021-07-30 19:58:23 +01:00
f7cda8c817
//subdivide: Fix referencing undefined global variable 2021-07-30 18:06:44 +01:00
92451cf125
scale.lua: fix inconsistent whitespace 2021-07-30 18:05:45 +01:00
VorTechnix
b795f3b169 dissabled macros -- too buggy 2021-07-29 15:49:37 -07:00
VorTechnix
5757ef892d added //macro 2021-07-28 18:13:15 -07:00
VorTechnix
ebae1cd844 update to use player_vector 2021-07-28 18:08:22 -07:00
VorTechnix
0ecd6233ad Update for.lua 2021-07-28 18:06:26 -07:00
VorTechnix
43a59b68ff converted //for to step function 2021-07-28 13:35:52 -07:00
VorTechnix
57369099a7 Update basename.lua 2021-07-28 10:15:03 -07:00
VorTechnix
1436974e9b added //for 2021-07-27 19:56:45 -07:00