potatomushclient / potato

A Graphical MUSH Client for Windows, Linux and Mac OS X -
http://www.potatomushclient.com
30 stars 3 forks source link

Main.TCL won't launch, throws an error when opened in console #526

Open DFX2KX opened 2 months ago

DFX2KX commented 2 months ago

so a linux update (not sure which one, but it was quite recent as I just noticed it today, last log from my game was on the 11th) broke potato. bad index "MUSH": must be integer?[+-]integer? or end?[+-]integer? while executing "lindex [list MUD MUSH] $world($w,type)" (procedure "manageWorldVersion" line 11) invoked from within "manageWorldVersion 0 $worldversion" (procedure "managePrefVersion" line 15) invoked from within "managePrefVersion [lindex $retval 0] [lindex $retval 1]" (procedure "setPrefs" line 240) invoked from within "setPrefs 1" (procedure "::potato::main" line 166) invoked from within "::potato::main" (file "/home/russell/potato.vfs/lib/app-potato/../potato.tcl" line 12724) invoked from within "source /home/russell/potato.vfs/lib/app-potato/../potato.tcl" ("package ifneeded app-potato 2.0.0" script) invoked from within "package require app-potato" (file "./main.tcl" line 8)

Not sure what's causing that. I'll poke at it and see if I can write a patch (wouldn't be the first patch to potato I've added, though the previous one is a horrible kludge and not a commit I would push)

talvo commented 2 months ago

At a glance, I can't see exactly what would be causing this. Can you confirm what version of Potato you have (it'll be in lib/potato-version.tcl), and what version of Tcl you're using (run tclsh and type "info patchlevel").