Page 1 of 1
Shield Dispenser doesn't work [Solved]
Posted: Tue Dec 20, 2016 9:38 am
by CT108
Hi GT
When I add a turret shield for a trooper, the game crashes
There's the odf of the turret shield (called "imp_inf_turretshield") :
And here's the code of the shield (called "imp_weap_inf_shield_for_turret") :
The shields effects are also in my effect folder. So how can I play with this please ? Thanks for the help.
EDIT 1 : Added Game Object Class in the ODF
EDIT 2 : Changed the ODF (but the game still crashes)
Re: Turret Shield doesn't work
Posted: Tue Dec 20, 2016 4:49 pm
by Oceans14
Two things that caught my eye were
PilotType = "self" and
Controllable = "0". If you want this to be enterable/usable by troopers then you'd probably want it to A) not pilot itself and B) be controllable. I recommend commenting out both of these lines for the time being.
However, and more importantly, your turret odf is missing the most important part. From what you posted, it just starts with the [Properties] section, but you need a [GameObjectClass] section, otherwise the game has no idea how to process what you've given it. From the stock chaingun turret odf, we see this at the top:
Code: Select all
[GameObjectClass]
ClassLabel = "armedbuilding"
GeometryName = "com_bldg_chaingun_tripod.msh"
Add those three lines, adjust the geometry name for your msh, and then try it. Also check out the stock turret odfs (the tur side) of course.
Re: Turret Shield doesn't work
Posted: Tue Dec 20, 2016 5:16 pm
by CT108
Oceans14 wrote:Two things that caught my eye were
PilotType = "self" and
Controllable = "0". If you want this to be enterable/usable by troopers then you'd probably want it to A) not pilot itself and B) be controllable. I recommend commenting out both of these lines for the time being.
However, and more importantly, your turret odf is missing the most important part. From what you posted, it just starts with the [Properties] section, but you need a [GameObjectClass] section, otherwise the game has no idea how to process what you've given it. From the stock chaingun turret odf, we see this at the top:
Code: Select all
[GameObjectClass]
ClassLabel = "armedbuilding"
GeometryName = "com_bldg_chaingun_tripod.msh"
Add those three lines, adjust the geometry name for your msh, and then try it. Also check out the stock turret odfs (the tur side) of course.
1) I want this to not be controllable : this is like the sniper's autoturret, but with a shield and without the stock weapons (like in this vid
https://www.youtube.com/watch?v=0yJzSxjaL_E at 0:26 )
2) I just forgotten to copy and paste the game object class here (but the lines code are in my file), sorry.
Re: Shield Dispenser doesn't work
Posted: Tue Dec 20, 2016 11:44 pm
by Oceans14
Ahh I understand, I had the wrong idea at first. Your best bet is to check the log generated by the debugger. It should spit out a severity 3 error (or a few) that will help figure out what's wrong.
Re: Shield Dispenser doesn't work
Posted: Wed Dec 21, 2016 6:26 am
by CT108
I have this :
So, this is the Dark Trooper's odf (I know there isn't the jetpack) :
EDIT
I finally found the solution : I've placed the "imp_inf_turretshield" code in my "imp_weap_inf_turretshield.odf", and not in the "imp_bldg_turretshield.odf"...