Page 28 of 41
Re: Löve Frames - A GUI Library
Posted: Tue Dec 30, 2014 9:47 pm
by scheda
vekenti wrote:Make sure you are doing require("path.to.loveframes") and not require("path/to/loveframes").
Wow didnt know that would make a difference o.o thanks
-Edit- Got a different error now,says that
Code: Select all
attempt to index global 'loveframes' (a nil value)
in function 'load'
-Edit -
forgot to do loveframes = require(blabla) fixed now[/quote]
Can you post your code for this? I'm having the same trouble but can't figure it out. (Still VERY new to Love2d)
Re: Löve Frames - A GUI Library
Posted: Wed Dec 31, 2014 2:18 pm
by Xardas
I would love to use this library, but when I include it in my main.lua, it seems to conflict with other libraries like Simple-Tiled and hump. I get strange errors when using either of those two libraries in conjunction with LoveFrames.
This is the top of my main.lua:
Code: Select all
local loveframes = require "LoveFrames-master"
local sti = require "Simple-Tiled-Implementation-master"
local timer = require "hump-master.timer"
Do you happen to know how I can resolve this issue?
Thanks
Re: Löve Frames - A GUI Library
Posted: Wed Dec 31, 2014 5:08 pm
by Doctory
@Xardas
try renaming the folders
i know it might not work, but still
Re: Löve Frames - A GUI Library
Posted: Wed Dec 31, 2014 5:58 pm
by Xardas
Hm no, that didn't help unfortunately.
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 2:24 am
by tommyroyall
Hello! I am running Löve Frames inside of a Hump gamestate and it seems not to be playing nicely, giving me this error code:
Edit: I reran it after rebooting Zerobrane, and now it's giving me this:
Code: Select all
Program starting as '"C:\Program Files\love\love.exe" "C:\Users\Tommy\Desktop\ReindeerSimulator12-30-14" -debug'.
Program 'love.exe' started in 'C:\Users\Tommy\Desktop\ReindeerSimulator12-30-14' (pid: 4940).
Total lines in the project: 1454
Error: libs/loveframes/libraries/templates.lua:99: attempt to index local 'base' (a nil value)
stack traceback:
libs/loveframes/libraries/templates.lua:99: in function 'Register'
libs/loveframes/init.lua:443: in main chunk
[C]: in function 'require'
main.lua:88: in main chunk
[C]: in function 'require'
[string "boot.lua"]:360: in function <[string "boot.lua"]:241>
[C]: in function 'xpcall'
Program completed in 36.95 seconds (pid: 4940).
However I'll keep the old one here:
Code: Select all
Program starting as '"C:\Program Files\love\love.exe" "C:\Users\Tommy\Desktop\ReindeerSimulator12-30-14" -debug'.
Program 'love.exe' started in 'C:\Users\Tommy\Desktop\ReindeerSimulator12-30-14' (pid: 4932).
Total lines in the project: 1453
Error: libs/loveframes/objects/base.lua:11: attempt to call field 'NewObject' (a nil value)
stack traceback:
libs/loveframes/objects/base.lua:11: in main chunk
[C]: in function 'require'
libs/loveframes/init.lua:435: in main chunk
[C]: in function 'require'
main.lua:87: in main chunk
[C]: in function 'require'
[string "boot.lua"]:360: in function <[string "boot.lua"]:241>
[C]: in function 'xpcall'
Program completed in 2.18 seconds (pid: 4932).
If code is wanted, I'll upload it for you, but which source should I use? Sorry for the question, I'm new to the forum.
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 4:03 am
by Nikolai Resokav
scheda wrote:Can you post your code for this? I'm having the same trouble but can't figure it out. (Still VERY new to Love2d)
What kind of issue are you having?
Xardas wrote:I would love to use this library, but when I include it in my main.lua, it seems to conflict with other libraries like Simple-Tiled and hump. I get strange errors when using either of those two libraries in conjunction with LoveFrames.
This is the top of my main.lua:
Code: Select all
local loveframes = require "LoveFrames-master"
local sti = require "Simple-Tiled-Implementation-master"
local timer = require "hump-master.timer"
Do you happen to know how I can resolve this issue?
Thanks
Can you post the errors you are getting?
tommyroyall wrote:Hello! I am running Löve Frames inside of a Hump gamestate and it seems not to be playing nicely, giving me this error code:
Can post a .love of your program so that I can take a look?
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 9:43 am
by Xardas
This has to do with me calling
Code: Select all
currentMap = sti.new("maps/desert")
in love.load(). Btw, this works just fine if I don't use LoveFrames.
If I comment it out or remove that line, I get the next error:
This is due to using a timer from HUMP's timer module:
Code: Select all
timer.tween(1, label, {y=40}, 'out-cubic')
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 10:32 am
by Nikolai Resokav
Xardas wrote:
This has to do with me calling
Code: Select all
currentMap = sti.new("maps/desert")
in love.load(). Btw, this works just fine if I don't use LoveFrames.
If I comment it out or remove that line, I get the next error:
This is due to using a timer from HUMP's timer module:
Code: Select all
timer.tween(1, label, {y=40}, 'out-cubic')
I think the utf8 library that Love Frames uses might be causing the issue. Try removing the utf8 require code in init.lua and see if that fixes any of the issues.
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 11:54 am
by Xardas
Indeed, that was the issue!
I just set
Code: Select all
loveframes.config["ENABLE_UTF8_SUPPORT"] = false
Thanks, now there are no problems
Re: Löve Frames - A GUI Library
Posted: Thu Jan 01, 2015 10:17 pm
by tommyroyall
Thank you so much for looking into this Nikolai! Loveframes has been used in numerous past projects and proves vital for this one, and the file that it is called in from is main.lua, though the one that is giving me issues would be CabinGamestate.lua. At the same time, the first one that is opened is MenuGamestate.lua. Here is the download link to the .love file,
http://www.mediafire.com/download/eyil1 ... 30-14.love