Content · 6
Added more GUI events, some suppressible, triggered when the player interacts.
gui eventToolset added support for custom caster classes.
custom caster classes in toolsetUpdated game credits for 2021 and moved the credits button from OC Campaign to the top-level Movie menu.
game credits for 2021Added the six-part curated campaign A Hunt Through The Dark, playable as a drow.
hunt through the dark campaignPLT textures can now be phenotype-specific.
phenotype-specific plt textureAdded a native json datatype with a documented API for parsing, dumping and manipulating JSON values.
nwscript json datatype
Controls · 1
Added a setting letting players control non-PC party members like DMs do (drag, ctrl+click); off by default and enabled in server settings.
control of non-pc party member
System · 21
Optimized baked font texture size to minimize texture memory footprint.
baked font texture sizeGOG Galaxy SDK no longer supported on x64 and arm64 Mac.
gog galaxy sdk on macShadow and beam volumes now use their own unique shaders.
shadow and beam volume shaderReduced buffer transfers related to rendering shadows.
buffer transfers for shadow renderingSQLite API amended for both Campaign DB and custom databases.
sqlite apiRemoved the experimental optimized shadow rendering toggle; it is now always enabled.
experimental optimized shadow rendering toggleAdded device property queries returning player GUI width, height and scale.
device property querySteam SDK/Workshop not supported on M1 Mac since there is no native M1 binary.
steam sdk/workshop on mac m1Game now automatically downsizes textures larger than the client GPU supports instead of failing to render.
oversized texture handlingEngine can serialise game objects to and from JSON; new .caf area format combines .are and .git.
game object json serialisationRemoved some redundant GPU data buffer uploads.
redundant gpu data buffer uploadShadow alpha now adjusts based on vertical distance between projection plane and source.
shadow alpha shadingThese VM commands gained a bSave/LoadObjectState parameter covering local variables, effects, action queue and transition info.
object save/load state parameterAdded VM commands to query the game resource manager.
vm resource manager commandOptimized shadow volume generation to fit the shadow plane size, improving GPU-limited performance.
shadow volume generationProvided a universal binary with an Apple M1 build; Steam M1 users must launch the game directly to run natively.
mac universal binary for apple m1Added debug outputs showing mesh bounding boxes, pivots, emitter/light ranges and shadow volumes, accessible via ctrl+shift+f12.
debug outputs for content artistGreatly reduced CPU time spent rendering shadows (50-90% less) by moving work to shaders.
shadow rendering cpu timeScript compiler supports \xFF-style escapes for arbitrary bytes in string literals; \x00 terminates the string.
script compiler string escapeModules can now spawn custom UI panels defined in NWScript or JSON, with layout, widgets, and two-way data binding.
scriptable custom ui panelAdded console command printvertexdata that logs vertex data memory usage to the client log.
vertex data memory printout
UI · 2
RunScript/Chunk Debug UI can be used in single player even when DebugMode is off.
runscript/chunk debug ui in spCurated Content UI now supports promotion panels showing links to the Vault, Wikis, etc.
curated content promotion panel
Fix · 40
Fixed inconsistencies with shadow rendering in the toolset.
toolset shadow rendering inconsistencyFixed rendering of unlit models with envmap.
unlit model envmap renderingFixed second story tile fade in Always mode not working correctly in the toolset.
second story tile fade in always modeFixed a rare crash when doors were melee-attacked by a null creature.
crash when doors melee-attacked by null creatureFixed Steam Workshop modules not appearing when the .mod extension was not all lowercase.
steam workshop module detectionFixed a crash when SetResourceOverride targeted a missing or invalid resource.
setresourceoverride crash on missing resourceFixed RESTYPE_JUI having the wrong ID and added it to nwscript.nss.
restype_jui resource idFixed SetTextureOverride() not working for custom content.
settextureoverride for custom contentFixed nuklear receiving input meant for the console.
nuklear input receiving console inputFixed common shadow issues related to behind stencil tests; the old approach can be restored with shadowfliporder 1.
behind stencil test shadow issueArea serialisation no longer saves item state twice to GFF, avoiding duplicated temporary effects and local vars.
duplicated item state in area serialisationAdded refinements reducing visual oddities caused by shadows projected by erroneous models.
visual oddities from erroneous shadow-casting modelFixed automatic tile texture rotation causing normal and displacement maps to malfunction.
automatic tile texture rotationPrevented use of the map inside the navigation cabin after traveling to a destination.
map use after navigation cabin travelFixed skinmesh bone hierarchy to initial model layout, resolving issues with dynamically attached bodyparts.
skinmesh bone hierarchyFixed dynamic shadow rendering performance dropping significantly on certain devices due to streaming setup.
dynamic shadow performance on certain deviceFixed static parts being removed after auto-combining, which caused erroneous shadows.
static geometry removed after auto-combineFixed Replace All not working in backwards search mode.
replace all in backwards searchRemoved an XP exploit in Ulblyn's conversation.
xp exploit in ulblyn's conversationFixed the combo() widget not decoding UTF8 correctly.
combo widget utf8 decodingShadow volume lower clip now uses tiledata bounding box, fixing shadows not applied below tile z position.
shadows missing below tile z positionCovered some poor camera rotations when transitioning out of the sea map.
camera rotation when leaving sea mapFixed a crash when right-clicking a tile with a recently-selected creature on it.
crash right-clicking tile with selected creatureFixed shadow issues by doing view frustum clipping in vertex shaders, reducing odd cut-offs.
shadows cut off by view frustum clippingFixed a memory leak every time CopyObject, CreateObject or CreateArea was called.
memory leak in object creation commandTweaked subsurface light algorithm and made normal debug outputs also apply to water.
subsurface light and water normal debug outputFixed savegames causing creatures in areas to re-trigger OnAreaEnter, which broke HotU chapter 3 after loading.
area enter event retriggering after saveFixed low quality render mode darkening water too much.
low quality render mode water darkeningFixed a crash when showing a polymorphed creature on the party bar.
crash showing polymorphed creature on party barFixed soft particles reading screen depth at an offset, removing occasional halos around objects.
soft particle haloFixed shadows fading out too quickly at low view angles.
shadows fading too quickly at low view angleFixed scene manager issue that made geometry culling less effective.
scene manager geometry cullingFixed object view culling not respecting visual transforms, so objects no longer sometimes fail to appear.
object view culling with visual transformFixed a crash in CreateArea() due to heap-use-after-free.
createarea heap-use-after-free crashAreas are now considered modified when the undo stack changes.
area modified flag on undo stackFixed area fog clipping distance not being stored when saving games.
fog clipping distance saveUndo now works for the Adjust Location dialog.
undo for adjust location dialogFixed nuklear eating mouse clicks that should go to the radial menu.
nuklear eating radial menu mouse clickUndo now works for mouse wheel object scaling in the toolset.
undo for mouse wheel object scalingOpening the radial menu is no longer considered background or modal for the frame limiter.
radial menu treated as background/modal
General · 1
Minor text and documentation updates to nwscript.nss.; Cleaned up ovr/ and moved everything except scripts into keybif.
general


