Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Particle Errors #334042
07/20/10 21:08
07/20/10 21:08
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
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.

Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Particle Errors [Re: William] #334099
07/21/10 08:46
07/21/10 08:46
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I can not confirm a problem with particles, but of course, E1513 can have many reasons.

Check if the A8 particle samples work for you, and check also the bitmap used by your particles - maybe the file is damaged. If you can't find the reason by elimination, please contact Support. They'll look into your project.

Re: Particle Errors [Re: jcl] #334196
07/21/10 18:59
07/21/10 18:59
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I will probably have time in a couple weeks to look into this further. Everything function that contains an effect() or effect_local() call in it crashes.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1