Page 1 of 1
[SOLVED] Menu Problems
Posted: Sat Mar 28, 2015 5:33 am
by RaptrStudios
So i wrote a library that can handle pretty cool menus, and it worked fine, when it only had one menu to deal with (the title screen menu), but i added a menu screen for a "shop" type thing and it just fails completely.
Can anyone me??
The location of the menu library is "cerradon.love/source/lib/menus.lua"
http://raptrstudios.weebly.com/secret.html
Thanks!
Re: Menu Problems
Posted: Sat Mar 28, 2015 6:08 am
by arampl
- error.png (8.05 KiB) Viewed 3911 times
Re: Menu Problems
Posted: Sat Mar 28, 2015 7:48 am
by qubodup
I get a different error:
Code: Select all
$ love cerradon.love
Error: main.lua:58: attempt to call method 'update' (a nil value)
stack traceback:
main.lua:58: in function 'update'
[string "boot.lua"]:442: in function <[string "boot.lua"]:413>
[C]: in function 'xpcall'
More Information
Posted: Sat Mar 28, 2015 5:17 pm
by RaptrStudios
Well, the first problem (the "save.dat" thing) should work perfectly fine (it worked fine on my computer, as well as several of my friends computer), and the second problem is what im trying to fix. It says that "shop_menu:update()" is a nil value. however the weird thing is that main_menu:update()" works %100 fine.
I am very confused.
Any hep would be great!
Re: Menu Problems
Posted: Sat Mar 28, 2015 6:15 pm
by arampl
About error I've encountered: my fault, game folder was protected from writing.
You have "shop_menu = love.graphics.newImage('source/graphics/menu/shop_menu.png')" in the "graphics.lua".
Redefinition. Upon creation it was a table with functions, then it became just an image.
Re: Menu Problems
Posted: Sat Mar 28, 2015 6:28 pm
by RaptrStudios
I don't know how to reconvert it, does anyone know how?
Re: Menu Problems
Posted: Sat Mar 28, 2015 6:31 pm
by arampl
You don't have to. Just give other name to this image.
P.S. I see "Thumbs.db" files in your resources folders. You can safely delete them to decrease size of game a lot.
Re: Menu Problems
Posted: Sat Mar 28, 2015 6:42 pm
by RaptrStudios
Ahh yes, good point.
I've been up all night so i think i'm gonna take a break.
Thanks again!