Why can't I do particles?

User avatar
scifiboi
Member
 
Posts: 96
Joined: Wed Jul 18, 2012 21:28

Why can't I do particles?

by scifiboi » Thu Jan 23, 2014 20:10

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.
This is a signature virus. Add me to your signature so that I can multiply.
My mod: Thaumtest
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Jan 23, 2014 20:25

It doesnt crash for me.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

by lightonflux » Fri Jan 24, 2014 04:29

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

User avatar
scifiboi
Member
 
Posts: 96
Joined: Wed Jul 18, 2012 21:28

by scifiboi » Fri Jan 24, 2014 19:32

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
Last edited by scifiboi on Fri Jan 24, 2014 19:54, edited 1 time in total.
This is a signature virus. Add me to your signature so that I can multiply.
My mod: Thaumtest
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron