my code caused the error of the game

Having problems with AMRTS? Having problems with your Computer?
Post Reply
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

my code caused the error of the game

Post by Petas »

I need help with code

I am doing the last few modifications and today I failed code.

Screenshot
Image
------------------------------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);
}
}
}
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
User avatar
Kennedy
Loyal Member
Loyal Member
Posts: 621
Joined: Sun Dec 30, 2012 12:51 pm
Location: behind u.. now u see me?
Contact:
Mexico

Re: my code caused the error of the game

Post by Kennedy »

Particle Type 'RestoreTargetProcesslarge.puff' Already defined
It means you have another you duplicate same file
Keep Calm... Im Here!
http://tru3---clan.webs.com/
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: my code caused the error of the game

Post by Petas »

well, but how can I fix ? :PB
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
User avatar
Kennedy
Loyal Member
Loyal Member
Posts: 621
Joined: Sun Dec 30, 2012 12:51 pm
Location: behind u.. now u see me?
Contact:
Mexico

Re: my code caused the error of the game

Post by Kennedy »

Change names of ur files
Keep Calm... Im Here!
http://tru3---clan.webs.com/
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: my code caused the error of the game

Post by TommyCD1 »

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.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: my code caused the error of the game

Post by Petas »

thanks :D
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 ? :PB :PB
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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests