Author Topic: Troubleshooting addons (Problem)  (Read 1006 times)

So when im trouble shooting my addon, i look at the console to check for errors. In my addon ive made particle emitters for things such as missile smoke, muzzle flashes. However for some reason when i load the server, i get errors like:
Code: [Select]
Object 'RocketFireEmitter' is not a member of the 'ParticleEmitterData' data block class Even though i have RocketFireEmitter clearly defined in my effects folder. Same thing goes with sounds. I use custom audio profiles for my sounds. Even though they are clearly defined, i still get the error:
Code: [Select]
Object 'BM95Fire' is not a member of the 'AudioProfile' data block class
What is going on?

How do i fix this?


Alright, so Ill give you code for the RPG i made, and then the effects code.

here are the Errors for the RPG that im getting in the Console:
Code: [Select]
Executing Add-Ons/Weapon_WFExplosives/RPG.cs.
Object 'RocketClose' is not a member of the 'AudioProfile' data block class
Warning: DamageType "RPG" already exists.
Object 'MissileTrailEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'RocketWhizz' is not a member of the 'AudioProfile' data block class
Object 'MissileFireEmitter' is not a member of the 'ParticleEmitterData' data block class
Object 'RocketFireEmitter' is not a member of the 'ParticleEmitterData' data block class
Activating package: RPG

I have attached the .CS files for the RPG and the Effects

I fixed this
Code: [Select]
Object 'RocketFireEmitter' is not a member of the 'ParticleEmitterData' data block class

You are not creating RocketFireEmitter (and im assuming any of the other ones), so they do not exist.

Avoid having such generic names. "RocketFireEmitter" could be used by hundreds of other add-ons, and would conflict. I always put a short name before anything that can be accessed globally, including functions, objects, methods, variables. eg HatMod_Function

You are not creating RocketFireEmitter (and im assuming any of the other ones), so they do not exist.

Avoid having such generic names. "RocketFireEmitter" could be used by hundreds of other add-ons, and would conflict. I always put a short name before anything that can be accessed globally, including functions, objects, methods, variables. eg HatMod_Function

Thats a good Point.

But what about the sounds doing the same thing?

If you look At the M67 ive attatched, its telling me:
Code: [Select]
Object 'GrenadeClose' is not a member of the 'AudioProfile' data block classEven though the Audio Datablock AND it's description have been defined in the effects folder "EXEffects"


Do be aware that im testing the warfare packs wwith all my other weapon addons turned off.

That's really odd. Are you definitely executing the exeffects file properly in the server.cs (no typo or name change)?

That's really odd. Are you definitely executing the exeffects file properly in the server.cs (no typo or name change)?
Triple checked, and i am.