Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,438 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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