promotional bannermobile promotional banner

Catto's Clicker

Catto’s Clicker is a fun in-game clicker minigame for World of Warcraft featuring upgrade progression, increasing difficulty, and score tracking.

File Details

CattoClicker-1.0.8.zip

  • R
  • Jan 16, 2026
  • 62.88 KB
  • 67
  • 1.15.8
  • Classic

File Name

CattoClicker.zip

Supported Versions

  • 1.15.8

This update does NOT change normal save files:

  • Positive gold values remain unchanged
  • Buildings and upgrades are preserved
  • Prestige levels remain intact
  • ONLY negative (overflowed) values are repaired

Critical Bug Fixed

Integer overflow in the Prestige system

  • Error: integer overflow attempting to store 3625433157
  • Cause: WoW Lua 5.1 only supports integers up to 2,147,483,647 (2^31-1)
  • Impact: Gold values had already overflowed into negative ranges (e.g. -9223372036854775808)

New Safeguards Implemented

1. Added SafeAddGold() function

  • Prevents integer overflows when adding gold
  • Caps gold at safe integer limits (max 2,147,483,647)
  • Modifies ONLY negative values; positive values are never changed

2. Secured Prestige point calculation

  • Maximum of 1,000,000 prestige points per prestige
  • Overflow-safe calculations
  • String formatting now uses %.0f instead of %d

3. One-time repair of corrupted data

  • FixCorruptedData() runs only once after the update
  • Checks ONLY for negative values (clear indicator of overflow)
  • Positive values are NOT modified
  • Uses the overflowFixApplied flag to prevent repeated execution

4. All gold operations secured

  • OnGoldClick() now uses SafeAddGold()
  • GPS timer uses SafeAddGold()
  • Offline progress uses SafeAddGold()

Modified Files (2026-01-15)

1. CattoClicker.lua

  • New function: SafeAddGold() — overflow-safe gold addition (affects only negative values)
  • New function: FixCorruptedData() — one-time repair after update
  • All gold additions now routed through SafeAddGold()

2. modules/Progression.lua

  • CalculatePrestigePoints() — overflow protection using MAX_SAFE_INT
  • PerformPrestige() — safe string formatting using %.0f

How the Update Works

For players with normal values (99% of players)

  • NO changes to existing save data
  • Added protection against future overflows

For players affected by overflow (negative values)

  • Gold is restored to the maximum safe value (2,147,483,647)
  • Prestige system functions correctly again
  • Progress is preserved and secured