This seems to be occurring from running MakeTop() on parent frames. I'll have a fix that prevents this bug from occurring in the next update. Thanks for finding this.AntonioModer wrote:BUG:
LOVE 0.8.0
Löve Frames v0.9.3.2When i clicked left mouse on "frame1" (is children of "frame0").Code: Select all
The button item 1 was clicked! Info was selected. Error: libraries/loveframes/objects/frame.lua:382: attempt to index field '?' (a nil value) stack traceback: libraries/loveframes/objects/frame.lua:382: in function 'MakeTop' libraries/loveframes/objects/frame.lua:224: in function 'mousepressed' libraries/loveframes/objects/frame.lua:234: in function 'mousepressed' libraries/loveframes/objects/base.lua:83: in function 'mousepressed' libraries/loveframes/init.lua:107: in function 'mousepressed' main.lua:331: in function 'mousepressed' [string "boot.lua"]:164: in function '?' [string "boot.lua"]:396: in function <[string "boot.lua"]:373> [C]: in function 'xpcall'
BUG in function 'MakeTop', in variable 'key'.
If key = 0 then error.
My debug (in a hurry):Sources: another person (other than me) it is difficult to understand themCode: Select all
--[[--------------------------------------------------------- - func: MakeTop() - desc: makes the object the top object in the drawing order --]]--------------------------------------------------------- function frame:MakeTop() local x, y = love.mouse.getPosition() local key = 0 local base = loveframes.base local basechildren = base.children local numbasechildren = #basechildren if numbasechildren == 1 then return end if basechildren[numbasechildren] == self then return end -- make this the top object for k, v in ipairs(basechildren) do if v == self then table.remove(basechildren, k) table.insert(basechildren, self) key = k break end end -- MY DEBUG -- if key == 0 and numbasechildren > 0 then key = 1; end basechildren[key]:mousepressed(x, y, "l") -- BUG WITH "key" !!! end
The license only applies to Love Frames. Just leave a copy of the license in the directory you installed Love Frames and you'll be good to go.adrix89 wrote: Quick question on license.
The project is CC-BY-SA so does that mean it is contagious to my project?
If I make a game but not modify the library does that mean I have to license my game SA?
What is the authors interpretation of the license on this?