itch.io is community of indie game creators and players

Devlogs

๐ŸญINDUSTRIAL SIMULATOR - DEV LOG

Industrial Simulator
A browser game made in HTML5

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
    12 days ago
  • Industial Simulator 95 unpacked 1.3.1 fixed.zip 141 MB
    12 days ago
Download Industrial Simulator
Leave a comment