Commit graph

1382 commits

Author SHA1 Message Date
5fd0c3dad3
core/pos: implement set_multi as a convenient alternative to multiple set() calls
/cc @VorTechnix & https://github.com/sbrl/Minetest-WorldEditAdditions/pull/112/files?diff=unified&w=1
2024-09-30 22:01:22 +01:00
17390ab064
Changelog: bugfix //speed entry link 2024-09-18 01:15:26 +01:00
fbd32a1df9
chat command reference: add *Added in <version>* quotes; document //set+ 2024-09-18 01:15:05 +01:00
67701f36bc
README: add links, update quick reference 2024-09-18 01:14:28 +01:00
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
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
d787309127
copy, move: add TODO ref being node metadata-aware 2024-09-17 23:25:43 +01:00
d29b037675
orientation: refactor a bit, docs 2024-09-17 23:23:09 +01:00
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
0915a137f8
weac.table: dofile() table_find 2024-09-17 23:13:00 +01:00
6290c61e2f
typo 2024-09-17 22:56:02 +01:00
163f4fc0fd
weac.table*: fix documentation, table.find 2024-09-17 22:51:04 +01:00
da97890e0c
Make weac.table* appear in API docs 2024-09-17 22:13:01 +01:00
48af3e3127
run_command: fix crashes
...oops, should have tested that last commit
2024-09-13 02:58:24 +01:00
0561e02845
pos_marker_manage: fix crash 2024-09-13 02:54:38 +01:00
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
f09e10ae49
document register_command 2024-09-13 02:51:36 +01: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
1fd8512ecd
orient.lua: add comment
....gotta redo everything :-/
2024-08-18 20:59:16 +01:00
26a8658cfb
promise.lua: layout 2024-08-18 20:58:57 +01:00
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
d3ddb5575e
docs/index.html: fiddle with buttons at bottom of the page 2024-06-08 21:26:34 +01:00
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
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
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
080a5a9377
build: limit image processing to 2 processes at a time
....resizing 10 images at once is not going to end well on a raspberry pi
2024-06-05 00:10:08 +01:00
4f3b579db3
website: add one of Horka and kliv91's WIP screenshots 2024-06-05 00:06:11 +01:00
1dd073f14b
//orient: it works without crashing.... but very strangely.. 2024-06-04 23:07:05 +01:00
02d95cec46
Initial //orient implementation
....unfortunately, it doesn't work yet.
Next up is a frankly ridiculous number of print()s to figure out what's going on here
2024-06-04 22:49:41 +01:00
c712b502e9
//rotate+: typo in description 2024-06-04 22:43:09 +01:00
34e8f53de6
//set+: remove debug logging 2024-05-25 15:25:29 +01:00
4728dad02a
Add //ndef 2024-05-25 15:10:09 +01:00
170ec01bed
Alias //napply to //nodeapply 2024-05-25 14:48:38 +01:00
ffdd1b65b3
Implement //set+
This is on the road to //orient and later stair/etc support in //rotate :D
2024-05-25 14:45:56 +01:00
00478c2ea8
weac/polyfill: add @module so it appears in the Lua API 2024-05-25 14:06:57 +01:00
971bcff180
docs: update pretty-ms & do dynamic import 'cause 11ty is dumb 2024-05-19 16:34:25 +01:00
66c939c917
fix comments 2024-05-19 16:28:05 +01:00
f35fd643a2
docs: specify dev branch 'cause CI 2024-01-02 17:05:06 +00:00
2d36186da9
docs: Update moondoc 2024-01-02 17:03:42 +00:00
d0e59b4cd7
worldeditadditions: add core @module defs, correct comment formatting errors 2024-01-02 16:59:51 +00:00
15a52deea1
docs: add Lua API to site via moondoc!
Ref https://github.com/sbrl/moondoc
2024-01-02 16:31:30 +00:00
1ca524bbc3
Update changelog 2024-01-02 14:46:02 +00:00
abe66cf1c5
//speed: fix crash when pova isn't installed
stupid bug in weac.{player_get_physics_override,player_set_physics_override}, as you might have suspected
2024-01-01 22:24:49 +00:00