RESURRECT CRASH GUARD

by ROGUE_D3viL_
RESURRECT CRASH GUARD

Summary

ASK FOR PERMISSION TO USE!
DISCORD.GG/RES-RESURRECT
Server-side stability and crash prevention system. Provides null-pointer guards, infinite loop protection, entity quarantine and more!

Description

RESURRECT CRASH GUARD Server-side only | No client download required | Works on any map
A production-hardened server stability system built from real crash logs and live testing across 70 mods with PC, Xbox, and PS5 players. Every system was written in direct response to a failure pattern observed on a live server. Nothing here is theoretical.

CORE GUARD LAYER
Wraps the most common Enforce Script failure patterns — null pointers, infinite loops, bad float values, replication access violations — in guards that absorb failures and log them instead of crashing the server. Every catch produces a full log entry with entity, system, and reason. A quarantine registry tracks every deletion and blocks double-deletion races that crash servers mid-session. Full audit log dumped at round end.

WATCHDOG
Kicks every server frame. A background timer checks every 10 seconds whether the main thread is still alive. If execution freezes the watchdog logs a stall warning with elapsed time and stall count. Silent during normal operation. Confirmed 466,290+ kicks and zero stalls across multi-hour full-population sessions.

WORLD SANITIZER
Three sweep phases run after every world load. Sweep origin and radius are derived at runtime from the GameMode entity position — no hardcoded coordinates — universal across any Reforger map.
Phase 1 at 15 seconds scans for entities that failed to initialize. Phase 2 at 20 seconds targets replication orphans — entities whose network component was destroyed during load, invisible to the replication system, which crash the server the moment anything tries to replicate to them. Phase 3 runs every 5 minutes.
Before each periodic sweep a dedicated fast-path cleaner removes every orphaned projectile with no cap — including AH-6M M134 minigun tracers which produce 50+ orphans per burst, and standard rifle rounds from any fast-firing weapon. The main sweep then runs with a cap of 50 reserved for broken vehicles and characters. Confirmed cleaning 50+ orphans per sweep during live helicopter combat without hitting the main cap.

AI MONITOR
Checks every 15 seconds. Tracks AI character positions. If an AI has not moved more than 0.5 metres and is within 8 metres of a vehicle for 4 consecutive checks — 60 seconds frozen — it is quarantined through the safe deletion pipeline. Targets the stuck vehicle boarding pattern the engine logs but cannot always resolve. Stale records cleaned every 45 seconds.

ROUND STALL MONITOR
Checks every minute. If a round exceeds 4 hours with no winner it logs escalating warnings — WARNING at 4 hours, CRITICAL at 4.5 hours. Stops itself when the round ends normally. Gives admins visibility to intervene before the server runs a dead session overnight.

SAFE PATCHES
Ten targeted patches from live log analysis intercepting specific broken code paths in specific mods. Active patch covers SCR_PlayerController console platform identity for Xbox and PS5 players with [u8; 64] GUID format. Additional patches for WCS Loadout Editor, ACE Medical, GRS Storage, Fastroping, Parachute, Diving, RHS, Misfits Scoreboard, and BTGG-ACE included pending class name verification.

LIMITATIONS
Native engine crashes, out-of-memory crashes, asset pipeline failures, backend heartbeat failures, and missing GUID errors cannot be caught by Enforce Script. This mod operates at the scripting layer — it cannot reach below it.

License

Arma Public License No Derivatives (APL-ND)

Version
0.0.39
Game Version
1.6.0.119
Version size
1.37 MB
Downloads
208
Created
26.03.2026
Last Modified
02.04.2026
ID
68F41687DD4936C5