Author |
Message |
Miggles
Data Realms Elite
Joined: Mon Jul 12, 2010 5:39 am Posts: 4558
|
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 |
|
|
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
|
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 |
|
|
Miggles
Data Realms Elite
Joined: Mon Jul 12, 2010 5:39 am Posts: 4558
|
Re: Puzzling problem
AddEffect = MOPixel What's so irregular about that?
|
Fri Jul 08, 2011 10:34 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
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 |
|
|
Miggles
Data Realms Elite
Joined: Mon Jul 12, 2010 5:39 am Posts: 4558
|
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 |
|
|
thesoupiest
Joined: Thu Dec 16, 2010 11:06 pm Posts: 276
|
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 |
|
|
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
|
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 |
|
|
Miggles
Data Realms Elite
Joined: Mon Jul 12, 2010 5:39 am Posts: 4558
|
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 |
|
|
Miggles
Data Realms Elite
Joined: Mon Jul 12, 2010 5:39 am Posts: 4558
|
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 |
|
|
|