Getting an error that renders a level incompletable
Posted: Tue Jun 07, 2016 7:19 am
I just downloaded Camacho's level, "Waterfall Spring Melody" that makes use of Lua, and I tried to play through it, but I got stuck at one point because you need Lua in order to proceed with it. I'm pretty certain I've got the latest version of Lua because I updated it recently, and the Lua code is in the level folder. Whenever I start this level I got this error message, which I don't understand:

And then none of the code works. I've tried looking for a solution but the problem is that a lot of them are written in "computer-speak" and therefore hard to understand. Can someone help this person out? In case you're wondering, here's Camacho's Lua code that's not working:

And then none of the code works. I've tried looking for a solution but the problem is that a lot of them are written in "computer-speak" and therefore hard to understand. Can someone help this person out? In case you're wondering, here's Camacho's Lua code that's not working:
Code: Select all
local particles = loadAPI("particles");
local effect = particles.Emitter(0, 0, Misc.resolveFile("particles/p_fog.ini"));
effect:AttachToCamera(Camera.get()[1]);
function onCameraUpdate()
effect:Draw();
end
pipeAPI = loadAPI("pipecannon")
pipeAPI.exitspeed = {0,0,0,25,0,25}
pipeAPI.angle = {}
pipeAPI.angle[5] = 0 -- 5 - Nomor warp ; 0 - sudut pipa
pipeAPI.angle[10] = 0
pipeAPI.SFX = 22 -- value biasa (bullet bill sfx), isi 0 untuk diam
pipeAPI.effect = 10 -- isi 0 untuk tdk ada