View unanswered posts | View active topics It is currently Mon Dec 30, 2024 9:25 pm



Reply to topic  [ 9 posts ] 
 Puzzling problem 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Puzzling problem
Code:
AddAmmo = Round
   PresetName = Round SECRET BPBSH
   ParticleCount = 1
   Particle = MOPixel
      CopyOf = Bullet Coalition MG
   Shell = MOSParticle
      CopyOf = Casing
   FireVelocity = 232
   ShellVelocity = 21
   Separation = 0

   
AddEffect = MOPixel
   CopyOf = Round SECRET BPBSH
   PresetName = Tracer SECRET SMG
   Mass = 0.14
   Sharpness = 21
   Color = Color
      R = 248
      G = 219
      B = 0
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 228
         G = 219
         B = 0
      TrailLength = 24


I have this as my round definitions, but when I run the game it crashes and says I didn't define the round. Yes, in both instances in the uncensored code, they are both spelled the same and have no syntax differences. I don't know what the deal is.


Fri Jul 08, 2011 9:23 am
Profile WWW
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Puzzling problem
It's not puzzling at all, read the first line of the code of the second chunk.


Fri Jul 08, 2011 9:26 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: Puzzling problem
AddEffect = MOPixel
What's so irregular about that?


Fri Jul 08, 2011 10:34 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Puzzling problem
Miggles wrote:
Code:
AddAmmo = Round
   PresetName = Round SECRET BPBSH

AddEffect = MOPixel
   CopyOf = Round SECRET BPBSH

Look closer.


Fri Jul 08, 2011 5:47 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: Puzzling problem
It would really help if you weren't so vague. I'm not the greatest modder out there and I don't know all the ways the code works. If you could tell me specifically what's going wrong then I could actually resolve my problem.


Fri Jul 08, 2011 10:32 pm
Profile WWW
User avatar

Joined: Thu Dec 16, 2010 11:06 pm
Posts: 276
Reply with quote
Post Re: Puzzling problem
What he means is that your code is using an Ammo preset as a base for an MOPixel. It just doesn't work. You're trying to copy a Round and make it into an MOPixel, which is impossible, and thus causing the issue. CopyOf can only be used if both the original and the new copy are the same sort of thing, like both an MOPixel or both an Ammo. Rounds are fired from guns, whereas MOPixels are the actual bullet produced by the Round. The MOPixel is the one with variables like Mass and Sharpness to do damage, but the Round is the one which designates the bullet to be fired and the shell to be ejected and other such things.

To fix it, you simply remove the CopyOf line and determine all of the characteristics of the MOPixel yourself. I think you were trying to make a CopyOf the Bullet Coalition MG MOPixel, so you would replace the CopyOf = Round SECRET BPBSH with CopyOf = Bullet Coalition MG.


Sat Jul 09, 2011 1:29 am
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Puzzling problem
Miggles wrote:
AddEffect = MOPixel
What's so irregular about that?


Why are you trying to define a tracer round as a MOPixel tell me that.


Sat Jul 09, 2011 1:36 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: Puzzling problem
Thank you for the help soupiest.

EDIT: Now I'm getting an error stating that I haven't defined the Tracer round. Even after re-defining it, re-naming it and rewriting the entire chunk of code it still says that there is no round.


Sat Jul 09, 2011 2:34 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Mon Jul 12, 2010 5:39 am
Posts: 4558
Reply with quote
Post Re: Puzzling problem
DERP DERP NEVERMIND I FIXED IT.
Ok so the first gun is done. Just need to make more now and then I can set a first release.
Also balancing is in order.


Sat Jul 09, 2011 8:23 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.034s | 15 Queries | GZIP : Off ]