Page 1 of 1

sti bump.lua plugin conctenate error

Posted: Tue Sep 08, 2020 12:11 pm
by green fries
the code

Code: Select all

require 'conf';
require 'vars';
bump = require 'maps/bump';
loc= require("maps/lv1")
local sti = require "maps"
local world = bump.newWorld()

function love.load()
    test = love.audio.newSource("audio/03 Towering Chieftain.mp3","static")
    map = sti(loc ,{bump})
    map:bump_init(world)
the error

Code: Select all

Error

maps/init.lua:157: attempt to concatenate local 'plugin' (a table value)


Traceback

maps/init.lua:157: in function 'loadPlugins'
maps/init.lua:77: in function 'init'
maps/init.lua:48: in function 'sti'
main.lua:10: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Re: sti bump.lua plugin conctenate error

Posted: Tue Sep 08, 2020 4:06 pm
by green fries
i known answer {} doesn't exist

Re: sti bump.lua plugin conctenate error

Posted: Mon Sep 14, 2020 2:33 pm
by RockEt__2580__
green fries wrote: Tue Sep 08, 2020 12:11 pm the code

Code: Select all

require 'conf';
require 'vars';
bump = require 'maps/bump';
loc= require("maps/lv1")
local sti = require "maps"
local world = bump.newWorld()

function love.load()
    test = love.audio.newSource("audio/03 Towering Chieftain.mp3","static")
    map = sti(loc ,{bump})
    map:bump_init(world)
the error

Code: Select all

Error

maps/init.lua:157: attempt to concatenate local 'plugin' (a table value)


Traceback

maps/init.lua:157: in function 'loadPlugins'
maps/init.lua:77: in function 'init'
maps/init.lua:48: in function 'sti'
main.lua:10: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Try this
map = sti(loc,{"bump"})

--notice the quotes arround bump