Sam Tupy on 2026-11-26T09:29:06Z: Report status 0 from url_get, url_post and url_request when no response arrived (fixes #488) When a request failed before any response arrived, such as for an unknown host or a refused connection, the http_response passed to these functions was left as a default constructed response claiming 200 OK, so a script couldn't tell a failed request from an empty successful one. * The response now has a status of 0 and an empty reason in that case, matching the http class's status_code. * Document the status of 0 for all three functions. * Add a level 3 test to test/case/internet_registration.nvgt.
Sam Tupy on 2026-11-26T09:29:06Z: Print runtime errors to stderr instead of a message box when a console is available (fixes #489) An unhandled exception or unexpected script termination always opened a message box, even in the console nvgt.exe, so automated runs such as test runners waited on a dialog until someone closed it. * When is_console_available() is true, as for nvgt.exe, a console game, or a binary inside a macOS app bundle run directly from a terminal, the error is printed to stderr and the process exits right away. nvgtw, windowed games and apps opened from Finder or the open command still show the message box. * -Q now silences these errors as well. * -Q's long name is now --silent. It was --QUIET, which Poco's case insensitive option lookup matched to --quiet, so -Q only ever set application.quiet.
Sam Tupy on 2026-11-26T09:28:55Z: Replace the int and float clamp overloads with a single double version (fixes #491) AngelScript chose the int overload whenever the bounds were integer literals, so clamp(0.5, 0, 1) or clamp(volume, 0, 1) truncated the value to 0, and clamp(7, 0.5, 2.5) didn't compile at all because both overloads matched equally. * clamp now takes and returns doubles, so any mix of integer and floating point arguments gives the right result, and integer results still convert implicitly to int variables and array indexes. * Update the clamp documentation. * Add test/case/clamp.nvgt.
Sam Tupy on 2026-11-26T08:58:27Z: Keep the C number format after selecting UTF-8 with setlocale (fixes #490) Certain number formatting operations were printing different values based on system locale, which this should normalize.
Sam Tupy on 2026-11-26T08:39:27Z: Don't retry HTTP requests whose server certificate was rejected The http class sent a request up to max_retries times after any network error, so a certificate that would never be accepted cost ten handshakes before the request failed. Certificate errors and broken TLS contexts now end the request at once, while dropped connections, timeouts and other network errors are still retried. Poco reports a certificate rejected during the OpenSSL handshake as SSLConnectionUnexpectedlyClosedException, the same type as a dropped connection, so certificate errors are recognised by an SSLException whose type or message mentions a certificate.
Sam Tupy on 2026-11-26T08:39:17Z: Disable TLS 1.3 on Windows until Poco's NetSSL_Win fixes are released (fixes #479) Poco 1.15.4's NetSSL_Win completes TLS 1.3 handshakes with some servers, such as caddyserver.com, letsencrypt.org and mastodon.social, but then reads nothing back, so every request to them failed (pocoproject/poco#5452). Poco's main branch has fixes for this which aren't in a release yet. TLS 1.2 is still secure, so the client context now leaves TLS 1.3 out on Windows, and it should be turned back on as soon as a Poco release includes the fixes.
Sam Tupy on 2026-11-26T04:37:04Z: Build the Windows dependencies with /Gw and /Zc:inline vcpkg never passes /Gw, so the linker could drop a library's unused functions but had to keep all of its data once anything from that object was linked in. utf8proc was the clearest case: NVGT never normalizes Unicode, yet all 343 KB of its tables ended up in every executable. Building every port with /Gw, together with the simdutf trim and the restored default flags from the previous triplet change finally being built, takes the Windows stub from 11.17 MB to 9.42 MB. * All ports are built with /Gw, and C++ ports also with /Zc:inline, which stops every object file from carrying its own copy of each inline function and shrinks the C++ libraries by about 40% on disk. * The simdutf defines are now appended to these flags rather than replacing them. * The same flags are applied to the arm64 Windows triplet.
Sam Tupy on 2026-11-25T20:20:00Z: Don't end compiled bytecode early on a 0xff byte (fixes #481) The bytecode stream returned each byte as a plain char, so on platforms with a signed char a 0xff byte became -1, the same value as eof(). Reading the payload header then stopped partway through, which made the executable fail to load whenever the build timestamp happened to contain a 0xff byte, about 1 build in 85 plus a recurring 72 minute window. The byte is now returned through char_traits::to_int_type.
Sam Tupy on 2026-11-25T19:48:35Z: Register http_credentials username, password and host getters as returning const string& (fixes #486) * The Poco getters return references but were registered as returning strings by value, so reading them gave empty strings, threw bad_alloc or crashed the process. * Add test_http_credentials_getters to test/case/internet_registration.nvgt.
Sam Tupy on 2026-11-25T19:46:49Z: Restore the vector methods lost in the switch to Jolt (fixes #485) The Jolt based vector dropped several methods the reactphysics3d one had, so scripts using them, including basic_character_controller.nvgt, no longer compiled. * Add normalize(), which normalizes in place and leaves a zero vector unchanged like the old method rather than producing NaN. * Add setToZero() along with a set_to_zero() spelling matching the rest of the vector API. * Add the is_zero, is_unit, is_finite, absolute, min_axis and max_axis properties and component wise division by another vector. * Document the new members and extend test/case/physics_math.nvgt.
Sam Tupy on 2026-11-25T19:43:50Z: Don't recursively delete the working directory when the compiled basename is cleared (fixes #484) #pragma compiled_basename * stored an empty build.output_basename, which the bundler took as set and resolved to the working directory, then removed recursively as if it were an old bundle. * The pragma now removes the build.output_basename key instead of setting it to an empty string, and the bundler also treats an empty basename as unset and falls back to the script's own basename. * An existing directory at the output path is only removed when it is at least one level below the script's directory and does not contain the working directory, so the script's directory, the working directory and their parents can never be wiped.
MarcroSoft on 2026-11-24T20:33:51Z: Update the third party attributions for Jolt, Blastspeak and bullet3 (#482) Add the MIT license of Jolt Physics, which the physics API has used since it replaced reactphysics3d. Remove Blastspeak and bullet3, which are no longer part of NVGT: Blastspeak went with the SAPI rewrite in #250, and bullet3 was replaced by reactphysics3d and later Jolt. Also drop the bullet3 build step from the Linux build instructions.
otaviols on 2026-11-23T18:32:27Z: form: don't crash when pasting into a single-line field with an empty clipboard (#470) string.split() returns an empty array for an empty string, so paste_single[0] threw "Index out of bounds" before the `if (paste == "")` check that is meant to handle this case. Pressing Ctrl+V with nothing on the clipboard ended the whole form with a script exception.
otaviols on 2026-11-23T18:29:29Z: form: accept characters typed with Ctrl+Alt (AltGr on Windows) (#471) control::check() drops typed text while the left Alt key is held, so that Alt+letter shortcuts don't also type the letter. On Windows, Ctrl+Alt is how AltGr is reported, and many layouts produce essential characters that way: on French AZERTY "@" is AltGr+à, and people also type it as Ctrl+Alt+à. With left Alt down those characters were silently lost, so a player couldn't type an e-mail address. A real AltGr key (left Ctrl + right Alt) already worked, which is why this doesn't show up in a quick test. Text is now accepted when left Alt is up OR either Ctrl is down. Alt+letter without Ctrl still types nothing.
otaviols on 2026-11-23T18:22:51Z: sound: open microphones on the shared sound context (#472) microphone_impl called ma_device_init(nullptr, ...), so every microphone got its own private miniaudio context. On iOS that matters a lot because the audio route could change mid-playback when a microphone opened. Pass the global context to the microphone device initialization.
MarcroSoft on 2026-11-23T18:19:05Z: Report a clean error instead of crashing when a bundle output file is locked (#473) * Report a clean error instead of crashing when a bundle output file is locked archive_write_open_filename's return value was never checked, so if the destination archive could not be opened (most often because the output file is locked by another program, e.g. open in an archive viewer), the following archive_write_* calls ran against a half-initialized archive and crashed the compiler with heap corruption (0xC0000374 on Windows) and no message. Route all five open sites (windows/mac/ios/linux/android) through a helper that frees the archive and throws a clear Poco::FileException naming the file, which the compilation pipeline surfaces as a normal error message.
MarcroSoft on 2026-11-23T18:03:06Z: Add graphics_renderer::render_texture_rotated (#474) Textures could only be drawn unrotated. Two overloads wrap SDL_RenderTextureRotated: one draws the whole texture at a position, rotated around its center, and one takes source and destination rectangles plus a rotation center relative to the destination's top left corner. Both take an angle in degrees (clockwise) and an optional flip_mode.
MarcroSoft on 2026-11-23T17:59:50Z: Install the compiler-less macOS stub from the Windows installer (#475) install/nvgt.iss named nvgt_mac.bin exactly, so nvgt_mac_nc.bin never made it into the Windows installer. Use the same wildcard as the other platforms (Fixes #467).
MarcroSoft on 2026-11-23T17:55:12Z: Let physics_body_id be returned by value on Linux x64 (#476) On x64 SysV, AngelScript refuses to return a value type from a native function unless it is flagged asOBJ_APP_CLASS_ALLINTS or ALLFLOATS, so on Linux every script failed to build with "Don't support returning type 'physics_body_id' by value". BodyID is a single uint32, so ALLINTS is correct.
MarcroSoft on 2026-11-23T17:49:21Z: Export the symbols plugins resolve from nvgt on Linux (#477) nvgt_phonon failed to load on Linux with "undefined symbol: g_soundsystem_last_error". GCC emits the plugin's own copy of audio_node_impl when it speculatively devirtualizes audio_node calls, and that copy refers to ma_node_* and g_soundsystem_last_error in nvgt. macOS and Android resolve such symbols from the executable, but a Linux executable exports nothing unless told to. Export just the symbols the inline code of sound.h and sound_nodes.h refers to, plus Jolt's debug assertion handler, through a dynamic list, rather than everything with -rdynamic, which would keep --gc-sections from dropping unused code.
Quin Gillespie on 2026-11-22T20:20:38Z: Link Windows release builds against the system Universal CRT and compile with /Gw
Quin Gillespie on 2026-11-22T20:20:38Z: Register only the Jolt shapes NVGT exposes so the linker can leave out the rest of Jolt
Quin Gillespie on 2026-11-22T20:20:38Z: Pack the UPX stubs with LZMA
Quin Gillespie on 2026-11-22T20:16:45Z: Build SDL on Windows with only its Direct3D 11 and software renderers
Quin Gillespie on 2026-11-22T20:11:05Z: Stop the Windows triplets from dropping vcpkg's default C++ flags such as /EHsc, and build simdutf with only its scalar implementation
Sam Tupy on 2026-11-21T22:27:37Z: A few more minor documentation fixes I expect we'll find more things to improve about the recent documentation that AI has generated, but after manually reviewing hundreds of these recent help topics (admittedly given the limit of one man's attention span being bombarded with reems and reems of similar data), I have concluded that the generated documentation is generally quite high quality certainly enough for others review and even study. During my review I mostly found that when the llm got something wrong, it was usually a mention of something out of context E. mentioning SDL by name in a topic where the new scripter doesn't need to know what underlying window library we use, and if there is any long-term improvement I would consider it'd be perhaps a larger number of simple examples.
Sam Tupy on 2026-11-21T08:05:27Z: Document timespan, timer, ftp_client and graphic, and bring the subscripting docs and tutorial in line with the reference * Add the timespan and timer classes to Date and Time, the ftp_client class to Networking, and the graphic class, the load_bmp, load_png, load_surface and create_surface functions and the blend_mode, flip_mode and pixel_format enums to User Interface. * The Subscripting Tutorial now uses string keys for call() arguments and the "0" return key, explains that the argument dictionary is cleared rather than holding &out values, and covers retrieve() and max_statement_count. * Update the docs of script_module::max_statement_count, script_function::call(), http::max_retries, http::retry_delay and smtp_client::use_ssl for the matching code changes.
Sam Tupy on 2026-11-21T08:05:27Z: Retry http requests after network errors, use TLS from the first byte on SMTP port 465, make script_module::max_statement_count a real default, and widen timespan totals to int64 * http now sends the request again after a network error until max_retries is used up, waiting retry_delay before each try and discarding any partial body, instead of silently giving up on the first exception. * smtp_client with use_ssl now connects with implicit TLS on port 465, and upgrades with STARTTLS during connect() on other ports (failing if the server doesn't support it) rather than only when logging in on port 587. * script_module::max_statement_count was never read. It is now stored with the module and used by script_function::call() when its own max_statement_count is 0, and a negative value passed to call() means no limit. * timespan::total_milliseconds and total_microseconds were registered as int and overflowed after a few minutes, they are now int64. * Add tests for the retries, the statement limit default and the timespan totals.
Sam Tupy on 2026-11-21T05:57:16Z: a few very minor doc corrections found during manual review
Sam Tupy on 2026-11-21T05:38:11Z: Fix system_tray menus when no window is shown, add a default window font, string.split max_elements, and several API and doc cleanups * system_tray initializes the video subsystem on creation, and wait() keeps pumping events on the thread that created a tray while one exists, so tray menus work from a script with no window. The system_tray docs now say what services the icon and that valid is false where trays are unsupported. * game_window now starts with a default font found through the new platform_get_font() in xplatform.h, implemented in win.cpp, apple.mm, linux.cpp and android.cpp, so draw_text works out of the box. The font property is null when the platform has none. text_font gained an is_valid helper. * string.split gained an int max_elements = 0 argument. A positive value stops after that many elements with the last holding the unsplit remainder, a negative value does the same counting from the right like python's rsplit. Add test/case/split_max_elements.nvgt. * uuid_create_from_name now uses SHA1 (version 5) and the MD5 (version 3) version was renamed uuid_create_from_name_md5, replacing uuid_create_from_name_sha1. * sound_aabb_shape ranges are now floats instead of ints. * Document what destroy_surface and the software surface are, that set_fill_document does nothing outside the web, and the units of set_position and get_position. * Replace the registration internals shown as the initialization list constructors of http_request, http_response, internet_message_header and name_value_collection with the {{string, string}, ...} form.
Sam Tupy on 2026-11-21T00:41:24Z: Document the networking, subscripting, user interface and game world APIs, and rename the Physics section to Game World Like the previous documentation commit, these pages were written with the help of AI, from the classes' registrations, NVGT's source and the documentation of Poco, SDL and SDL_ttf. Every example was compiled, and those that don't need a window or audio device were run, but reports of anything inaccurate are very welcome. * Networking gains an introduction explaining which class suits which job, and recommends the http class for nearly all web requests. The http class is now documented completely, along with the lower level name_value_collection, internet_message_header, http_request, http_response, http_client, https_client and http_credentials, socket, stream_socket and web_socket, smtp_client, mail_message and mail_recipient, spec::uri, spec::ip_address, socket_address and dns_host_entry, the url_get family, url_encode, url_decode, html_entities_decode and the DNS and credential functions, and the http_status, socket, web socket and mail enums. * Filesystem documents spec::path and the path_style enum. * memory_buffer is documented under Datatypes, and uuid and the uuid functions under Data Manipulation. * A new Subscripting section documents script_module, script_function, script_get_module and the related functions, including that NVGT doesn't initialize a module's globals when building it so reset_globals() must be called. * User Interface documents game_window, system_tray, system_tray_menu, system_tray_menu_item and text_font, get_font and the other font functions, set_window_fullscreen and the window, tray and font enums. show_window is corrected to return the game_window it shows. * The Physics section is renamed Game World, with an introduction, and also documents coordinate_map, coordinate_map_area, pathfinder, rotate and boxes_intersect.
Sam Tupy on 2026-11-21T00:41:05Z: Fix several script registrations of the internet and subscripting classes that disagreed with the functions behind them These were found while documenting the classes, by running the examples and checking the C++ each registration binds. * name_value_collection::get, and so the get of every header class, was registered as returning a reference while Poco's overload with a default value returns a string by value, so it returned garbage such as an empty string, or hung when given a default. It now returns a string. * uri::normalize was registered as returning a bool that Poco's function never returned. It now returns void. * script_module::compile_global was registered without the errors array the C++ function takes before the line offset, so a non-zero line offset was released as though it were an array. It now takes `string[]@ errors = null` before the line offset, like compile_function. * script_function::call stored narrow numeric return values such as int and float in the result dictionary as is, which a dictionary can't give back. They are now widened to int64 and double, as script_module::get_global does. * Every request of the http class resets the previous one, which also restored max_retries and retry_delay to their defaults, so they could never be changed. They are now only restored by reset(true), which also restores keepalive_timeout to the 10 second default the constructor uses rather than 30. * The http class follows 308 permanent redirects, as it did 301, 302, 303 and 307. * nvgt_subsystems.nvgt has the GIT, DLLCALL and RAW_MEMORY subsystems. * Add test/case/internet_registration.nvgt and test/case/script_function_call.nvgt.
Sam Tupy on 2026-11-20T22:32:37Z: Document the physics, math and audio systems and the nvgt_phonon plugin This is one of our first times using AI to help write documentation. Nearly every new page was at least basically reviewed by a human, but one person reviewing this much new material is bound to miss something, so reports of inaccuracies and any other feedback are very welcome. * Document physics_world, physics_body_id, physics_transform, physics_character, every shape class with its create function, physics_material_get, physics_material_list and the physics enums. * Update the vector and aabb documentation to the current classes, and document quaternion, plane and clamp. * Document audio_engine, audio_node and the rest of the audio system: mixer, with an overview recommending one mixer per object that is positioned with it rather than spatializing many sounds, the members inherited from mixer documented once there rather than on sound, the sound methods added recently such as load_pcm and stream_pcm, how a sound and its datasource interact, audio_node_chain, reverb3d, the reverb, delay, splitter and filter nodes, data sources, decoders, encoders, sound_aabb_shape and the audio enums and functions. Describe NVGT's built in HRTF instead of Steam Audio. * Document the nvgt_phonon plugin: sound_environment, sound_environment_source, phonon_binaural_node, the phonon panner and attenuator and the plugin's enums. * Explain that the bundler copies the libraries a game needs, removing the stale shared_library_excludes paragraph, and describe phonon.dll and nvgt_phonon.dll as belonging to the plugin. * Move the legacy sound's set_position page to the legacy_sound plugin, and remove physics from the to do list now that the Jolt integration works. * Write handles as @ rather than @+, which is internal to AngelScript registration, and number the signatures of overloaded functions as the doc generator expects, including on some older pages such as the array sort methods.
Sam Tupy on 2026-11-20T22:31:44Z: Add plane and physics_plane_shape, common shape members, closest points, and physics shapes as sound shapes * Add the plane math type, a scoped reference like aabb and vector, which can be made from a normal and constant, a point and normal or three points, and has signed_distance, project_point, offset, scaled and transformed. Its normal is always kept at unit length as Jolt's plane shape requires. * Add physics_plane_shape and physics_plane_shape_create, for floors and map boundaries that are solid behind them. physics_world::create_and_add_body fails when given a shape that must be static, such as a plane, with PHYSICS_BODY_DYNAMIC, as Jolt only asserts on this in debug builds and otherwise creates a massless dynamic body. * Every shape has mass, must_be_static, center_of_mass, inner_radius, contains_point, cast_ray, is_valid_scale, make_scale_valid, scaled and closest_point, relative to the shape's origin rather than Jolt's center of mass, and physics_world::get_closest_point does the same for a body in the world. Closest points are the given point itself when it is inside, and are solved exactly with GJK for convex and scaled shapes and by projection for planes. * Any physics_shape can be the shape of a sound or mixer, placed unrotated at the mixer's position, so a sound fills a sphere, capsule, box, plane or scaled shape and is heard from the point of it closest to the listener, or all around a listener inside it. * Bodies created with a shape that has a physics_material start with that material's friction and restitution, which were previously stored but never used. * The activation arguments of set_position, set_rotation, set_position_and_rotation, set_motion_type and set_shape defaulted to the undefined name JOLT_ACTIVATE, so calling them without that argument failed to compile. They now default to PHYSICS_ACTIVATE. * Add the decorated and plane shape types and the rotated translated, scaled, offset center of mass and plane shape sub types, and register the members shared by shape classes through helper functions. * Add test_plane, test_plane_shape, test_shape_common_members, test_shape_closest_point, test_world_get_closest_point, test_mixer_physics_shape and tests of material friction and default activation.
Sam Tupy on 2026-11-20T22:30:56Z: Fix several audio bugs, reorder the filter arguments, and add operators to audio_node_chain * Sounds started with play or sound_play leave their volume, pan and pitch unset by default so they keep the engine's own defaults. * A mixer can no longer be put into itself or into a mixer inside it, which made a loop in the node graph. * audio_node_chain::add_node appends to the end of the chain when called from a script without a position rather than inserting at the start, and inserts at the front when given -1, which a signed and unsigned comparison refused. * The closest point of a shape such as sound_aabb_shape was only recalculated when the mixer moved, so a listener walking into or around a shaped sound kept hearing it from where the mixer last was. Every shape is now tracked so that moving the listener updates it, replacing a shape no longer leaves the old one tracked, and a shape set on a mixer that is already positioned takes effect straight away. Other script types can be registered as sound shapes with register_sound_shape_type. * The WAV encoder's seek callback refused seeks from anything but the start, but dr_wav updates the header after every write and then seeks back to the end, so when encoding to memory or a datastream every write landed on top of the previous one. Frames written to an encoder are in the engine's channel count, but array sizes and offsets were worked out with the encoder's, so an encoder with fewer channels than the engine read past the end of the array. * sound::stream_pcm returns false when its buffer is full instead of waiting forever for room. * A sound paused with pause_fade is heard again when played, and is marked as paused. * audio_notch_filter now takes (frequency, q = 0.707) and audio_peak_filter, audio_low_shelf_filter and audio_high_shelf_filter take (frequency, gain_db, q = 0.707), both from scripts and in C++, as the frequency is nearly always what is chosen while 0.707 is a natural default for q. This breaks scripts that create these filters. * audio_splitter_node's engine defaults to sound_default_engine and its channels to 0, meaning the engine's channel count. * audio_node_chain has add_nodes, which adds an array of nodes in order, += to add a node or an array of them so that chain += {a, b, c}; builds a chain, and -= to remove a node. * Extend the audio_decoder, audio_encoder, audio_node_chain and mixer tests, mark the slow sound_environment tests as level 3, and note in the headers of AI generated tests that they are.
Sam Tupy on 2026-11-20T22:28:27Z: Fix debug Windows plugins freeing memory across modules, and link the phonon plugin's missing libraries Every module linked with the static debug CRT keeps its own list of heap blocks, so when a debug plugin returned a string long enough to need a heap buffer, such as sound_environment::save_baked_data, the script freeing it in NVGT failed a debug heap assertion, which showed a dialog and hung or crashed the test. Release builds were unaffected because the static CRT allocates from the process heap that every module shares. * Debug Windows builds of NVGT export nvgt_debug_operator_new and nvgt_debug_operator_delete. * Debug Windows plugin DLLs replace their global operator new and delete with ones that look these up from the executable on first use, so that even allocations made by static initializers use NVGT's heap, falling back to the plugin's own heap if the executable doesn't export them. * The Windows phonon plugin links Jolt, as the assertions in Jolt's inline math call JPH::AssertFailed in debug builds and a DLL must resolve it itself. * The phonon plugin links Android's log library, which the static Steam Audio build writes to.
Sam Tupy on 2026-11-20T22:27:55Z: Add the nvgt_phonon plugin, bringing back Steam Audio with sound_environment occlusion, transmission, reflections and pathing Steam Audio now lives in a plugin, loaded with #pragma plugin nvgt_phonon or linked statically, for games that want its HRTF or its simulation of how sound travels through a game's world. The plugin only uses NVGT through the plugin API and the virtual methods of NVGT's audio objects, so it also works as a shared library. * The plugin provides the phonon HRTF panner and attenuator (audio_panner_phonon_hrtf and audio_attenuator_phonon, constant ints as a plugin can't extend NVGT's enums), phonon_binaural_node and sound_environment. When Steam Audio is a shared library rather than linked into the plugin, the plugin bundles it with compiled games. * sound_environment follows the design of Steam Audio's own engine integrations. Its scene traces rays through any nvgt_raycast_provider such as a physics_world, so Steam Audio's simulation threads work alongside Jolt's thread safe queries. Sounds and mixers created with new_sound and new_mixer, or attached to the environment, are sent through its reverb3d, whose attachment handler gives each one a sound_environment_source applying the simulated occlusion and transmission, with per source settings and simulation results. * Reflections are simulated for a budget of max_sources shared reflection groups, 16 by default, which nearby sounds join, so their cost is bounded by the number of groups rather than the number of sounds and released sounds leave straight away while their group's tail rings on. Reflections are hybrid by default, mixing convolution and parametric reverb, pass through a high-pass filter, and give a source's first sound its full reflections. Distant sounds glide between areas without bursts of reverb. * Probes can be generated or placed by hand and baked, saved and loaded. Baked reverb is looked up for the listener rather than simulated, and baked paths let sounds be heard around obstacles. * Simulation settings are properties of the environment and can be changed while sounds play, rebuilding the simulator when needed. Timing properties report how long simulations take, and the source capacity grows instead of silently dropping reflections. * physics_world traces batches of rays under one acquisition of Jolt's broadphase lock, through the batched ray cast patch to the joltphysics port, as the lock's shared cache line kept acoustic ray tracing from scaling beyond about four threads. * Bodies can be acoustically transparent, through a physics_material property, and characters are by default, so a listener inside a character isn't occluded by it. * physics_world's gravity defaults to 0, 0, -9.81, so the z up coordinate system works without configuration. * A plugin is linked statically when either its directory or the name of its static library, which is the name it registers under, is listed, so static_phonon_plugin=1 or listing nvgt_phonon in user/static_plugins both work. Add ASAddon/plugin/scripthandle.cpp for shared plugins. * Add test/case/phonon.nvgt and test/case/sound_environment.nvgt, which render audio through an engine without a device, test/interact/sound_environment.nvgt walking a physics_character around a small world of materials with a closable doorway, a microphone loopback and a settings list, and test/quick/sound_environment_performance.nvgt. physics_math.nvgt also tests the conditional operator with vector and quaternion temporaries.
Sam Tupy on 2026-11-20T22:24:44Z: Make microsynthiser's HRTF NVGT's built in HRTF, remove Steam Audio from NVGT itself, and let plugins provide spatialization NVGT's HRTF needed Steam Audio, which is large and only needed by games that want its environment simulation. microsynthiser, a single header port of Synthizer's panners and effects, gives every game a light HRTF and a decent reverb without it. Steam Audio is no longer linked into NVGT, shrinking the executable by about 6MB, and returns as the nvgt_phonon plugin in a following commit. * Add dep/microsynthiser.hpp, implemented in dep/singleheader.cpp. * hrtf_panner applies Synthizer's HRTF and, like Steam Audio, scales the log magnitude and phase of its minimum phase impulses and its interaural delay by a spatial blend within 5 units of the listener, rather than crossfading with the unchanged sound which collapsed the difference between the ears. Stereo sounds keep their stereo image at the listener. hrtf_attenuator applies NVGT's distance curve followed by Steam Audio's three band air absorption model, taking a unit as 0.3 meters, so distant sounds get duller as well as quieter. * Audio games rarely treat a unit as a meter, but the attenuators were tuned as if it were. The basic attenuator's curve, 1.75 decibels per unit beyond the minimum distance for a rolloff of 1, now fades smoothly to silence at the maximum distance rather than cutting off there, and is shared by every attenuator so sounds are about as loud at a distance whichever is in use. The default rolloff is now 0.375 and the default maximum distance 50. Scripts that set a rolloff keep the basic attenuator's previous slope. * set_sound_global_hrtf and sound.hrtf use them as audio_panner_hrtf and audio_attenuator_hrtf. They are always enabled, so sound.hrtf works without the global setting, which now only chooses the default panner and attenuator. * audio_fdn_reverb_node wraps microsynthiser's feedback delay network reverb, with its wet, dry, width, frozen, filter, decay, diffusion, modulation and delay settings. * Attenuators can register their distance curve, which get_audio_attenuation evaluates for any distance, and spatialization parameters carry the id of the attenuator in use. * A reverb3d can be created with a reverb3d_attachment_handler, which creates the node each source is sent to the reverb through and receives the source's spatialization parameters every audio update, so reverbs that process every source individually can plug into the existing spatializer. A reverb3d attachment can be any node with one input and two output buses rather than a splitter_node, and mixer.get_reverb3d_attachment returns an audio_node. * Plugins can only use NVGT's audio objects through their virtual methods and the plugin API, so NVGT creates the nodes they need and lets them implement the processing. nvgt_register_audio_panner and nvgt_register_audio_attenuator register spatializer component factories and return the ids scripts select them by, nvgt_audio_spatializer_component_create makes a panner or attenuator node around an audio_plugin_spatializer_component_interface, nvgt_get_audio_attenuation evaluates any attenuator's curve, and nvgt_get_default_audio_engine and nvgt_reverb3d_create_with_handler give plugins the default engine and reverb3d's attachment handlers. NVGT_PLUGIN_API_VERSION is now 9. * plugin_node gave miniaudio a single channel count however many buses it had, while miniaudio reads one per bus. It now has a count for each. * An audio_spatializer's parameters were considered valid before it had ever computed them, so attaching a reverb3d immediately passed it zeroed parameters. They are now only valid once computed. * SOUNDSYSTEM_FRAMESIZE is now 512, making the engine and device periods about 10ms at 48kHz, in line with typical device buffers, and making Steam Audio's partitioned convolution much cheaper. * Add test/case/hrtf.nvgt, and use set_sound_global_hrtf rather than the freeverb effect in test/interact/hrtf.nvgt.
Sam Tupy on 2026-11-20T22:21:59Z: Replace ReactPhysics3D with JoltPhysics Jolt is actively maintained, builds on every platform NVGT supports, and can run its simulation across multiple threads. The physics API is rewritten around it rather than mirroring ReactPhysics3D's, and ReactPhysics3D is removed from the code, build scripts and dependencies. * vector, quaternion and aabb are Jolt's SIMD Vec3, Quat and AABox, registered as scoped reference types allocated with the alignment SIMD needs. Scripts use them like value types, and the samtupy/angelscript fork lets compound assignments such as v.x += 1 work through their property accessors. Jolt's by-value arguments are bound through wrappers taking references, as passing them by value only happened to work with the Windows x64 calling convention, and the tolerance parameters of is_normalized and is_near_zero are optional using Jolt's defaults rather than being read uninitialized. * physics_world wraps Jolt's PhysicsSystem with bodies identified by physics_body_id, physics_transform, object layers, activation and motion quality. Contact callbacks are queued during the simulation and dispatched on the main thread once the update finishes. * Shapes are physics_box_shape, physics_sphere_shape, physics_capsule_shape, physics_cylinder_shape, physics_tapered_capsule_shape and physics_tapered_cylinder_shape, all castable from physics_shape and physics_convex_shape. The tapered create functions return null where Jolt would substitute a sphere or plain cylinder. * physics_material is a registry of shared materials with typical friction, restitution and acoustic properties, accessed with physics_material_get, physics_material_register and physics_material_list. * physics_character wraps Jolt's rigid body character controller, created from any shape or as a standing capsule, with its up direction taken from the world's gravity so Z up worlds work without rotated shapes. * nvgt_plugin.h defines a raycast provider interface that physics_world implements with thread safe narrow phase queries, so subsystems that trace rays through a game's world, including plugins, don't depend on how that world is represented. Infinitely long rays are clamped to the world's bounds. * Compiled executables loaded their plugins before configuring the engine, so a plugin registering anything that depends on a builtin type, such as those of the sound system, failed to load even though it worked when running from source. Plugins are now loaded once the engine is configured, and test_plugin checks this. audio_plugin_node_interface gains on_node_destroyed so plugins can free the implementations of their nodes. * pathfinder::find inserted a pointer to a vector pointer into its result array. The serializer writes and reads vectors in the 3 float layout they had as value types so previously serialized data still loads, and the debugger formats them. * Add test/case/pathfinder.nvgt, physics_character.nvgt, physics_math.nvgt and physics_shapes.nvgt, and test/quick/aabb_scoped.nvgt.
Sam Tupy on 2026-11-20T22:19:36Z: Give test cases levels, fix decoding Vorbis and Opus from datastreams and retrieving numeric globals from get_global (fixes #387) * Test cases have a level from 1 to 3, 2 unless the test declares a global such as const int test_foo_level = 3, and the runner only runs up to level 2 unless given -l followed by a higher level, so slow tests such as long audio simulations don't hold up the default run. The runner prints how many tests were skipped for their level, and naming a test with -t runs it regardless of its level. * script_module::get_global returned an any holding an int, float or other narrow number, which an any can't give back to a script. Integer globals are now widened to int64 and float globals to double. * miniaudio 0.11 stopped letting ma_decoder_init take a tell callback, without which decoding backends such as Vorbis and Opus fail to open custom streams, so audio_decoder.open(datastream) failed with ogg and opus files. NVGT's miniaudio port now patches ma_decoder_init to take and pass on a tell callback as it does in miniaudio 0.12, and audio_decoder gives it the datastream's position again. * The contribution guidelines ask for small reproducing scripts in issues, suggest testing pull requests with our CI, and replace the AI section with guidance on using AI responsibly when contributing. * Add test/case/audio_decoder.nvgt and test/case/script_module_get_global.nvgt, and mark split_spaces' large string test as level 3.
Sam Tupy on 2026-11-20T22:13:57Z: Update dependencies for the Jolt physics and audio work, and trim the Windows build This adds the libraries the following commits need ahead of the code using them. ReactPhysics3D is still built here and is removed along with the code that uses it. * Add JoltPhysics as an overlay port built with RTTI, patched to trace batches of rays through the broadphase together so acoustic ray tracing doesn't walk the tree once per ray. * Replace the registry steam-audio port with an overlay port. It fixes a crash in convolution reverb caused by an unaligned multiply-accumulate, fixes the arm64 Windows build, uses vcpkg's own dependencies, runs the simulation threads below normal priority so they don't compete with the audio thread, reconstructs reflection impulse responses in parallel, and always publishes the newest simulation results rather than occasionally handing out stale ones. Drop the unused steam-audio-official port. * Add a miniaudio overlay port fixing the start of asynchronously loaded sounds being skipped, as the available frames of a partially decoded buffer were miscounted. * Update AngelScript from the samtupy fork, fixing initialization lists of scoped types and the conditional operator with scoped type temporaries. * Use Windows' own TLS (Schannel) through Poco's NetSSL_Win for HTTPS on Windows instead of OpenSSL, which was the largest part of the Windows executable, and keep OpenSSL out of the Windows dependencies entirely. The extra submodule's curl plugin does the same. * Build SDL without its audio, camera and GPU subsystems, which NVGT doesn't use. * Compile Linux dependencies with separate function and data sections and let the linker drop unreferenced code on Linux and macOS. * Search the debug library folder before the release one in debug builds, which previously came second, and give nvgtw its pdb in any debug build. * CI caches dependencies as soon as they're built, avoids GitHub's API rate limit while building them, prefetches GitHub commit patches with retries as their intermittent 503 errors outlast vcpkg's own, and has the package jobs download only the platform release artifacts so they no longer race the deletion of the encrypted config.
MarcroSoft on 2026-11-19T13:17:33Z: Build a compiler-less Android stub (nvgt_android_nc.bin) (#468) Android stubs are built in their own SConstruct branch and packaged by Gradle/makestub.py, so the nc stub logic in the common stub section never covered them. Link a second libgame.so against angelscript_nc (replacing every angelscript entry, since LIBS lists it twice on Android), package it via a new stubnc Gradle flavor that reuses the stub manifest and Java sources, and have makestub.py name it nvgt_android_nc.bin. The installer now uses a wildcard so the new stub is shipped. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sam Tupy on 2026-11-17T20:07:36Z: Build Angelscript from the samtupy/angelscript fork and merge upstream add-on fixes Switch the angelscript and angelscript-nc vcpkg ports to the samtupy/angelscript fork, synced with upstream master, so that changes not yet merged upstream can be used. This brings in upstream's foreach fixes (a leak on break with object loop variables, foreach over value type containers) and Windows arm64 support. The as_builder.cpp hunk is dropped from add-no-compiler.patch because upstream now includes that fix, and angelscript-nc's version is corrected to 2.39.0. Merge upstream bug fixes into the ASAddon copies of the add-ons while keeping NVGT's changes: * scriptarray and scriptgrid: keep the subtype flags as 64-bit asQWORD values, compute buffer sizes with size_t to avoid overflow, make find and find_by_ref const correct, and support foreach with the generic calling convention using NVGT's int64 iterators. * scriptbuilder: clear class metadata between builds, and fix metadata for nested namespaces declared on one line and for variables using direct object initialization. * serializer: restore objects only referenced from handles and restore template types by their full declaration. * scriptany: register the retrieve methods as const. * scripthelper: read and write enums with an underlying type in configuration files. * scriptstdstring: create the string factory singleton thread safely.
Sam Tupy on 2026-11-17T18:56:35Z: Build Android libraries with 16 KB page alignment (#466) Google Play requires 16 KB page size support for apps targeting Android 15 and later, and such apps fail to load on devices using 16 KB pages. * Link with -Wl,-z,max-page-size=16384 in both the SCons Android build (libmain, libgame and plugins) and the ndk-build Android.mk, and set APP_SUPPORT_FLEXIBLE_PAGE_SIZES in Application.mk. * Pass ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON and the same linker flag in the arm64-android vcpkg triplet so shared libraries in droidev such as libSDL3.so and libgit2.so are aligned once droidev is rebuilt. * Update the extra submodule so the curl and sqlite plugins no longer discard the environment's linker flags.
Sam Tupy on 2026-11-17T18:51:42Z: Add nvgt_register_shutdown_notification for plugins (#426) Plugins can now pass a function pointer to nvgt_register_shutdown_notification, exported through the shared plugin function table like nvgt_bundle_shared_library. Registered functions are called once each, in reverse registration order, at the start of NVGT's uninitialize, so they run for both static and shared plugins after the script and its on_exit have finished but before NVGT's subsystems and the Angelscript engine are shut down. unload_nvgt_plugins also delivers any pending notifications before unloading libraries. This bumps NVGT_PLUGIN_API_VERSION to 6, so shared plugins must be rebuilt. The test plugin now registers a notification, and the plugin creation docs describe the new function.
Sam Tupy on 2026-11-17T18:47:59Z: Fix datetime/calendar add_months, add_years, diff_years and diff_months (#459) * add_months and add_years passed the microsecond as the millisecond argument of assign, corrupting both fields. * add_years now clamps February 29th to the 28th in non-leap years like add_months does, rather than throwing. * diff_years counted the fractional part incorrectly whenever the earlier date was later in its year than the later date. It now counts whole years up to the last anniversary of the earlier date and adds the remainder as a fraction of the following year, so exact anniversaries give whole numbers. * diff_months is now computed directly from the year and month difference instead of relying on diff_years. * Add test/case/date_arithmetic.nvgt.
Sam Tupy on 2026-11-17T18:46:30Z: Only use Prism's UIA backend while Narrator is running (#464) Prism reports the UIA backend as supported at runtime whenever any UI Automation client is listening, so with no screen reader running it was selected anyway. screen_reader_speak then reported success for notifications nothing reads, which stopped speech.nvgt and similar code from falling back to SAPI. The UIA backend is now only selected while a Narrator.exe process exists. Scanning processes takes a few milliseconds, so the result is cached for 5 seconds and the scan only happens when selection reaches UIA, which is below every real screen reader in Prism's priority order. Because UIA's runtime availability often doesn't change when Narrator starts or exits, Prism's availability callback can't be relied on to trigger a new selection. So while UIA is selected, or was skipped only because Narrator wasn't running, speech calls repeat the check at most every 5 seconds and select again if Narrator's state changed. When another screen reader is selected, speech calls do no extra work.
Sam Tupy on 2026-11-17T18:46:02Z: Fix crash formatting exception info when bytecode has no section names (#465) Release builds strip section names from bytecode, so GetDeclaredAt returns a null section name. GetExceptionInfo streamed that null pointer, which aborts on Android and silently truncates the message elsewhere. The file line is now omitted when there is no section name, and call stack entries fall back to just the declaration (with the line number if one is known). Also guard the same null section name in script_function.get_declared_at, script_function.script and the call_script_function exception message.
Sam Tupy on 2026-11-17T18:41:54Z: Mouse improvements: relative mouse mode, unbounded MOUSE_X/Y, mouse events * MOUSE_X/MOUSE_Y now accumulate SDL's per-event relative motion rather than diffing absolute positions, so they keep reporting movement when the cursor can no longer move (fixes movement stopping at the window edge while the mouse is grabbed in relative mode). * Add mouse_relative_mode global property and window.mouse_relative_mode, disabled by default; the global setting can be set before show_window and is applied when the window is created. * Add on_mouse_button_down, on_mouse_button_up, on_mouse_move and on_mouse_wheel engine events, replacing the unused engine_mouse_event. * Document the new events and property, and update the mouse_grab, MOUSE_X and MOUSE_ABSOLUTE_X docs to recommend relative mode for mouse-controlled games. * Add test/case/mouse_events.nvgt.
Sam Tupy on 2026-11-13T23:35:58Z: update macos CI runners to macos-26
Sam Tupy on 2026-11-13T18:49:41Z: update mac_release CI runner to macos15
Sam Tupy on 2026-11-13T17:50:54Z: legacy_sound android hopefully link with liblog
Sam Tupy on 2026-11-13T10:44:27Z: remove stray libphonon.so reference from SConstruct
Sam Tupy on 2026-11-13T06:16:07Z: make android.mk use phonon static build
Sam Tupy on 2026-11-13T05:07:46Z: upgrade build_android to macos15
Sam Tupy on 2026-11-13T01:40:19Z: bundling - don't make lib directory if no libs are needed
Sam Tupy on 2026-11-13T01:39:12Z: fix load name of libz in legacy sound on non-windows
Sam Tupy on 2026-11-13T01:35:44Z: Fix corrupt sdl3 fix-freebsd.patch on Windows CI, enforce LF line endings for vcpkg ports and triplets A blank context line in fix-freebsd.patch was missing its leading space. git apply tolerates this with LF endings, but Windows checkouts with autocrlf convert it to CRLF, producing 'corrupt patch at line 8'.
Quin Gillespie on 2026-11-13T00:09:58Z: Use Prism for screen reader output (#438)
Sam Tupy on 2026-11-13T00:05:43Z: vcpkg deps update, Steam Audio now linked statically (larger binary by a few mb, no more 50mb phonon.dll needed though) Might introduce broken CI for a few commits.
MarcroSoft on 2026-11-12T22:33:47Z: Make touch_gesture_manager::is_available const so the available property compiles (#461)
squerinth on 2026-11-12T22:33:24Z: Added documentation for parse_int, parse_uint, parse_float and parse_double functions. (#462)
Strilin on 2026-10-19T20:31:52Z: Set ma_plugin_node::impl so plugin audio nodes are processed (#456) plugin_node_impl never assigned the impl back-pointer of its ma_plugin_node, which make_unique value-initializes to nullptr. ma_plugin_node_process_pcm_frames therefore always skipped the call, so the process() callback of a node created with nvgt_audio_plugin_node_create was never invoked and its output buffer was never written.
Quin Gillespie on 2026-10-15T15:56:28Z: Return true from stream socket bind instead of an undefined value (fixes #455)
Quin Gillespie on 2026-10-15T15:55:47Z: Throw instead of hanging when waiting on an empty async (fixes #454)
Quin Gillespie on 2026-10-15T15:55:19Z: Register atomic postfix operators without a parameter (fixes #453)
Quin Gillespie on 2026-10-15T15:54:31Z: Subtract the imaginary parts in complex opSub (fixes #451)
Quin Gillespie on 2026-10-15T15:54:08Z: Escape the empty default application_id in the fingerprint functions (fixes #450)
Quin Gillespie on 2026-10-15T15:53:38Z: Center dynamic_menu stick thresholds on the unsigned axis range (fixes #449)
Quin Gillespie on 2026-10-15T15:53:20Z: Label noon hours as PM in logger (fixes #448)
Quin Gillespie on 2026-10-15T15:52:45Z: Advance past tied notes in soundtrack and hold them for their full length (fixes #447)
Quin Gillespie on 2026-10-15T15:52:23Z: Return the result of db_props updates from commit (fixes #446)
Quin Gillespie on 2026-10-15T15:52:23Z: Escape the primary key in db_props row filters (fixes #445)
Quin Gillespie on 2026-10-15T15:52:22Z: Load negative stat_set integers as doubles so arithmetic works on them (fixes #444)
Quin Gillespie on 2026-10-15T15:52:22Z: Fix stat_set sort_behind removing the wrong entry (fixes #443)
squerinth on 2026-10-13T20:28:54Z: Fix menu.nvgt compilation error (#441)
Quin Gillespie on 2026-10-10T15:02:35Z: Pass thread timeouts as unsigned int and let thread_sleep work on any thread (fixes #330)
Quin Gillespie on 2026-10-10T14:57:26Z: Default the always implement constructor and copy options back to off
Quin Gillespie on 2026-10-10T14:57:26Z: Hash coordinate map frames properly so large areas add in linear time (#423)
Day Garwood on 2026-10-10T12:41:45Z: Extend user-facing AngelScript configurations (#433)
MarcroSoft on 2026-10-10T12:40:53Z: Build angelscript-nc without the compiler again (#439) The June dependency update broke the no-compiler build: the new known-types cache initializes hasCachedKnownTypes in the asCBuilder constructor, but the member is only declared when AS_NO_COMPILER is not defined (C2065). Guard that initialization in add-no-compiler.patch and turn AS_NO_COMPILER back on, so the nc stubs ship without the script compiler again.
juan emiliano sanchez morales on 2026-10-09T14:09:55Z: Fix window rendering flicker and support loading images from packs (#434) Track pending drawing so refresh_window() presents a frame only when needed. An explicit present() clears the pending state, preventing wait() from presenting the same frame again and causing flicker. Present an initial frame when needed so the window can appear on Wayland, including after it has been hidden and shown again. Add an optional pack_interface parameter to load_png(), load_bmp(), and load_surface(). This lets games load images by their internal path directly from a pack_file, without extracting them to disk. The existing file-path calls remain available.
Sam Tupy on 2026-10-06T20:20:12Z: try to fix pathfinder lag described in #293
Quin Gillespie on 2026-10-06T20:12:12Z: Name parameters in ASAddon registrations
Quin Gillespie on 2026-10-06T20:12:11Z: Name parameters in engine registrations
Quin Gillespie on 2026-10-06T20:03:03Z: Update get_stats docs for handle return
Quin Gillespie on 2026-10-06T20:03:03Z: Return stat_set::get_stats as an array handle
Quin Gillespie on 2026-10-06T16:31:35Z: Added a generic menu that allows a user to pick an option from a list of numbers, e.g. behind pitch decrease.
Quin Gillespie on 2026-10-06T13:50:38Z: Fix dictionary opIndex return type in docs
Quin Gillespie on 2026-10-06T13:50:38Z: Use consistent const type&in spacing in docs
Quin Gillespie on 2026-10-06T13:29:08Z: Fix argument types in array extend/insert, json_object exists and run docs
Quin Gillespie on 2026-10-06T13:27:42Z: List stat constructor arguments with their declared types and rename list example variable
Quin Gillespie on 2026-10-06T13:24:59Z: Document stat_set include
Quin Gillespie on 2026-10-06T13:24:03Z: Fix stat_set serialization, string list conversion, increments and linear parsing
Quin Gillespie on 2026-10-06T02:26:20Z: Fix bundling error rethrow and macOS Resources path case
Quin Gillespie on 2026-10-06T02:26:20Z: Convert library call arguments to their declared C types
Quin Gillespie on 2026-10-06T02:26:20Z: Fix async argument passing and thread callback leaks
Quin Gillespie on 2026-10-06T02:26:20Z: Fix type confusion, dangling modules and leaks in script_function and script_module
Quin Gillespie on 2026-10-06T02:26:20Z: Fix engine event insert bounds, null listeners and changes during firing
Quin Gillespie on 2026-10-06T02:26:20Z: Harden deserialize against crafted data, deep nesting and partial reads