Explosion Generator script crashing Spring

Explosion Generator script crashing Spring

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Explosion Generator script crashing Spring

Post by Guessmyname »

Through careful testing, I have found that this script is crashing Spring:

[NURGLE_CLOUD]
{
[particlesystem_BUILDER_FX]
{
class=CSimpleParticleSystem;
[properties]
{
sizeGrowth=0.05;
sizeMod=1.0;
pos=0, 1.0, 0;
emitVector=dir;
gravity=0, 0, 0;
colorMap=0.0 1.0 0.0 0.7 0.0 1.0 1.0 0.7
Texture=gas;
airdrag=0.97;
particleLife=45;
particleLifeSpread=5;
numParticles=5;
particleSpeed=1;
particleSpeedSpread=0.25;
particleSize=1;
particleSizeSpread=0.25;
emitRot=10;
emitRotSpread=0;
directional=0;
}
air=1;
water=1;
ground=1;
count=1;
}
}

It's basically the builder FX off Nanoblobs (the magic sparkly thing) modified to be a smog to float around Nurgle Death Guard Marines in Epic Legions. It crashes Spring as soon as it is called in the script (and this isn't a script problem, the script works with other FX scripts)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

No semicolon after ColorMap?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

I noticed that almost as soon as I posted it.

Fixed now...
stupid typos
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

Okay, how do you set the alpha on these things? As far as I can tell, only pure black is made transparent, and this is pretty frakking ugly:

Image

What I'm aiming for involves large clouds (particles - know how to do this), that are transparent and float downwards and outwards slowly and at the same time (these I have trouble with)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Use the alpha channel on your texture. AFAIK the texture's color is always added, the more opaque your alpha the more the background gets darkened out.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Black is only needed for alpha blending, dunno if there's an option to force the SPS to use it. Would be cool...
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

Ha ha! Success!

Image

The march of Nurgle.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Hahahah, nice
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

cool! what else is in the mod atm? is there a topic on it?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

Yes, but it's a bit old. Epic Legions has a moddb profile, go there and have a wander through the image gallery
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

Mmmm...Nurglites. So you're still working on this? Cool.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Post by manored »

WOW! NICE! Then i first looked to the picture I looked to the tank and say trees under it, only then I looked well I noticed they were units!
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

I need to get more of my work out there, then...
Post Reply

Return to “Game Development”