I'm new with Löve and Lua. I would like to upgrade a 0.8 to 0.91 project I didn't wrote to learn more about.
After few upgrade in old code I'm not good enough to continue conversion. I would like to understand how to.
That is the part of 0.8 code:
Code: Select all
self.stringlist = table.concat(self.toload, ";")
self.thread:set("musiclist", self.stringlist)
Code: Select all
self.stringlist = table.concat(self.toload, ";")
channel = love.thread.getChannel("musiclist")
channel.push(self.stringlist)
According to Channel:pushbad argument #1 to 'push' (Channel expected, got string)
Means 'push' don't really expected Channel but boolean, string...The value of the message can be a boolean, string, number, LÖVE userdata, or a simple flat table. Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and tables inside tables are not supported.
I'm quite lost. Maybe I don't really understand what I'm doing.
Any help around ?