Commit graph

4456 commits

Author SHA1 Message Date
MihailRis
6ab161a518 add 'tps' argument to on_world_tick event 2026-10-15 21:28:38 +03:00
MihailRis
4354896008
Merge pull request #1040 from MihailRis/world-logic-configuration
world logic configuration
2026-10-15 12:12:33 +03:00
MihailRis
0643909efd add assets.load_skeleton & feat: assets.parse_model vec3 support 2026-10-14 13:01:39 +03:00
MihailRis
d0803fce0c add world.get_logic, set_logic 'block_ticks', 'random_ticks' runtime world parameters 2026-10-14 12:15:32 +03:00
MihailRis
bccc6e154f
Merge pull request #1026 from ostermine/feat/can-be-placed
add can_be_placed block event
2026-10-13 22:23:08 +03:00
MihailRis
6f76dc7519 Merge branch 'main' into dev 2026-10-13 22:17:31 +03:00
Andrey Tazetdinov
c7a43593b1 optimize PhysicsSolver 2026-10-13 18:09:35 +02:00
MihailRis
03e0fd9259 feat: 'user:project' as default project option 2026-10-12 22:08:32 +03:00
MihailRis
57fa6393c2 feat: 'res:project' as default project 2026-10-12 20:06:30 +03:00
MihailRis
1f5d415f75 feat: reuse streams 2026-10-12 18:54:26 +03:00
MihailRis
64ae827f89 fix windows build 2026-10-12 18:39:48 +03:00
MihailRis
083fc514d5 fix it temporaary 2026-10-12 18:16:34 +03:00
MihailRis
2e7c6bca51 update platform::stdin_has_data 2026-10-12 17:14:03 +03:00
MihailRis
4f2fffbf74 test 2026-10-12 07:40:21 +03:00
MihailRis
6034c4933f add app.get_stdin_stream 2026-10-12 03:05:25 +03:00
MihailRis
47b29da3f4 Merge branch 'dev' into subinstance-interaction 2026-10-12 02:26:51 +03:00
MihailRis
b14fa9bde8 Merge branch 'main' into dev 2026-10-12 02:26:38 +03:00
MihailRis
ca066f46a6
Merge pull request #1032 from MihailRis/fix-security-issues
Some checks failed
Build / Build (push) Waiting to run
x86-64 AppImage / build-appimage (ubuntu-22.04) (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.4 patch
2026-10-12 01:03:37 +03:00
MihailRis
f246619c6b fix potential fatal errors 2026-10-12 00:30:49 +03:00
MihailRis
6f466d52f2 fix: missing network.request protocol filter 2026-10-12 00:21:24 +03:00
MihailRis
ab129367ad fix registry access in generator scripts 2026-10-12 00:15:28 +03:00
MihailRis
932fcf8e6d refactor: move posix sub-process starting to separate function & fix incorrect stdout in starting instance 2026-10-11 23:34:40 +03:00
MihailRis
51960b2449
Merge pull request #1034 from ostermine/feat/punctuation-keys
fix key bindings to punctuation keys lost after restart
2026-10-11 23:25:02 +03:00
MihailRis
0340e2977e add app.get_stdout_stream 2026-10-11 22:23:48 +03:00
MihailRis
d753c74858 update StdfsDevice::resolve, remove, removeAll 2026-10-11 22:17:47 +03:00
ostermine
50a02d251b remove obvious comment 2026-10-11 22:15:10 +03:00
ostermine
e57e6a5cbe fix modelviewer background is not transparent 2026-10-11 21:37:50 +03:00
MihailRis
0cacd1f670 fix missing include 2026-10-11 21:16:22 +03:00
MihailRis
f48176adcd fix macos build 2026-10-11 20:54:06 +03:00
MihailRis
af5ccae796 feat: sub-instance stdin/stdout descriptors 2026-10-11 20:40:24 +03:00
MihailRis
314f38c607 add scripting::io_descriptors::add_descriptor 2026-10-11 20:11:42 +03:00
MihailRis
102667839b add fd_istream, fd_ostream 2026-10-11 19:13:23 +03:00
MihailRis
3fc5a4322d Merge branch 'dev' into lights-fixes 2026-10-11 15:25:10 +03:00
MihailRis
e3d514c766 resolve conflict 2026-10-11 13:07:50 +03:00
MihailRis
369ba4d0be Merge branch 'dev' of https://github.com/MihailRis/voxelcore into dev 2026-10-11 13:06:07 +03:00
MihailRis
8226f73bf1 Merge branch 'main' into dev 2026-10-11 13:06:04 +03:00
MihailRis
eb2afe822d cleanup
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-11 13:05:30 +03:00
MihailRis
8868281b00
Merge pull request #1027 from ostermine/fix/zip-paths
fix zip archives paths and add zip files test
2026-10-11 13:02:15 +03:00
MihailRis
40db547817 fix: entities frustum-culling not uses hitbox size (it uses entity scale only)
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 20:42:07 +03:00
ostermine
0efabc1883 remove comments only relevant to the PR 2026-10-10 18:41:37 +03:00
MihailRis
48680d975f fix missing include 2026-10-10 17:05:03 +03:00
MihailRis
28e85a336f oh 2026-10-10 16:50:44 +03:00
MihailRis
bf98174e15 fix shader info log is truncated 2026-10-10 16:48:04 +03:00
ostermine
a56158b78e fix crash in create_zip for files without modification time
MemoryDevice::lastWriteTime returns file_time_type::min(). Converting
it to the system clock overflows, and on Windows std::localtime returns
nullptr for the resulting time, which was dereferenced
(access violation in zip_files test on MSVC).

Unknown or out of range time is now written as 1980-01-01 00:00,
the earliest MS-DOS date.
2026-10-10 16:39:20 +03:00
MihailRis
5fd3ce76da fix 2026-10-10 16:32:33 +03:00
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
7994d41b19 Merge branch 'main' into dev 2026-10-10 12:34:29 +03:00