Commit Graph

1358 Commits

Author SHA1 Message Date
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
Starbeamrainbowlabs
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
Starbeamrainbowlabs
4f3b579db3
website: add one of Horka and kliv91's WIP screenshots 2024-06-05 00:06:11 +01:00
Starbeamrainbowlabs
1dd073f14b
//orient: it works without crashing.... but very strangely.. 2024-06-04 23:07:05 +01:00
Starbeamrainbowlabs
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
Starbeamrainbowlabs
c712b502e9
//rotate+: typo in description 2024-06-04 22:43:09 +01:00
Starbeamrainbowlabs
34e8f53de6
//set+: remove debug logging 2024-05-25 15:25:29 +01:00
Starbeamrainbowlabs
4728dad02a
Add //ndef 2024-05-25 15:10:09 +01:00
Starbeamrainbowlabs
170ec01bed
Alias //napply to //nodeapply 2024-05-25 14:48:38 +01:00
Starbeamrainbowlabs
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
Starbeamrainbowlabs
00478c2ea8
weac/polyfill: add @module so it appears in the Lua API 2024-05-25 14:06:57 +01:00
Starbeamrainbowlabs
971bcff180
docs: update pretty-ms & do dynamic import 'cause 11ty is dumb 2024-05-19 16:34:25 +01:00
Starbeamrainbowlabs
66c939c917
fix comments 2024-05-19 16:28:05 +01:00
Starbeamrainbowlabs
f35fd643a2
docs: specify dev branch 'cause CI 2024-01-02 17:05:06 +00:00
Starbeamrainbowlabs
2d36186da9
docs: Update moondoc 2024-01-02 17:03:42 +00:00
Starbeamrainbowlabs
d0e59b4cd7
worldeditadditions: add core @module defs, correct comment formatting errors 2024-01-02 16:59:51 +00:00
Starbeamrainbowlabs
15a52deea1
docs: add Lua API to site via moondoc!
Ref https://github.com/sbrl/moondoc
2024-01-02 16:31:30 +00:00
Starbeamrainbowlabs
1ca524bbc3
Update changelog 2024-01-02 14:46:02 +00:00
Starbeamrainbowlabs
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
Starbeamrainbowlabs
c1fce81bc3
post_marker_wall: @module → @namespace 2023-12-31 17:08:36 +00:00
Starbeamrainbowlabs
31c2574ad4
README: Add mod compat list 2023-12-30 13:33:06 +00:00
Starbeamrainbowlabs
c6e047baef
README: Add @nosowow's project 2023-12-30 13:25:36 +00:00
Starbeamrainbowlabs
2f98b86c5f
movetool, //speed: add optdepend on pova
pova is a physics_override manager mod, so it's important we have support for it to ensure we play nice with other mods
Ref https://content.minetest.net/packages/TenPlus1/pova/
2023-12-30 13:12:10 +00:00
Starbeamrainbowlabs
45bed5cc71
docs: Improve //noise2d documentation
Thanks to @notsowow for pointing out that it didn't make sense!
2023-12-26 19:07:41 +00:00
Starbeamrainbowlabs
faddfe1d48
reference: document movement speed adjustment tool
also update changelog
2023-12-26 15:06:29 +00:00
Starbeamrainbowlabs
7d3b35a47b
wea_wands: Add move speed adjustment tool
It alters the current player's movement speed up or down in x0.5 increments. Min = x0.5.
left/primary click: increase speed
right/secondary click: decrease speed
min speed = 0.5
documentation incoming!
2023-12-26 14:59:46 +00:00
Starbeamrainbowlabs
0a9c125316
Implement //speed 2023-12-26 13:37:19 +00:00
Starbeamrainbowlabs
6d81d47a31
.....why?!?! 2023-12-26 13:23:48 +00:00
Starbeamrainbowlabs
a855ca729e
docs/HTMLPicture: remove debug logging 2023-12-26 13:12:17 +00:00
Starbeamrainbowlabs
460aed4f3b
such a stupid bug 2023-12-26 12:27:02 +00:00
Starbeamrainbowlabs
259b332883
docs: ....why wasn't this a problem *years* ago? 2023-12-26 12:22:57 +00:00
Starbeamrainbowlabs
78e30f78a8
website: Add gallery image from @notsowow 2023-12-26 01:43:59 +00:00
Starbeamrainbowlabs
34ac48f085
Implement keen-slider since the current one seemed to be a bit broken
...and also not scalable given what we want to do
2023-12-26 01:30:19 +00:00
Starbeamrainbowlabs
71d95b5e83
reference: add some more alerts in key places 2023-12-20 00:44:39 +00:00
Starbeamrainbowlabs
d07c1709cf
....turns out there *is* a GH alert markdown-it plugin!
Thanks, markdown-it-github-alerts :D
A bit of CSS ~~hackery~~ magic and we're away!
2023-12-20 00:40:35 +00:00
Starbeamrainbowlabs
8a143e9a4b
docs: add theme for note/tip/important/warning/caution alerts
Ref https://github.com/orgs/community/discussions/16925
.....unfortunately markdown-it (our markdown renderer) doesn't support the GitHub syntax yet
2023-12-20 00:29:10 +00:00
Starbeamrainbowlabs
37821f11d5
docs/img2brush: limit height of output, update wording 2023-12-20 00:07:24 +00:00
Starbeamrainbowlabs
2722a190f4
reference: update do cs about img2brush tool 2023-12-19 23:47:20 +00:00
Starbeamrainbowlabs
8ee7470435
docs: fix incorrect header handling in markdown rendering 2023-12-19 23:41:37 +00:00
Starbeamrainbowlabs
edbb6db264
//rotate: zero out param2 of source
Actually copying over and hanlding param2 properly ref rotation will require //orient+ first
2023-12-19 23:37:15 +00:00
Starbeamrainbowlabs
c35631cef4
update changelog 2023-12-17 12:36:08 +00:00