# MovingDotSpace Export - Known Issues ## Status: Deferred for later fix Last updated: 2025-01-11 --- ## Issues to Fix ### 1. Stats Panel Not Updating - **Money stat** doesn't update in the player stats display - **Inventory section** remains empty despite items being in config - **Skills section** not populating **Debug info:** Console should log `Stats loaded: {...}` with counts. Check if: - Data is in the exported config (`exportedConfig.themes['Exported Game']`) - `gameState.inventory`, `gameState.skills`, `gameState.playerStats.money` are set - `renderStats()` is being called and executing **Possible causes:** - Timing issue with `loadTheme()` overwriting values after we set them - `renderStats()` function not finding the DOM elements - Data format mismatch between config and what `renderStats()` expects ### 2. Format Verification Needed Check that extracted data matches MovingDotSpace expected format: **Inventory items:** ```javascript { type: "weapon", name: "Iron Sword", description: "A sturdy blade" } ``` **Skills:** ```javascript { branch: "Combat", name: "One-Handed", learned: false } ``` **Objectives:** ```javascript { id: "quest_id", name: "Quest Name", complete: false } ``` --- ## What Works - Autotravel toggle (checkbox in top-right) - Location locking/unlocking system - Cross-location transitions (only when location actually changes) - Modal state machine navigation within locations - Special locations filtered out (game_start, inventory, quest_journal) --- ## Files Involved - `exporters/html_exporters.py` - Main MovingDotSpace exporter - `ui_tabs/big_rpg_scale_tab.py` - Adds `_movingdotspace_meta` with items/skills - `MovingDotSpaceExport/MovingDotSpaceStandalone.html` - Template with `renderStats()` --- ## Testing Steps 1. Load Big RPG Scale demo data 2. Export to Game Config 3. Use Platform Export > MovingDotSpace 4. Open browser DevTools (F12) > Console 5. Check for `Stats loaded: {...}` log 6. Inspect `gameState.inventory`, `gameState.skills`, `gameState.playerStats` --- ## Potential Fixes to Try 1. **Move stats loading after a delay:** ```javascript setTimeout(() => { gameState.inventory = themeConfig.inventory; renderStats(); }, 500); ``` 2. **Check if loadTheme overwrites:** - In MovingDotSpaceStandalone.html, `loadTheme()` sets `gameState.inventory = theme.inventory || []` - Our explicit setting happens after, so should work 3. **Verify DOM elements exist:** - `elements.inventoryList` must exist before `renderStats()` runs - Check for null element references