Skip to content

fix crash when trying to load src/.DS_Store#5

Merged
astrapboy merged 1 commit into
astrapboy:mainfrom
pumpncode:main
May 4, 2025
Merged

fix crash when trying to load src/.DS_Store#5
astrapboy merged 1 commit into
astrapboy:mainfrom
pumpncode:main

Conversation

@nnmrts
Copy link
Copy Markdown
Contributor

@nnmrts nnmrts commented May 4, 2025

should fix this crash:

Oops! The game crashed:
[SMODS mistigris "main.lua"]:42: Failed to load src/.DS_Store!

Additional Context:
Balatro Version: 1.0.1o-FULL
Modded Version: 1.0.0~BETA-0503b-STEAMODDED
LÖVE Version: 11.5.0
Lovely Version: 0.7.1
Platform: OS X
Steamodded Mods:
    1: Mistigris by astrapboy [ID: mistigris, Priority: 69, Version: 0.5.0-dev_25w14b, Uses Lovely]
Lovely Mods:

Stack Traceback
===============
(3) global C function 'assert'
(4) Lua local 'load_folder' at file 'main.lua:42' (from mod with id mistigris)
Local variables:
 path = string: "src"
 include_subfolders = boolean: false
 full_path = string: "/Users/nnmrts/Library/Application Support/Balatro/Mods/Mistigris/src"
 files = table: 0x031598b010  {1:table: 0x031598b0e8, 2:table: 0x031598b1b8, 3:table: 0x031598b2a8}
 (for index) = number: 1
 (for limit) = number: 3
 (for step) = number: 1
 i = number: 1
 info = table: 0x031598b0e8  {modtime:1746332114, type:file, name:.DS_Store, size:6148}
 file = string: "src/.DS_Store"
(5) main chunk of file 'main.lua' at line 56 (from mod with id mistigris)
(6) Lua global 'loadMods' at Steamodded file 'src/loader.lua:571' 
Local variables:
 modsDirectory = string: "/Users/nnmrts/Library/Application Support/Balatro/Mods"
 header_components = table: 0x0309fdf110  {name:table: 0x0309fdf2e0, conflicts:table: 0x0309fdf8b8, dump_loc:table: 0x0309fdfba8, outdated:table: 0x0309fdfac8, display_name:table: 0x0309fdf6e8 (more...)}
 json_spec = table: 0x0309fdfc80  {prefix:table: 0x0309fe04c0, conflicts:table: 0x0309fe0720, dump_loc:table: 0x0309fe05f0, version:table: 0x0309fe0540, main_file:table: 0x0309fe07d0 (more...)}
 used_prefixes = table: 0x0309fe0a30  {fuse:FusionJokers, tma:FearJokers, blue:blueprint, lege:legendaryChallenges, aura:Aura, betm_spells:BetmmaSpells, evo:joker_evolution, mini:no_laughing_matter (more...)}
 lovely_directories = table: 0x0309fe0a78  {1:/Users/nnmrts/Library/Application Support/Balatro/Mods/3xCredits/, 2:/Users/nnmrts/Library/Application Support/Balatro/Mods/Aura/, 3:/Users/nnmrts/Library/Application Support/Balatro/Mods/Balatro-Aikoyoris-Shenanigans/ (more...)}
 processDirectory = Lua function '?' (defined at line 185 of chunk [SMODS _ "src/loader.lua"])
 keyset = table: 0x01156c3578  {1:-1000000000000, 2:-1000000, 3:-999999, 4:-100000, 5:-10000, 6:-9999, 7:-1000, 8:-100, 9:-33, 10:-28, 11:-20, 12:-10, 13:-5, 14:-4, 15:-3, 16:-1 (more...)}
 check_dependencies = Lua function '?' (defined at line 419 of chunk [SMODS _ "src/loader.lua"])
 (for generator) = C function: builtin#6
 (for state) = table: 0x01156c3578  {1:-1000000000000, 2:-1000000, 3:-999999, 4:-100000, 5:-10000, 6:-9999, 7:-1000, 8:-100, 9:-33, 10:-28, 11:-20, 12:-10, 13:-5, 14:-4, 15:-3, 16:-1 (more...)}
 (for control) = number: 22
 _ = number: 22
 priority = number: 69
 (for generator) = C function: builtin#6
 (for state) = table: 0x01136f9c28  {1:table: 0x0113516858, 2:table: 0x01136e48c0, 3:table: 0x011354c968}
 (for control) = number: 3
 _ = number: 3
 mod = table: 0x011354c968  {prefix:mstg, path:/Users/nnmrts/Library/Application Support/Balatro/Mods/Mistigris/, version:0.5.0-dev_25w14b, optional_dependencies:table: 0x0113466f00 (more...)}
(7) Lua global 'initSteamodded' at Steamodded file 'src/loader.lua:654' 
(8) Lua method 'start_up' at file 'game.lua:211'
Local variables:
 self = table: 0x0111888738  {DEBUG:false, shared_stickers:table: 0x01135843d0, sticker_map:table: 0x0166fa59c8, ANIMATIONS:table: 0x01118815d8, LANGUAGES:table: 0x0111d54940 (more...)}
 settings = string: "return {[\"ACHIEVEMENTS_EARNED\"]={[\"ach_lobc_lamp\"]=true,[\"card_player\"]=true,[\"card_discarder\"]=true,[\"ante_upper\"]=true,[\"heads_up\"]=true,[\"speedrunner\"]=true,[\"you_get_what_you_get\"]=true,[\"low_stakes\"]=true,[\"mid_stakes\"]=true,[\"nest_egg\"]=true,[\"astronomy\"]=true,[\"royale\"]=true,[\"ach_lobc_solemn_lament\"]=true,[\"roi\"]=true,[\"retrograde\"]=true,[\"_10k\"]=true,[\"_1000k\"]=true,[\"_100000k\"]=true,[\"tiny_hands\"]=true,[\"big_hands\"]=true,[\"cartomancy\"]=true,[\"ante_up\"]=true,[\"legendary\"]=true,[\"clairvoyance\"]=true,[\"ach_lobc_wingbeat\"]=true,[\"ach_lobc_regret\"]=true,},[\"CUSTOM_DECK\"]={[\"Collabs\"]={[\"Hearts\"]=\"collab_AU\",[\"paperback_Crowns\"]=\"default_paperback_Crowns\",[\"Wzon_Joker\"]=\"default_Wzon_Joker\",[\"paperback_Stars\"]=\"default_paperback_Stars\",[\"rcb_waters\"]=\"default_rcb_waters\",[\"rcb_thunders\"]=\"default_rcb_thunders\",[\"Clubs\"]=\"collab_PC\",[\"Spades\"]=\"collab_AC\",[\"Diamonds\"]=\"collab_R\",},},[\"paused\"]=true,[\"WINDOW\"]={[\"vsync\"]=1,[\"selected_display\"]=1,[\"DISPLAYS\"]={[1]={[\"DPI_scale\"]=1,[\"screen_res\"]={[\"w\"]=1800,[\"h\"]=1169,},[\"screen_resolutions\"]={[\"values\"]={[1]={[\"w\"]=1800,[\"h\"]=1126,},},[\"strings\"]={[1]=\"3024 X 1964\",},},[\"MONITOR_DIMS\"]={[\"width\"]=3024,[\"height\"]=1964,},},[2]={[\"DPI_scale\"]=1,[\"screen_resolutions\"]={[\"values\"]={[1]={[\"w\"]=1800,[\"h\"]=1126,},},[\"strings\"]={[1]=\"1920 X 1080\",},},[\"MONITOR_DIMS\"]={[\"width\"]=1920,[\"height\"]=1080,},},},[\"screenmode\"]=\"Borderless\",[\"display_names\"]={[2]=\"2\",[1]=\"1\",},},[\"profile\"]=1,[\"tutorial_complete\"]=true,[\"tutorial_progress\"]={[\"section\"]=\"second_hand\",[\"completed_parts\"]={[\"first_hand_section\"]=true,[\"first_hand\"]=true,[\"first_hand_2\"]=true,[\"first_hand_3\"]=true,[\"first_hand_4\"]=true,[\"shop_1\"]=true,[\"big_blind\"]=true,[\"small_blind\"]=true,[\"second_hand\"]=true,},[\"hold_parts\"]={[\"second_hand\"]=true,[\"first_hand\"]=true,[\"first_hand_2\"]=true,[\"first_hand_3\"]=true,[\"first_hand_4\"]=true,[\"shop_1\"]=true,[\"big_blind\"]=true,[\"small_blind\"]=true,},},[\"SOUND\"]={[\"volume\"]=11.254962544691,[\"game_sounds_volume\"]=100,[\"music_volume\"]=0,},[\"COMP\"]={[\"score\"]=8.9716651042637e+61,[\"prev_name\"]=\"\",[\"name\"]=\"\",},[\"version\"]=\"1.0.1o-FULL\",[\"GRAPHICS\"]={[\"bloom\"]=2,[\"texture_scaling\"]=2,[\"shadows\"]=\"On\",[\"crt\"]=0,},[\"colour_palettes\"]={[\"Hearts\"]=\"lc\",[\"paperback_Crowns\"]=\"lc\",[\"Wzon_Joker\"]=\"def\",[\"paperback_Stars\"]=\"lc\",[\"rcb_waters\"]=\"lc\",[\"rcb_thunders\"]=\"lc\",[\"Clubs\"]=\"lc\",[\"Spades\"]=\"lc\",[\"Diamonds\"]=\"lc\",},[\"ambient_control\"]={[\"ambientFire2\"]={[\"vol\"]=2.2232954062856e-322,[\"per\"]=1.05,},[\"ambientFire3\"]={[\"vol\"]=2.2232954062856e-322,[\"per\"]=1,},[\"ambientFire1\"]={[\"vol\"]=2.2232954062856e-322,[\"per\"]=1.1,},[\"ambientOrgan1\"]={[\"vol\"]=2.2232954062856e-322,[\"per\"]=0.7,},},[\"skip_splash\"]=\"Yes\",[\"language\"]=\"en-us\",[\"QUEUED_CHANGE\"]={},[\"GAMESPEED\"]=4,[\"play_button_pos\"]=2,[\"music_control\"]={[\"lerp\"]=1,[\"desired_track\"]=\"\",[\"current_track\"]=\"\",},[\"colourblind_option\"]=false,[\"screenshake\"]=50,[\"run_stake_stickers\"]=true,[\"crashreports\"]=false,[\"current_setup\"]=\"Continue\",[\"DEMO\"]={[\"total_uptime\"]=5.0158533012778,[\"timed_CTA_shown\"]=true,[\"win_CTA_shown\"]=true,[\"quit_CTA_shown\"]=true,},}"
 settings_ver = nil
 new_colour_proto = table: 0x011187f628  {Hearts:table: 0x011187f758, Clubs:table: 0x011187fa28, Spades:table: 0x011187f960, Diamonds:table: 0x011187f848}
 sound_files = table: 0x01136fbb50  {1:ambientFire1.ogg, 2:ambientFire2.ogg, 3:ambientFire3.ogg, 4:ambientOrgan1.ogg, 5:button.ogg, 6:cancel.ogg, 7:card1.ogg, 8:card3.ogg, 9:cardFan2.ogg (more...)}
 shader_files = table: 0x010f7c2e90  {1:CRT.fs, 2:background.fs, 3:booster.fs, 4:debuff.fs, 5:dissolve.fs, 6:flame.fs, 7:flash.fs, 8:foil.fs, 9:gold_seal.fs, 10:holo.fs, 11:hologram.fs (more...)}
(9) Lua field 'load' at file 'main.lua:962'
(10) Lua function '?' at file 'main.lua:898' (best guess)
(11) global C function 'xpcall'
(12) LÖVE function at file 'boot.lua:368' (best guess)
Local variables:
 result = boolean: true
 main = nil
(13) global C function 'xpcall'
(14) LÖVE function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '(LÖVE Function)' (defined at line 355 of chunk [love "boot.lua"])
 inerror = boolean: true
 deferErrhand = Lua function '(LÖVE Function)' (defined at line 348 of chunk [love "boot.lua"])
 earlyinit = Lua function '(LÖVE Function)' (defined at line 355 of chunk [love "boot.lua"])

@astrapboy astrapboy merged commit c4aef81 into astrapboy:main May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants