Anyone ever get the Rain Splashes tutorial to work?

Grab your favourite IDE and tinker with the innards of game engines

Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Thu Nov 18, 2010 4:13 am

Anyone ever get this tutorial to work? http://developer.valvesoftware.com/wiki/Rain_splashes

No madder what my particles, even if I try to use existing ones, end up red "X"s.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby city14 on Thu Nov 18, 2010 4:17 am

Must be pointing to it wrong... Make sure you are using the right nomenclature for the particle effect...

Someone should correct me on this, but isn't it the name within the *.pcf not the actual pcf?
coder0xff wrote:I wonder if Gabe ever lies in bed at night, thinking about all the fat jokes, and just cries himself to sleep, wiping his tears away with one-thousand dollar bills.
User avatar
city14
Pheropod
Pheropod
 
Joined: Tue Jun 16, 2009 8:35 pm
Location: Troutdale, Oregon

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Thu Nov 18, 2010 4:32 am

Pretty sure you use the particle_manifest.txt to precache the pcf file then you call particle systems within those files.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby pfannkuchen_gesicht on Thu Nov 18, 2010 4:27 pm

write a ! in front of the *.pcf path in the particles_manifest.txt
somehow DispatchParticleEffect() works properly only server-side, it's better to use
Code: Select all
CNewParticleEffect* pEffect = new CNewParticleEffect()

instead. that will also fix the problem.
and btw, don't forget to Precache the particle first with
Code: Select all
PrecacheParticleSystem()
pfannkuchen_gesicht
Member
Member
 
Joined: Sat May 29, 2010 11:36 pm

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Thu Nov 18, 2010 8:16 pm

pfannkuchen_gesicht wrote:write a ! in front of the *.pcf path in the particles_manifest.txt

Already tried that, to be safe.

pfannkuchen_gesicht wrote:somehow DispatchParticleEffect() works properly only server-side, it's better to use
Code: Select all
CNewParticleEffect* pEffect = new CNewParticleEffect()

instead. that will also fix the problem.


Does
Code: Select all
CNewParticleEffect()
have the same inputs that
Code: Select all
DispatchParticleEffect()
does?


pfannkuchen_gesicht wrote:and btw, don't forget to Precache the particle first with
Code: Select all
PrecacheParticleSystem()


Did that already too.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Jangalomph on Fri Nov 19, 2010 2:25 am

make sure you actually have the rain_splash particle my friend. Obviously it shows up with red x's because the particle isn't found. Make sure when you say "dispatchparticleeffect ( "rain_splash,....) or what ever that thats the correct name. Just because it has that name in the tutorial doesn't mean it exists. Maybe you need to make one. Thats what i did.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Fri Nov 19, 2010 3:29 am

I know the particle exists, I set one up, also, weird thing is, it's almost like the particle is invalid or something, because I don't get a "particle not found" error.


Did you get it to work?
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Fri Nov 19, 2010 6:57 am

I think it might of been a combination of my placement of the precaching call and my crappy particle. I put the precache under the think function and Armageddon made me a new particle.

Also, because I can never fallow a tutorial without editing anything, I made the rain collide with every solid object:
Image
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby pfannkuchen_gesicht on Fri Nov 19, 2010 2:43 pm

Gary wrote:Does
Code: Select all
CNewParticleEffect()
have the same inputs that
Code: Select all
DispatchParticleEffect()
does?


no, works a bit different.
Code: Select all
   PrecacheParticleSystem(particlesystem);
   CNewParticleEffect* pEffect = new CNewParticleEffect( C_BaseEntity, particlesystem );
   pEffect->SetControlPoint( 0, vecOrigin );

and btw spawning particles that way isn't that good if you want to attach it to something, you would need to update the position yourself
pfannkuchen_gesicht
Member
Member
 
Joined: Sat May 29, 2010 11:36 pm

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Armageddon on Fri Nov 19, 2010 8:50 pm

Gary wrote:I think it might of been a combination of my placement of the precaching call and my crappy particle. I put the precache under the think function and Armageddon made me a new particle.

Also, because I can never fallow a tutorial without editing anything, I made the rain collide with every solid object:
Image

Looks better than I expected, where is the rain though? I'd also like to see it hit the ground and not the chopper. :smt023
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby wickit on Thu Nov 25, 2010 3:04 pm

I would be interested in see your final code from this
as i have too tried to add the tutorial but have had a few issues, not with missing particles but amount of them being spawned...
wickit
Member
Member
 
Joined: Thu Dec 15, 2005 11:04 pm

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Gary on Thu Nov 25, 2010 6:12 pm

Lowering the splash percentage CVar helps with too much particles.


I could upload the entire cpp file for you, you would need a particle though.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby wickit on Thu Nov 25, 2010 8:53 pm

yeah like i said i have the particles working fine, but i would still be interested to see how different your code is and why i have problems

happy for you to email me the cpp
wickit AT gmail.com
wickit
Member
Member
 
Joined: Thu Dec 15, 2005 11:04 pm

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby Armageddon on Thu Nov 25, 2010 9:09 pm

My final product.

Image
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Anyone ever get the Rain Splashes tutorial to work?

Postby wickit on Thu Nov 25, 2010 10:32 pm

Image

sill like to see others code though....
wickit
Member
Member
 
Joined: Thu Dec 15, 2005 11:04 pm
Next

Return to Programming

Who is online

Users browsing this forum: No registered users