sti bump.lua plugin conctenate error

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
green fries
Prole
Posts: 6
Joined: Tue Sep 08, 2020 12:05 pm

sti bump.lua plugin conctenate error

Post 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'
green fries
Prole
Posts: 6
Joined: Tue Sep 08, 2020 12:05 pm

Re: sti bump.lua plugin conctenate error

Post by green fries »

i known answer {} doesn't exist
RockEt__2580__
Prole
Posts: 12
Joined: Mon Sep 14, 2020 8:36 am

Re: sti bump.lua plugin conctenate error

Post 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
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests