darkness.Create{} Invalid operand error (graphics.lua:1343)

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Boxhead
Goomba
Goomba
Posts: 3
Joined: Mon Oct 12, 2020 11:37 am

darkness.Create{} Invalid operand error (graphics.lua:1343)

Postby Boxhead » Thu Oct 15, 2020 3:46 pm

Hey there,

I'm trying to add darkness and lights to my level the scripting way. However I get an error where I'm almost certain it's not my fault.
Maybe you guys can find a mistake in the following code but I think it might be a smbx bug.

Code:

Code: Select all

local darknessField = darkness.Create{
    falloff = darkness.falloff.DEFAULT,
    shadows = darkness.shadow.DEFAULT,
    maxLights = 60,
    uniforms = {},
    priorityType = darkness.priority.DISTANCE,
    bounds = nil,
    boundblendLength = 64,
    section = -1,
    shader = Shader(),
    ambient = baseambient,
    priority = 0,
    distanceField = false,
    enabled = true
}
Error Message:
Image

Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari