Commit graph

10 commits

Author SHA1 Message Date
00ad7453bd fix: delegate memory-heavy string operations to Controller_MessageHandler
CRITICAL MEMORY FIX: Reduce Main Controller memory usage by delegating string operations

CONTROLLER_MESSAGEHANDLER ENHANCEMENTS:
- Added MSG_OWNER_MESSAGE, MSG_PUBLIC_MESSAGE, MSG_REGION_MESSAGE handlers
- New handleOwnerMessage(), handlePublicMessage(), handleRegionMessage() functions
- Memory-efficient message formatting with type-based templates
- Moved all heavy string concatenation operations out of Main Controller

MAIN CONTROLLER CHANGES:
- Added ownerMsg(), publicMsg(), regionMsg() helper functions
- Replaced memory-heavy llOwnerSay() calls with delegated message functions
- Reduced string concatenation operations in critical paths
- Kept simple direct calls for essential messages only

This architectural change should significantly reduce Main Controller memory pressure
and resolve the persistent Stack-Heap Collision errors.
2025-09-14 09:49:50 -05:00
e5f093e0f6 fix: split verbose logging into dedicated script to resolve Stack-Heap Collision
CRITICAL ARCHITECTURE CHANGE to resolve memory crashes:

NEW FILE: Verbose_Logger.lsl
- Dedicated script for all debug output to free up memory in Main Controller
- Handles verbose logging toggle and message buffering
- Script ID system for organized log prefixes
- Memory-safe batched output system

MAIN CONTROLLER CHANGES:
- Removed all verbose logging code and variables
- Redirected debug calls to dedicated Verbose_Logger script
- Simplified verbose logging toggle to forward to logger
- Removed memory-heavy string operations

This architectural split should immediately resolve the Stack-Heap Collision
by moving all debug-related memory usage out of the Main Controller.
2025-09-14 09:42:09 -05:00
bb06bf74dd fix: emergency memory optimization to prevent Stack-Heap Collision
CRITICAL FIX: Main Controller experiencing Stack-Heap Collision from verbose logging

- Added emergency memory monitoring to auto-disable verbose logging when memory low
- Replaced heavy string concatenation debug calls with lightweight versions
- Added memory checks before debug output to prevent crashes
- Simplified verbose logging toggle messages to reduce memory usage
- Emergency threshold: auto-disable at <1000 bytes free memory
- Safety checks: only output debug if >500 bytes available

This should immediately resolve the Stack-Heap Collision error.
2025-09-14 09:39:06 -05:00
8f95e792e2 fix: replace ternary operators with conditional statements for LSL compatibility
- Fixed LSL syntax errors caused by unsupported ternary operator (condition ? value1 : value2)
- Replaced all ternary operators with proper if/else statements in verbose logging toggles
- Ensures 'ENABLED'/'DISABLED' messages display correctly without compilation errors
- Updated files: Bot_Manager.lsl, Controller_Memory.lsl, Controller_MessageHandler.lsl,
  Floater_Manager.lsl, Game_Calculator.lsl, Game_Manager.lsl, Game_Scoreboard_Manager_Linkset.lsl,
  Leaderboard_Communication_Linkset.lsl, Main_Controller_Linkset.lsl, NumberPicker_DialogHandler.lsl,
  Player_DialogHandler.lsl, Roll_ConfettiModule.lsl, System_Debugger.lsl, XyzzyText_Dice_Bridge_Linkset.lsl
- Updated WARP.md with latest v2.8.4 release information and fixes documentation
2025-09-14 08:29:56 -05:00
7cb9366291 Fix LSL script bugs: indentation error in Bot_Manager, TestBot prefix consistency, and typo in calculator emoji 2025-09-03 18:58:27 -05:00
fa8a0c9ca4 ## [2.8.2] - 2025-08-21 2025-08-20 21:22:16 -05:00
56dbdd9f9f ## [2.8.1] - 2025-08-14 2025-08-14 00:35:02 -05:00
b28970ea8e some floater and scoreboard fixes 2025-08-13 14:32:26 -05:00
571e324dc7 on-rez added for reet, itwas missing when it should of been thre 2025-08-12 06:14:23 -05:00
f60d53c78e ## [2.8.0] - 2025-08-12 2025-08-12 02:25:32 -05:00
Renamed from Main_Controller.lsl (Browse further)