Commit Graph

1450 Commits

Author SHA1 Message Date
Starbeamrainbowlabs
fbd32a1df9
chat command reference: add *Added in <version>* quotes; document //set+ 2024-09-18 01:15:05 +01:00
Starbeamrainbowlabs
67701f36bc
README: add links, update quick reference 2024-09-18 01:14:28 +01:00
Starbeamrainbowlabs
8f84188653
API.md: create a convenient file for those looking for documentation, as it's a well-known name 2024-09-18 00:37:35 +01:00
Starbeamrainbowlabs
51d3e0a23e
CONTRIBUTING.md: add Lua API link; minor update
...we need to overhaul this with a *bunch* more detail
2024-09-18 00:37:03 +01:00
VorTechnix
ea25e36f3c
doc updates 2024-09-17 16:19:05 -07:00
Starbeamrainbowlabs
d787309127
copy, move: add TODO ref being node metadata-aware 2024-09-17 23:25:43 +01:00
Starbeamrainbowlabs
d29b037675
orientation: refactor a bit, docs 2024-09-17 23:23:09 +01:00
Starbeamrainbowlabs
d49f6d2131
Lift orientation functions from screwdriver2 mod
Ref @12Me21 https://github.com/12Me21/screwdriver2/blob/master/init.lua#L75-L79
Ref @khonkhortisan https://forum.minetest.net/viewtopic.php?p=73195&sid=1d2d2e4e76ce2ef9c84646481a4b84bc#p73195

....if either of you have an issue with this, please get in touch! The licence seems to allow this lifting and relicencing like this (given it's WTFPL as of the time of typing), but correct me if I'm wrong.

For reference, WorldEditAdditions is currently licenced under the Mozilla Public License Version 2.0.
2024-09-17 23:18:37 +01:00
Starbeamrainbowlabs
0915a137f8
weac.table: dofile() table_find 2024-09-17 23:13:00 +01:00
Starbeamrainbowlabs
6290c61e2f
typo 2024-09-17 22:56:02 +01:00
Starbeamrainbowlabs
163f4fc0fd
weac.table*: fix documentation, table.find 2024-09-17 22:51:04 +01:00
Starbeamrainbowlabs
da97890e0c
Make weac.table* appear in API docs 2024-09-17 22:13:01 +01:00
VorTechnix
753ead2102
UAK to UAS 2024-09-17 14:10:02 -07:00
VorTechnix
aaa976c286
aliasing 2024-09-17 12:31:13 -07:00
VorTechnix
1a18d4c8d0
params modification for UAK 2024-09-17 12:31:02 -07:00
VorTechnix
a31e34f420
sfactor deprecation 2024-09-17 12:30:21 -07:00
VorTechnix
d43c8212d2
Documentation Update 2024-09-17 12:29:34 -07:00
VorTechnix
4c4fab189e
Update smake.lua 2024-09-15 17:04:57 -07:00
VorTechnix
38b55712cc
scentre, sshift stable + housekeeping 2024-09-15 09:15:22 -07:00
VorTechnix
d1c4f9bd19
finish deprecation 2024-09-13 10:47:42 -07:00
Starbeamrainbowlabs
12747f6524
pos_marker_manage: fix crash 2024-09-12 19:00:29 -07:00
Starbeamrainbowlabs
48af3e3127
run_command: fix crashes
...oops, should have tested that last commit
2024-09-13 02:58:24 +01:00
Starbeamrainbowlabs
0561e02845
pos_marker_manage: fix crash 2024-09-13 02:54:38 +01:00
Starbeamrainbowlabs
8c4d503f1f
turn wea_core into an EventEmitter; emit command execution pipeline events
These are subject to feedback and change - please let me know if they are named sensibly or not!
2024-09-13 02:52:35 +01:00
Starbeamrainbowlabs
f09e10ae49
document register_command 2024-09-13 02:51:36 +01:00
VorTechnix
f51ed36f9e
some optimization 2024-09-12 18:30:21 -07:00
VorTechnix
981bdc2b76
tested: stable enough 2024-09-12 17:45:19 -07:00
VorTechnix
23aae6959f
stabilizing fixes 2024-09-12 17:30:42 -07:00
VorTechnix
4ff01bba4e
new commands registered 2024-09-12 15:09:04 -07:00
VorTechnix
4dacd10597
sgrow, srel, sshrink UNSTABLE 2024-09-12 15:05:57 -07:00
VorTechnix
78c418cb24
pos_marker quick patch 2024-09-12 09:55:02 -07:00
VorTechnix
e24997dd80
Update split.lua 2024-09-12 09:54:40 -07:00
VorTechnix
005615df02
spaces in aliases don't work 2024-09-12 09:09:07 -07:00
VorTechnix
8247a595b1
re-aliasing 2024-09-12 08:04:21 -07:00
VorTechnix
4ab8e7ca2c
Deprecate scol, scube & srect 2024-09-12 06:54:46 -07:00
VorTechnix
a772f7ed55
Merge pull request #111 from sbrl/axis-parser-hv-rework
Axis parser hv rework
2024-09-12 06:32:53 -07:00
VorTechnix
738940a431
stable at last 2024-09-11 19:41:57 -07:00
VorTechnix
bcaceac28b
parseNumber unstable (0 bug) 2024-09-11 18:04:25 -07:00
VorTechnix
f9652c9621
Update to parser tests 2024-09-11 16:52:37 -07:00
VorTechnix
7e9e0f6a48
Finally committing this 2024-09-09 12:19:54 -07:00
Starbeamrainbowlabs
1fd8512ecd
orient.lua: add comment
....gotta redo everything :-/
2024-08-18 20:59:16 +01:00
Starbeamrainbowlabs
26a8658cfb
promise.lua: layout 2024-08-18 20:58:57 +01:00
Starbeamrainbowlabs
977dcc6a93
pos_marker_manage: add some checks to update_entity event listener
For #105 because I can't reproduce the issue.
2024-08-18 20:33:57 +01:00
Starbeamrainbowlabs
d3ddb5575e
docs/index.html: fiddle with buttons at bottom of the page 2024-06-08 21:26:34 +01:00
Starbeamrainbowlabs
f654bde966
promise/sbrl: bugfix
it should work in most situations now.
2024-06-07 00:08:12 +01:00
VorTechnix
3ccea536c8
Safety but with less freak-outs 2024-06-06 13:12:21 -07:00
VorTechnix
2c36ad600a
Somewhat working version of promise_tech
Now with tests in a block comment at the bottom!
2024-06-06 08:33:17 -07:00
VorTechnix
6bc27972b0
Create promise_tech.lua
My own version of a promise system... WIP and untested :P
2024-06-05 21:05:04 -07:00
Starbeamrainbowlabs
1300e9cc1d
promise.lua: initial UNTESTED implementation of JS promises in Lua o/
Got some caveats and subtle behavioural differences because Lua is dumb, but overall pretty happy with it!

This commit contains the most complicated recursive function I have ever written to date. It's late and I have absolutely *no* intention of testing this tonight :P
2024-06-06 00:24:02 +01:00
Starbeamrainbowlabs
e2167c4ba3
core.param2: add todo reimplement notice
Ref https://discord.com/channels/1135598362821935254/1247681375935533119

---------------------------------------

Hi, a wild //orient+ appeared! While it (probably) doesn't crash, it also unfortunately doesn't work yet.

This is because facedir e.g. points towards the direction the node is pointing, and minetest.facedir_to_dir doesn't capture all the nuance of how the node is pointing, and e.g. if a node is pointing +y and you want to rotate by (0, 90, 0) [degrees], then the current implementation won't do anything.

Then I decided that this is silly and there has to be a solution. After all, screwdriver2 has a great implementation! https://content.minetest.net/packages/12Me21/screwdriver2/

....then I found this lookup table in their codebase: https://github.com/12Me21/screwdriver2/blob/master/init.lua#L75-L79

....aaaaarrrggggghhhhh //orient+ is such a pain to implement!

and my existing implementation is so neat 😢 1dd073f14b/worldeditadditions_core/utils/param2.lua

so, in other words, although I've implemented //orient+ I'm going to have to reimplement the nuts-and-bolts function that does the rotation, which may make it slightly more complicated and annoying to implement support for nodes with param2 types other than facedir.

/rant about Minetest's param2 value and rotations 😛
2024-06-05 00:14:17 +01:00