Steamopollys / Steamodded

A Balatro ModLoader
GNU General Public License v3.0
228 stars 50 forks source link

85066b3 - crash on startup #258

Closed boardfish closed 1 week ago

boardfish commented 2 months ago

Experiencing a startup crash on this (most recent) commit. Logs:

Oops! The game crashed:
Syntax error: functions/state_events.lua:667: '}' expected (to close '{' at line 657) near 'mult'

Additional Context:
Balatro Version: 1.0.1g-FULL
Modded Version: ???
Love2D Version: 11.5.0
Lovely Version: 0.5.0-beta6

Stack Traceback
===============
(3)  C function 'function: 0x00c0cea8'
(4) global C function 'require'
(5) main chunk of file 'main.lua' at line 825
(6) global C function 'require'
(7) Love2D function at file 'boot.lua:323' (best guess)
Local variables:
 c = table: 0x00c0cbf0  {identity:false, version:11.5, accelerometerjoystick:true, modules:table: 0x00c0cdc8 (more...)}
 openedconsole = boolean: false
 confok = boolean: true
 conferr = nil
(8) global C function 'xpcall'
(9) Love2D function at file 'boot.lua:362' (best guess)
Local variables:
 result = boolean: true
(10) global C function 'xpcall'
(11) Love2D function at file 'boot.lua:377' (best guess)
Local variables:
 func = Lua function '(Love2D Function)' (defined at line 355 of chunk [love "boot.lua"])
 inerror = boolean: true
 deferErrhand = Lua function '(Love2D Function)' (defined at line 348 of chunk [love "boot.lua"])
 earlyinit = Lua function '(Love2D Function)' (defined at line 355 of chunk [love "boot.lua"])

I've isolated Steamodded as the problem by moving it out of the Mods folder and launching Balatro.

boardfish commented 2 months ago

Tried against 41177cc13e0881e259b6c57d4037aa7eb0bbc8a6 (seems to be the clearest previous version) and this didn't crash, so this regression might've been introduced between that commit and the one in the title.

ladyfey22 commented 1 month ago

This same issue seemed to occur for me when using the beta 7 version of lovely. This same error also occurred when using the version provided in the commit in the comment above with beta 7, in addition to using the latest version of steammodded. This was resolved by reverting to the beta 6 version of lovely, in which the game then started fine.

WilsontheWolf commented 1 month ago

Oh sorry about the lack of response. Generally the best place for support is the balatro discord. I've seen this error around a bit. Not sure the exact cause but it's maybe tied to cryptic with the new lovely version. For now, reverting to beta6 is the fix, which you figured out.