Devlogs
๐ญINDUSTRIAL SIMULATOR - DEV LOG
Posted October 23, 2025 by Hollow Software
#update #classic-edition #bug-fix
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