Commit graph

6904 commits

Author SHA1 Message Date
MihailRis
682ca665c9 make memory device create file on flush 2026-10-10 16:32:15 +03:00
MihailRis
ec51848447 update memory_ostream 2026-10-10 16:31:36 +03:00
ostermine
fa5466f675 fix zip archives paths and add zip files test
- create_zip from a subdirectory wrote entry names with a leading
  '/', so the mounted archive looked empty
- memory_ostream did not support tellp(), so create_zip into a memory
  device wrote invalid offsets (-1) to the archive
- ZipFileDevice added missing parent directories for the first entry
  only
- ZipFileDevice::exists returned false for the archive root
- MemoryDevice::mkdirs recreated existing directories, dropping their
  content (mkdir("a/b") cleared "a"); overwriting a file duplicated its
  name in the directory listing

Added dev/tests/zip_files.lua: builds archives with file.create_zip
from memory device root, subdirectories and the real filesystem,
mounts them and checks reading, listing and read-only access.
memory_filesystem.lua got checks for the MemoryDevice issues.

Closes #544
2026-10-10 15:54:28 +03:00
ostermine
2a01cfc5b1 add can_be_placed block event
can_be_placed(x, y, z, playerid, rotation) is called before a player
places the block, after the built-in checks (replaceability, grounded,
entities). The block is placed only if the function returns true.
rotation is the rotation the block is going to be placed with, so
blocks like ladders can check the block they are attached to.

The event is not called for block.place / block.set.

