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!
[SOLVED] Menu Problems
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 39
- Joined: Thu Jan 22, 2015 5:46 am
[SOLVED] Menu Problems
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
http://raptrstudios.weebly.com/
Please consider donating to us!
New Game I'm Working On - Cerradon
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: Menu Problems
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)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-
- Prole
- Posts: 39
- Joined: Thu Jan 22, 2015 5:46 am
More Information
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!
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
http://raptrstudios.weebly.com/
Please consider donating to us!
New Game I'm Working On - Cerradon
Re: Menu Problems
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.
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.
-
- Prole
- Posts: 39
- Joined: Thu Jan 22, 2015 5:46 am
Re: Menu Problems
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
http://raptrstudios.weebly.com/
Please consider donating to us!
New Game I'm Working On - Cerradon
Re: Menu Problems
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.
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.
-
- Prole
- Posts: 39
- Joined: Thu Jan 22, 2015 5:46 am
Re: Menu Problems
Ahh yes, good point.
I've been up all night so i think i'm gonna take a break.
Thanks again!
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
http://raptrstudios.weebly.com/
Please consider donating to us!
New Game I'm Working On - Cerradon
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 8 guests