Crashes On Startup And Only When Reverie Is In The Mods Folder
Introduction
When a game crashes on startup, it can be frustrating and time-consuming to identify the cause. In this article, we will explore a specific issue where the game crashes only when the Reverie mod is present in the mods folder. We will analyze the stacktrace, examine the mod's configuration, and provide a solution to resolve the issue.
Symptoms
The game crashes on startup with the following error message:
[SMODS Reverie "data/boosters.lua"]:251: attempt to call field 'Booster' (a table value)
Additional Context
- Balatro Version: 1.0.1o-FULL
- Modded Version: 1.0.0~BETA-0406a-STEAMODDED
- LÖVE Version: 11.5.0
- Lovely Version: 0.7.1
- Platform: Windows
- Steamodded Mods:
- Card Sleeves by Larswijn [ID: CardSleeves, Priority: -10, Version: 1.7.4, Uses Lovely]
- Fusion Jokers by itayfeder, Lyman [ID: FusionJokers, Priority: -10000]
- Reverie by DVRP [ID: Reverie, Version: 1.5.3, Uses Lovely]
- Seven Deadly Decks by AstroLightz [ID: 7DeadlyDecks, Priority: -5, Version: 1.1.0]
- Codex Arcanum by itayfeder, Lyman [ID: CodexArcanum, Priority: -100]
- Lovely Mods:
- Cryptid
- Has Steamodded mod that failed to load.
- Missing Dependencies:
- Talisman (>=2.0.9)
- Cryptid
Stack Traceback
The stacktrace is as follows:
(3) main chunk of file 'data/boosters.lua' at line 251 (from mod with id Reverie)
(4) main chunk of file 'Reverie.lua' at line 6 (from mod with id Reverie)
(5) Lua global 'loadMods' at Steamodded file 'src/loader.lua:571'
Local variables:
modsDirectory = string: "C:\\Users\\bigth\\AppData\\Roaming\\Balatro\\Mods"
header_components = table: 0x322a9a20 {version:table: 0x322aa170, id:table: 0x322a9c30, conflicts:table: 0x322aa060, outdated:table: 0x322aa1f0, prefix:table: 0x322aa110, dump_loc:table: 0x322aa290 (more...)}
json_spec = table: 0x322aa328 {version:table: 0x322aaa68, id:table: 0x322aa658, main_file:table: 0x322aac48, __:table: 0x322aad08, badge_colour:table: 0x322aa908, badge_text_colour:table: 0x322aa988 (more...)}
used_prefixes = table: 0x322aa08 {}
lovely_directories = table: 0x322aae30 {1:C:\Users\bigth\AppData\Roaming\Balatro\Mods/CardSleeves-1.7.4/, 2:C:\Users\bigth\AppData\Roaming\Balatro\Mods/Cryptid/, 3:C:\Users\bigth\AppData\Roaming\Balatro\Mods/Reverie.1.5.3/ (more...)}
processDirectory = Lua function '?' (defined at line 185 of chunk [SMODS _ "src/loader.lua"])
keyset = table: 0x31f7a5b8 {1:-10000, 2:-100, 3:-10, 4:-5, 5:0, 6:114}
check_dependencies = Lua function '?' (defined at line 419 of chunk [SMODS _ "src/loader.lua"])
(for generator) = C function: builtin#6
(for state) = table: 0x31f7a5b8 {1:-10000, 2:-100, 3:-10, 4:-5, 5:0, 6:114}
(for control) = number: 5
_ = number: 5
priority = number: 0
(for generator) = C function: builtin#6
(for state) = table: 0x31db9400 {1:table: 0x31cea160}
(for control) = number: 1
_ = number: 1
mod = table: 0x31cea160 {jokers:table: 0x321cdd90, version:1.5.3, progress_cine_quest:function: 0x3213cad0, double_ability:function: 0x321115e8, config_tab:function: 0x322608e0 (more...)}
(6) Lua global 'initSteamodded' at Steamodded file 'src/loader.lua:654'
(7) Lua method 'start_up' at file 'game.lua:218'
Local variables:
self = table: 0x31c26f18 {SPEEDFACTOR:1, F_GUIDE:false, keybind_mapping:table: 0x31c2ca10, F_CRASH_REPORTS:false, P_CARDS:table: 0x321d1540, shared_undiscovered_joker:table: 0x321ff250 (more...)}
settings = string: "return {[\"version\"]=\"1.0.1o-FULL\",[\"paused\"]=true,[\"QUEUED_CHANGE\"]={},[\"COMP\"]={[\"prev_name\"]=\"\",[\"name\"]=\"\",[\"score\"]=1349,},[\"colourblind_option\"]=false,[\"play_button_pos\"]=2,[\"CUSTOM_DECK\"]={[\"Collabs\"]={[\"Spades\"]=\"default_Spades\",[\"Hearts\"]=\"default_Hearts\",[\"Diamonds\"]=\"default_Diamonds\",[\"Clubs\"]=\"default_Clubs\",},},[\"colour_palettes\"]={[\"Spades\"]=\"lc\",[\"Hearts\"]=\"lc\",[\"Diamonds\"]=\"lc\",[\"Clubs\"]=\"lc\",},[\"crashreports\"]=false,[\"tutorial_progress\"]={[\"completed_parts\"]={[\"first_hand_3\"]=true,[\"small_blind\"]=true,[\"first_hand_4\"]=,[\"shop_1\"]=true,[\"first_hand_section\"]=true,[\"first_hand_2\"]=true,[\"first_hand\"]=true,},[\"forced_tags\"]={[2]=\"tag_garbage\",[1]=\"tag_handy\",},[\"section\"]=\"shop\",[\"hold_parts\"]={},},[\"language\"]=\"en-us\",[\"WINDOW\"]={[\"vsync\"]=1,[\"display_names\"]={[1]=\"[NONE]\",},[\"screenmode\"]=\"Borderless\",[\"DISPLAYS\"]={[1]={[\"name\"]=\"[NONE]\",[\"screen_res\"]={[\"w\"]=3440,[\"h\"]=1440,},},},[\"selected_display\"]=1,},[\"profile\"]=\"M1\",[\"GAMESPEED\"]=4,[\"SOUND\"]={[\"volume\"]=50,[\"music_volume\"]=100,[\"game_sounds_volume\"]=100,},[\"music_control\"]={[\"current_track\"]=\"\",[\"desired_track\"]=\"\",[\"lerp\"]=1,},[\"ACHIEVEMENTS_EARNED\"]={},[\"run_stake_stickers\"]=false,[\"current_setup\"]=\"New Run\",[\"screenshake\"]=50,[\"ambient_control\"]={[\"ambientFire1\"]={[\"per\"]=1.1,[\"vol\"]=0,},[\"ambientOrgan1\"]={[\"per\"]=0.7,[\"vol\"]=0,},[\"ambientFire2\"]={[\"per\"]=1.05,[\"vol\"]=0,},[\"ambientFire3\"]={[\"per\"]=1,[\"vol\"]=0,},},[\"DEMO\"]={[\"win_CTA_shown\"]=true,[\"quit_CTA_shown\"]=true,[\"timed_CTA_shown\"]=true,[\"total_uptime\"]=5.0137685630767,},[\"GRAPHICS\"]={[\"texture_scaling\"]=2,[\"crt\"]=70,[\"shadows\"]=\"On\",[\"bloom\"]=1,},}"
settings_ver = nil
new_colour_proto = table: 0x31c2f4e0 {Spades:table: 0x31c2f768, Hearts:table: 0x31c2f5d8, Diamonds:table: 0x31c2f690, Clubs:table: 0x31c2f800}
sound_files = table: 0x31ea4638 {1:ambientFire1.ogg, 2:ambientFire2.ogg, 3<br/>
**Q&A: Crashes on Startup and Only When Reverie is in the Mods Folder**
====================================================================
**Q: What is the cause of the crash when Reverie is in the mods folder?**
-------------------------------------------------------------------
A: The crash is caused by an attempt to call a field 'Booster' which is a table value in the file 'data/boosters.lua' of the Reverie mod.
**Q: What is the stacktrace indicating?**
-----------------------------------------
A: The stacktrace is indicating that the error occurred in the following order:
1. The main chunk of file 'data/boosters.lua' at line 251 (from mod with id Reverie)
2. The main chunk of file 'Reverie.lua' at line 6 (from mod with id Reverie)
3. The Lua global 'loadMods' at Steamodded file 'src/loader.lua:571'
4. The Lua global 'initSteamodded' at Steamodded file 'src/loader.lua:654'
5. The Lua method 'start_up' at file 'game.lua:218'
**Q: What are the possible solutions to resolve the issue?**
---------------------------------------------------------
A: The possible solutions to resolve the issue are:
1. **Update the Reverie mod:** Check if there are any updates available for the Reverie mod. If there are, update the mod to the latest version.
2. **Check the mod's configuration:** Check the mod's configuration to ensure that it is set up correctly. Make sure that the mod is enabled and that there are no conflicts with other mods.
3. **Disable the Reverie mod:** Try disabling the Reverie mod to see if it resolves the issue. If it does, then the issue is likely caused by the Reverie mod.
4. **Check for dependencies:** Check if there are any dependencies that are missing or not met. In this case, the Cryptid mod is missing the Talisman dependency.
5. **Contact the mod author:** If none of the above solutions work, contact the mod author for further assistance.
**Q: How can I prevent crashes in the future?**
------------------------------------------------
A: To prevent crashes in the future, make sure to:
1. **Keep your mods up to date:** Regularly check for updates to your mods and update them as soon as possible.
2. **Check the mod's configuration:** Regularly check the mod's configuration to ensure that it is set up correctly.
3. **Disable mods that are causing issues:** If a mod is causing issues, try disabling it to see if it resolves the issue.
4. **Check for dependencies:** Regularly check for dependencies that are missing or not met.
5. **Contact the mod author:** If you are experiencing issues with a mod, contact the mod author for further assistance.
**Q: What are some best practices for modding?**
------------------------------------------------
A: Some best practices for modding include:
1. **Keep your mods organized:** Keep your mods organized by creating separate folders for each mod.
2. **Use a mod manager:** Use a mod manager to easily install and manage your mods.
3. **Read the mod's documentation:** Read the mod's documentation to understand how to use the mod and any potential issues.
4. **Test your mods:** Test your mods thoroughly using them in a live game.
5. **Report issues:** Report any issues you experience with a mod to the mod author.