Closes #909
2026-10-10 15:54:21 +03:00
MihailRis
8ce3b6dc23 add '--test' to run.sh
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
2026-10-10 15:45:56 +03:00
MihailRis
7994d41b19 Merge branch 'main' into dev 2026-10-10 12:34:29 +03:00
MihailRis
1dd1af1a72
Merge pull request #1023 from MihailRis/remove-incorrect-fix
remove incorrect fix
2026-10-10 12:11:43 +03:00
MihailRis
521ebf43ab remove incorrect fix 2026-10-10 11:36:31 +03:00
MihailRis
f036979dc0
Merge pull request #1007 from Astazium/ui-fixes
ui fixes
2026-10-10 11:34:34 +03:00
MihailRis
7130a62593
Merge pull request #1022 from MihailRis/rename-voxelengine-to-voxelcore-in-cmake
complete the rename of voxelengine to voxelcore
2026-10-10 11:27:37 +03:00
MihailRis
8962042627 complete the rename of voxelengine to voxelcore 2026-10-10 10:54:36 +03:00
MihailRis
a875630cd8
Merge pull request #1021 from DIvan2K/main
flake.nix fix program filename
2026-10-10 10:47:23 +03:00
MihailRis
50de0afb62
Merge pull request #1019 from ostermine/fix/reload-module-env
fix reload_module ignoring pack environment
2026-10-10 10:42:59 +03:00
DIvan2000
a2321e0e28 fix program filename 2026-10-10 05:04:14 +04:00
ostermine
a22ceaf165 add key names for punctuation keys
Bindings can now use minus, equal, left-bracket, right-bracket, backslash,
semicolon, apostrophe, comma, period and slash (GLFW key codes).
2026-10-10 01:26:09 +03:00
ostermine
d8017ff995 fix reload_module ignoring pack environment
reload_module loaded the new module code with the global environment,
while require runs modules in their pack environment. After reload,
PACK_ID and other pack globals were nil in the module.
2026-10-10 00:52:23 +03:00
MihailRis
1b971b49a5
Merge pull request #1016 from MihailRis/upgrade-vca
upgrade vca
2026-10-09 00:52:27 +03:00
MihailRis
a382fa2aab update doc/*/vca.md 2026-10-09 00:19:36 +03:00
MihailRis
08abed324c fix 'color' target 2026-10-09 00:19:22 +03:00
MihailRis
51c8d78b88 add 'color' VCA directive 2026-10-09 00:14:59 +03:00
MihailRis
371b8baed1 Merge branch 'dev' into upgrade-vca 2026-10-09 00:10:24 +03:00
MihailRis
0958c72798 Merge branch 'main' into dev 2026-10-09 00:10:13 +03:00
MihailRis
e8a83423d8 fix outdated doc/*/scripting/builtins/libgfx-skeletons.md
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled
2026-10-09 00:09:48 +03:00
MihailRis
ad56f88e85 update doc/*/vca.md 2026-10-08 23:34:04 +03:00
MihailRis
ed799233e5 update doc/*/vca.md 2026-10-08 23:32:05 +03:00
MihailRis
a036a590ab add 'model' directive 2026-10-08 23:27:45 +03:00
MihailRis
26d09f750b replace control with show for visibility 2026-10-08 23:24:09 +03:00
MihailRis
05c0a1868d
Merge pull request #1014 from MihailRis/patch-0.32.2
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
0.32.2 patch
2026-10-07 23:31:28 +03:00
MihailRis
5060a8635d fix locked cursor if world was closed with menu hidden 2026-10-07 23:09:40 +03:00
MihailRis
bbe1873bc7 update doc/*/vca.md 2026-10-07 22:51:57 +03:00
MihailRis
1f2e938d83 feat: control flag visible for whole skeleton support 2026-10-07 22:32:11 +03:00
MihailRis
fed89b64c7 add 'control' VCA directive and 'visible' flag 2026-10-07 20:51:33 +03:00
MihailRis
b21f4d4439 refactor animation_codegen.lua 2026-10-07 19:55:19 +03:00
MihailRis
fdd62e2e19 remove unused feature 2026-10-07 18:20:51 +03:00
MihailRis
c0c60430d6 test 2026-10-06 22:18:07 +03:00
MihailRis
0b52369ed9 cleanup 2026-10-06 21:31:02 +03:00
MihailRis
d4d6235b2b start 0.33 development 2026-10-06 20:53:48 +03:00
MihailRis
2f87bbf608 optimize ssao pass 2026-10-06 18:41:26 +03:00
MihailRis
cf35023adf fix 'mouse:' input prefix is not available 2026-10-06 12:53:50 +03:00
MihailRis
99a62710b8
Merge pull request #1013 from MihailRis/patch-0.32.1
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled
0.32.1 patch
2026-10-05 23:18:48 +03:00
MihailRis
25cee0284f update advanced render lighting model 2026-10-05 23:15:20 +03:00
MihailRis
cdc32173c3 update doc/*/xml-ui-layouts.md 2026-10-05 22:26:04 +03:00
MihailRis
76e5e5b6f8 fix vca 'configure' directive parsing 2026-10-05 22:11:21 +03:00
MihailRis
446b6edd03 update doc/*/scripting/ecs.md 2026-10-05 21:57:16 +03:00
MihailRis
3c7755f61b fix 'selectable' with static entities 2026-10-05 21:39:18 +03:00
MihailRis
ef85592e21 fix chunks render limits 2026-10-05 21:21:33 +03:00
MihailRis
09b427be1e
Merge pull request #1011 from ostermine/docs/readme-openssl
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run
docs: add OpenSSL to Linux build dependencies in README
2026-10-05 19:15:04 +03:00
ostermine
a9069dd22e docs: add OpenSSL to Linux build dependencies in README
src/CMakeLists.txt requires OpenSSL 3.0 (Crypto) since the crypto
library was added, but the README install commands did not list it,
so configuring on a clean system fails with "Could NOT find OpenSSL".
CI workflows and the Dockerfile already install libssl-dev.
2026-10-05 04:03:17 +03:00
MihailRis
dacebf94bc 0.32 release 2026-10-03 11:13:27 +03:00
MihailRis
f6a7a99a74 revert "update shadows.glsl"
This reverts commit 19a952a3be.
2026-10-03 11:10:56 +03:00