Data Realms Fan Forums http://45.55.195.193/ |
|
Puzzling problem http://45.55.195.193/viewtopic.php?f=1&t=24526 |
Page 1 of 1 |
Author: | Miggles [ Fri Jul 08, 2011 9:23 am ] |
Post subject: | 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. |
Author: | dragonxp [ Fri Jul 08, 2011 9:26 am ] |
Post subject: | Re: Puzzling problem |
It's not puzzling at all, read the first line of the code of the second chunk. |
Author: | Miggles [ Fri Jul 08, 2011 10:34 am ] |
Post subject: | Re: Puzzling problem |
AddEffect = MOPixel What's so irregular about that? |
Author: | Roast Veg [ Fri Jul 08, 2011 5:47 pm ] |
Post subject: | Re: Puzzling problem |
Miggles wrote: Code: AddAmmo = Round PresetName = Round SECRET BPBSH AddEffect = MOPixel CopyOf = Round SECRET BPBSH Look closer. |
Author: | Miggles [ Fri Jul 08, 2011 10:32 pm ] |
Post subject: | 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. |
Author: | thesoupiest [ Sat Jul 09, 2011 1:29 am ] |
Post subject: | 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. |
Author: | dragonxp [ Sat Jul 09, 2011 1:36 am ] |
Post subject: | 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. |
Author: | Miggles [ Sat Jul 09, 2011 2:34 am ] |
Post subject: | 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. |
Author: | Miggles [ Sat Jul 09, 2011 8:23 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |