Page 1 of 1

Why can't I do particles?

PostPosted: Thu Jan 23, 2014 20:10
by scifiboi
When I execute this code, Minetest crashes without error.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_abm({
    nodenames = {"thaumtest:nitor"},
    interval = 0.5,
    chance = 1,
    action = function(pos)
        minetest.add_particle({
            pos = pos,
            velocity = {x = 0, y = .5, z = 0},
            acceleration = {x = 0, y = 0, z = 0},
            expirationtime = 1,
            texture = "nitorParticle.png",
            playername = nil,
        })
    end
})


Can someone tell me what is wrong with this code? I can't find an error.

PostPosted: Thu Jan 23, 2014 20:25
by PilzAdam
It doesnt crash for me.

PostPosted: Fri Jan 24, 2014 04:29
by lightonflux
More informations! Used platform, version… phase of the moon.

PostPosted: Fri Jan 24, 2014 19:32
by scifiboi
PilzAdam wrote:It doesnt crash for me.

I dunno why it isn't. If I comment out this code, it runs fine. :/

lightonflux wrote:More informations! Used platform, version… phase of the moon.

Windows Vista, MT 0.4.9, waning crescent ;)

Hybrid Dog wrote:You could try minetest --trace.

minetest --trace?

EDIT:
Wait, I just now got what you mean and I feel dumb for not realizing it at first. :P I ran that in a command prompt and the last message I got from it was:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Compiling high-level shaders for solid_shader