Using the latest version of A8. None of my levels or scripts will load since they have many functions that call up particles.
e.g:
BMAP* k_exhaust = "smoke_kart2.tga";
function pf_remove(PARTICLE *p)
{
p.alpha -= time_step * 4;
if(p.alpha < 0){p.lifespan = -1;}
}
function pf_glow(PARTICLE *p)
{if(vec_dist(p.x,camera.x)>camera.clip_far*clip_particles){p.lifespan=-1;return;}
p.bmap = k_exhaust;
set(p,BRIGHT);
set(p,MOVE);
p.alpha = 15;
p.size = 10;
p.vel_z = 12;
p.event = pf_remove;
}
function do_stuff()
{
vec_set(temp_vec.x, my.x);
temp_vec.x += random(25); temp_vec.x -= random(25);
temp_vec.y += random(25); temp_vec.y -= random(25);
effect_local(pf_glow, 1, temp_vec.x, nullvector);
}
The above function "do_stuff" will crash unless I remove the "effect_local" command from it. Every single function that calls up a particle effect crashes. And many of the effects functions themselves crash under the E1513. It will give the function name as I mentioned. But sometimes it doesn't and just says "SYS". Or the engine just crashes and closes itself...
I could not reproduce this to a smaller project. I'm assuming it only happens in big projects, perhaps like an particle problem there was years ago where it particles caused slowdown only in huge projects code wise. But it definitely only seems to crash with levels or functions that have particles.
Last edited by William; 07/20/10 21:08.