TorchAPI.com is powered by Qonzer! Check them out for the ultimate game server hosting experience.
Advanced PB Limiter
Author: SentorX
Latest Version: v1.3.4.4
Cumulative Downloads: 1719
Gives you better control over your players' programmable blocks with advanced reporting and player self-generated reports.
Limits and tracking
- Restrict them based on sim-speed time or actual time.
- Limit each block individually and all programmable blocks together, including combined totals and averages.
- Limit memory usage per PB. The check handles Linq, MyIni and deep or hostile scripts; blocks it cannot measure show "not measurable" instead of stopping the check for other blocks.
- Slow or resting timer scripts keep their runs, offences and startup time when they run again. They are marked resting and left out of combined reports.
- Combined limits and reports count the same blocks by the same rules. Reports use the enabled/working state cached by the last cleanup, so their totals can trail the limits by up to about 5 seconds; limits read live state. Blocks that cannot run are left out unless they ran since the last combined check.
- Runs that trigger a garbage collection no longer escape the run-time, average or combined limits. Self-turn-off scripts, TryRun, owner changes and recompiles are handled.
Punishments and script warnings
- Instant-kill a block that has run beyond an extreme limit. Instant kill uses Turn Off or Destroy: Destroy damages the block to 100 integrity (unwelded), or removes it when the game will not damage it (safe zone, damage disabled, zero damage modifier).
- Ordinary offences can use Turn Off, Damage or Destroy. Damage on a block the game will not damage turns it off, or removes it when the protected-block destroy option is on; it no longer silently does nothing. A damage amount of 0 turns the block off.
- Apply punishments when the limit is reached always, or only when sim speed is below a set value.
- Send a graceful-shutdown command to scripts before punishing, when the script supports it.
- Send a warning to scripts on the last offence before punishment, with a specific code for the offence, so scripts can cool down or self-throttle.
- Send a shutdown with seconds until kill so scripts can clean up. The time is configurable and can differ for privileged players; the script receives the seconds.
Script and restart protection
- Disable the PB from auto-enabling itself using the Save()/ctor exploit. Can be set for players and NPCs separately.
- Prevent PBs from compiling on restarts when not already turned on. Players recompile manually; this blocks restart exploits and has minimal effect on restart speed.
Scheduling and performance
- Defer runtime checks never, always, or when sim speed falls below a set minimum, so the game can catch up.
- Disable Update1: PBs no longer run every tick; Update1 is called with Update10 at the same time, without breaking scripts or requiring player changes.
Players and privileged access
- Your players can check their own usage without a help ticket or asking staff.
- Use Tebex or other pay models to give players individual limits through in-game commands.
Reports and diagnostics The Torch UI provides a live dashboard of all programmable blocks and their runtimes, with summary tiles and separate per-block and per-player tables. For staff without access to the Torch UI, in-game commands generate easy-to-read reports.
- The Reports tab has summary tiles for programmable blocks, active and resting blocks, players, combined last run and average, offences, recompiles and memory.
- Per-block and per-player tabs show every tracked block and player with run times, offences and memory.
- The tables update in place and can refresh as often as every 0.5 seconds without the table rebuild that used to slow the simulation. The live view still defaults to 5 seconds, pauses while the tab is hidden, and refreshes when you return.
- "Show resting" hides resting blocks from the live view. Saved reports still include every tracked block.
- The live report no longer builds its data on the game thread, so opening or refreshing it adds no report-building work to the simulation. Block and grid names, and the on/off state shown in the report, can trail by up to about 5 seconds; run times, averages, offences, recompiles and memory are current, and limits are enforced from live state.
- Selected rows are readable in light and dark themes. Recompiles and Memory are aligned separately so they no longer read as one number. Settings, Privileged Players and Reports share the same theme-aware styling.
- Saved text reports are labelled sections per block and player, with wrapped values and aligned quick stats, instead of one long ||-separated line per entry. They include quick stats such as the hottest PB, hottest player (single PB and average), most PBs and most offences.
- In-game commands for staff without the Torch UI: !PBLimiter MyStats, Runtimes, GetReport, Limits and admin commands. Reports list up to 10, 20 or 200 blocks in detail; totals count all blocks.
- A saved report names the hottest player by run time per tracked block, uses the server's UTC offset, and says why when it cannot be saved.
- Press the "Timings Burp" button for a detailed runtime report of the plugin, showing what it is doing, which thread, and how long it took.
All this and it still runs fast.
Reliability and safety
- Config saves are atomic and recovered. A failed save retries every 30 seconds; a crash leaves the old or new file, never half a file; a cut-short file is restored at the next start. An unreadable config is moved aside; a config held by another program is left alone.
- A game update that breaks a patched method leaves the limiter inactive instead of stopping Torch; commands and tabs say so. A plugin reload leaves the limiter off until Torch restarts.
- Numbers use a decimal point on every server culture. Block, grid and player names with control or hidden format characters are sanitized in logs, chat and reports; long names are cut to 100 characters.
What's new in Torch 1.3.4.4
- The Reports tab is now a live dashboard with summary tiles, a Show resting filter, and per-block and per-player tables.
- The tables update in place; a 0.5-second refresh no longer causes the simulation slowdown it did before. The live view defaults to 5 seconds and pauses while its tab is hidden.
- The live report no longer builds its data on the game thread. Block and grid names, and on/off state, can trail by up to about 5 seconds; limits still use live state.
- Saved text reports are easier to read: labelled sections, wrapped values and aligned quick stats.
- Selected rows, Recompiles/Memory alignment, and Settings/Privileged Players text are readable in light and dark themes.
- Existing settings and privileged players are kept; no configuration migration is needed.
Older upgrades since 1.1.20
- Instant kill and memory punishments now use only Turn Off or Destroy. An old config that set Damage for either is read as Turn Off; set Destroy explicitly if that is what you want. Ordinary offences still use Damage.
- Nexus support and Tiered Run Groups were removed. The plugin runs per Torch server; there are no Nexus-wide configs or reports.
- Offences last at least one minute; the after-save window and the disabled-limiter shutdown/Save behaviour were fixed.
- MyStats is limited to one request per 30 seconds; report sizes are capped.
For more information or help, join my discord server!
Paypal
Github