🏭INDUSTRIAL SIMULATOR - DEV LOG


Bug Fixes & System Improvements

🔧 UPDATE v1.3.1 - Critical Fixes

1. Auto-Save System - FIXED

Problem: Auto-save wasn't working every 30 seconds, only when actively playing.

What we fixed:

  • Auto-save now runs every 30 seconds regardless of which screen you're on (menu, game, settings, etc.)
  • Auto-save interval no longer depends on screen === 'game' condition
  • Added browser tab close detection - game saves automatically when you close the tab
  • Fixed Electron window close - game saves before app exits

2. EXIT Button - FIXED

Problem: EXIT button didn't save the game before closing.

What we fixed:

  • EXIT button now saves the game before attempting to close
  • In Electron: Saves and closes the app properly
  • In Browser: Saves and shows alert "Game saved! You can close this tab manually."
  • Added save game import to Menu.js

3. MENU Button - FIXED ✅

Problem: Returning to menu from game screen didn't save progress.

What we fixed:

  • MENU button now saves the game before returning to main menu
  • Prevents accidental progress loss when navigating
  • Added save game import to .js

4. Income Distribution System - FIXED 🔥

Problem: Income from factories WITHOUT managers was being added to both money AND pending income (double counting).

What we fixed:

  • Factories WITH managers → Income goes directly to money automatically (with ALL multipliers applied)
  • Factories WITHOUT managers → Income accumulates in Pending (base income only, no multipliers)
  • Auto-Clicker → Always works automatically (with all multipliers)
  • Fixed the income calculation loop in App.js to separate auto-income and pending income

Logic breakdown:

javascript

// WITH Manager: Income → Auto collected → Applies multipliers → Goes to money  
// WITHOUT Manager: Income → Goes to Pending → No multipliers → Must click "COLLECT ALL"

5. Missing Upgrades - FIXED

Problem: Four upgrades weren't working: goldenTouch, ultraClick, timeWarp, cosmicPower

What we fixed:

  • Added missing upgrade keys to initial gameData.upgrades state in App.js
  • Added migration logic in saveLoad.js to automatically add missing upgrades to old saves
  • All 12 upgrades now work properly:
    • ✅ Auto Clicker
    • ✅ Double Income
    • ✅ Speed Boost
    • ✅ Mega Click
    • Golden Touch (was broken)
    • ✅ Hyper Speed
    • Ultra Click (was broken)
    • ✅ Super Income
    • Time Warp (was broken)
    • ✅ Quantum Boost
    • Cosmic Power (was broken)
    • ✅ Infinity Gem

📊 System Improvements

Save System Enhancements

  • Auto-save now works globally (not just in game screen)
  • Save triggers on:
    • ⏱️ Every 30 seconds (if auto-save enabled)
    • 🚪 Closing Electron window
    • 🌐 Closing browser tab
    • 🔙 Clicking MENU button
    • ❌ Clicking EXIT button
  • Console logs added for debugging: 💾 Auto-save completed, 💾 Game autosaved before exit

Income System Clarity

  • Clear separation between automatic income and pending income
  • Pending income only shows when there are factories without managers
  • Income display (+$/sec) now only shows automated income
  • Collect All button properly applies all pending income at once

🐛 Known Issues (None currently)

Code Quality:

  • Added proper error handling for save operations
  • Improved state management for income calculations
  • Better separation of concerns (auto income vs pending income)
  • More robust migration system for old saves

🎮 Player Experience Improvements

Before:

  • ❌ Auto-save didn't work consistently
  • ❌ Could lose progress when exiting
  • ❌ Income system was confusing (double counting)
  • ❌ Some upgrades didn't work at all

After:

  • ✅ Auto-save works reliably every 30 seconds
  • ✅ Game always saves before closing
  • ✅ Clear distinction between auto-income and pending income
  • ✅ All upgrades functional
  • ✅ Better overall stability

🚀 Next Steps (Future Updates)

Suggestions for future improvements:

  • Add visual indicator when auto-save occurs
  • Add "Last saved: X seconds ago" display
  • Add manual "SAVE NOW" button in settings
  • Add save conflict resolution for cloud saves
  • Add save file corruption recovery

Status: All critical bugs fixed ✅

- Made by Hollow Software

Files

Industrial Simulator 95 Setup 1.3.1 fixed.zip 98 MB
11 days ago
Industial Simulator 95 unpacked 1.3.1 fixed.zip 141 MB
11 days ago

Get Industrial Simulator

Buy Now
On Sale!
50% Off
$4.99 $2.49 USD or more

Leave a comment

Log in with itch.io to leave a comment.