From 695dd80626a044d0395655ee89cd5c1cadf4a6e3 Mon Sep 17 00:00:00 2001 From: OlegTheSnowman <123775785+OlegTheSnowman@users.noreply.github.com> Date: Sat, 11 Jul 2026 00:29:02 +0300 Subject: [PATCH] Remove sound playback from numpad toggle ppi (the sound engine handle) and dir aren't globals in NumpadMovement.xml's own Lua state - they belong to other plugins - so toggle_numpad crashed with "attempt to index global 'ppi' (a nil value)" every time. Dropped the sound calls entirely, kept the spoken confirmation. Updated the readme to match. --- cosmic rage/worlds/plugins/NumpadMovement.xml | 2 -- readme.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cosmic rage/worlds/plugins/NumpadMovement.xml b/cosmic rage/worlds/plugins/NumpadMovement.xml index 48ff273..3ce14ce 100644 --- a/cosmic rage/worlds/plugins/NumpadMovement.xml +++ b/cosmic rage/worlds/plugins/NumpadMovement.xml @@ -101,10 +101,8 @@ function toggle_numpad() set_numpad_bindings(enabled) if enabled then - ppi.play(dir.."sounds/ogg/general/misc/on.ogg", 0, 0, 100) Execute("tts_interrupt Numpad movement enabled.") else - ppi.play(dir.."sounds/ogg/general/misc/off.ogg", 0, 0, 100) Execute("tts_interrupt Numpad movement disabled.") end end diff --git a/readme.md b/readme.md index ddea1e5..bf8f4a5 100644 --- a/readme.md +++ b/readme.md @@ -178,7 +178,7 @@ The numpad can be dedicated entirely to movement, freeing you from typing full d ### Turning it off -Press **Alt + Enter** to toggle numpad movement on or off - useful if you need the numpad free for typing numbers instead. You'll hear a confirmation sound and a spoken message each time you toggle it. When it's off, the numpad keys behave normally again rather than doing nothing. +Press **Alt + Enter** to toggle numpad movement on or off - useful if you need the numpad free for typing numbers instead. You'll hear a spoken message each time you toggle it. When it's off, the numpad keys behave normally again rather than doing nothing. ## FAQ