I need help with code
I am doing the last few modifications and today I failed code.
Screenshot
------------------------------My Code---------------------------
///////////////////////////////////////////////////////////////////////////////
//
// Copyright 1997-2000 Pandemic Studios
//
CreateEffectType("common.class.RestoreTargetProcesslarge")
{
Sound();
Particles()
{
Add(10)
{
Particle("RestoreTargetProcesslarge.puff");
VelocityPosition(0.6, 6, 0.6);
Random(1.0, 0.5, 1.0);
RandomVertex(1);
}
}
MeshEffect("restoretargetlarge", "Glow")
{
LifeTime(0.8);
ColorKey(0.0, 0, 255, 0, 0);
ColorKey(0.5, 255, 255, 0, 127);
ColorKey(1.0, 0, 255, 0, 0);
}
}
CreateParticleType("RestoreTargetProcesslarge.puff", "Particle")
{
lifeTime(1.0);
RenderBase("RenderRestoreTargetProcesslarge.puff");
}
CreateParticleRenderType("RenderRestoreTargetProcesslarge.puff", "Sprite")
{
TextureName("lightflare.tga"); // hack
TextureBlend("srcalpha one modulatealpha");
ColorKey(0.0, 255, 255, 255, 255);
ColorKey(0.3, 255, 255, 0, 127);
ColorKey(1.0, 0, 255, 0, 0);
StartRadius(1.0);
FinishRadius(0.2);
AnimateTime(1.0);
}
}
}
my code caused the error of the game
my code caused the error of the game
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
- Kennedy
- Loyal Member
- Posts: 621
- Joined: Sun Dec 30, 2012 12:51 pm
- Location: behind u.. now u see me?
- Contact:
Re: my code caused the error of the game
It means you have another you duplicate same fileParticle Type 'RestoreTargetProcesslarge.puff' Already defined
Keep Calm... Im Here!
http://tru3---clan.webs.com/
http://tru3---clan.webs.com/
Re: my code caused the error of the game
well, but how can I fix ?
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
- Kennedy
- Loyal Member
- Posts: 621
- Joined: Sun Dec 30, 2012 12:51 pm
- Location: behind u.. now u see me?
- Contact:
Re: my code caused the error of the game
Change names of ur files
Keep Calm... Im Here!
http://tru3---clan.webs.com/
http://tru3---clan.webs.com/
Re: my code caused the error of the game
Find and change all instances of 'RenderRestoreTargetProcesslarge.puff' to something else. Like so:
Code: Select all
CreateParticleType("RestoreTargetProcesslarge.puff", "Particle")
{
lifeTime(1.0);
RenderBase("RenderRestoreTargetProcesslarge.puff");
}
CreateParticleRenderType("RenderRestoreTargetProcesslarge.puff", "Sprite")
{
TextureName("lightflare.tga"); // hack
TextureBlend("srcalpha one modulatealpha");
ColorKey(0.0, 255, 255, 255, 255);
ColorKey(0.3, 255, 255, 0, 127);
ColorKey(1.0, 0, 255, 0, 0);
StartRadius(1.0);
FinishRadius(0.2);
AnimateTime(1.0);
}
Code: Select all
CreateParticleType("RestoreTargetProcesslarge.puff2", "Particle")
{
lifeTime(1.0);
RenderBase("RenderRestoreTargetProcesslarge.puff2");
}
CreateParticleRenderType("RenderRestoreTargetProcesslarge.puff2", "Sprite")
{
TextureName("lightflare.tga"); // hack
TextureBlend("srcalpha one modulatealpha");
ColorKey(0.0, 255, 255, 255, 255);
ColorKey(0.3, 255, 255, 0, 127);
ColorKey(1.0, 0, 255, 0, 0);
StartRadius(1.0);
FinishRadius(0.2);
AnimateTime(1.0);
}
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
"Can we order a pizza?"
GameRanger ID: 913974
"Can we order a pizza?"
GameRanger ID: 913974
Re: my code caused the error of the game
thanks
oh no next eror
my code
Add(2)
{
Particle("VehChunk1");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk2");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk3");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk4");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk5");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
}
}
How can I fix ?
oh no next eror
my code
Add(2)
{
Particle("VehChunk1");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk2");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk3");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk4");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
Add(2)
{
Particle("VehChunk5");
VelocityPosition(5, 15, 5);
VelocityAngular(255, 255, 255);
Random(1.0, 0.5, 1.0);
}
}
}
How can I fix ?
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
Who is online
Users browsing this forum: No registered users and 0 guests