[SOLVED] Menu Problems

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
RaptrStudios
Prole
Posts: 39
Joined: Thu Jan 22, 2015 5:46 am

[SOLVED] Menu Problems

Post 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??
cerradon.love
Cerradon
(814.24 KiB) Downloaded 123 times
The location of the menu library is "cerradon.love/source/lib/menus.lua"

http://raptrstudios.weebly.com/secret.html

Thanks!
Last edited by RaptrStudios on Sat Mar 28, 2015 6:42 pm, edited 1 time in total.
Raptr Studios
http://raptrstudios.weebly.com/

Please consider donating to us!

New Game I'm Working On - Cerradon
User avatar
arampl
Party member
Posts: 248
Joined: Mon Oct 20, 2014 3:26 pm

Re: Menu Problems

Post by arampl »

error.png
error.png (8.05 KiB) Viewed 3749 times
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Menu Problems

Post 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'
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
RaptrStudios
Prole
Posts: 39
Joined: Thu Jan 22, 2015 5:46 am

More Information

Post 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!
Raptr Studios
http://raptrstudios.weebly.com/

Please consider donating to us!

New Game I'm Working On - Cerradon
User avatar
arampl
Party member
Posts: 248
Joined: Mon Oct 20, 2014 3:26 pm

Re: Menu Problems

Post 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.
RaptrStudios
Prole
Posts: 39
Joined: Thu Jan 22, 2015 5:46 am

Re: Menu Problems

Post by RaptrStudios »

I don't know how to reconvert it, does anyone know how?
Raptr Studios
http://raptrstudios.weebly.com/

Please consider donating to us!

New Game I'm Working On - Cerradon
User avatar
arampl
Party member
Posts: 248
Joined: Mon Oct 20, 2014 3:26 pm

Re: Menu Problems

Post 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.
Last edited by arampl on Sat Mar 28, 2015 6:49 pm, edited 1 time in total.
RaptrStudios
Prole
Posts: 39
Joined: Thu Jan 22, 2015 5:46 am

Re: Menu Problems

Post by RaptrStudios »

Ahh yes, good point.
I've been up all night so i think i'm gonna take a break.
Thanks again!
Raptr Studios
http://raptrstudios.weebly.com/

Please consider donating to us!

New Game I'm Working On - Cerradon
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests