OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Pilot on 17 Jun 2005, 17:59:43

Title: Addon Causes Crash
Post by: Pilot on 17 Jun 2005, 17:59:43
I am working on a project (http://www.ofpec.com/yabbse/index.php?board=43;action=display;threadid=24248;start=0;boardseen=1) with Grendel that involves tank turrets popping off of the hulls.  I have the models made, and I have a config that gets them in the game.  However, the turrets and hulls don't have damage textures with them, and it looks odd for a black tank to pop a shiny new turret :P.  To get around this I am trying to config the objects as tanks.  However, whenever I try to create the vehicles ingame, the game crashes.  Furthermore, I am unable to see any of the hulls or turrets in the selection in the units screen in the mission editor (uhh, is that clear?).

I do not know if the problem is in the config or the models (probably both ::)).

Any help would be much appreciated!

Attached is the config.

-Student Pilot

EDIT:
I am now able to select the turrets and hulls in the mission editor.  I fixed that problem by making the addon public.  However, OFP still crashed to desktop without an error message when the turrets or hulls are created.

Attached is the most recent config.
Title: Re:Addon Causes Crash
Post by: Planck on 17 Jun 2005, 21:33:10
I had a look at this Student Pilot.

I don't think you are allowed to have spaces in names.

For example:

model="\Tank Parts\T80_Turret.p3d";

Should better be named:

model="\TankParts\T80_Turret.p3d";

or maybe:

model="\Tank_Parts\T80_Turret.p3d";


Even if that isn't the problem, you have the classname in cfgPatches as:

class Tankparts

but the pbo is stated as being:

model="\Tank Parts\T80_Turret.p3d";


Hope this helps.


Planck
Title: Re:Addon Causes Crash
Post by: Pilot on 17 Jun 2005, 21:56:35
Well, that is a good point.  I had forgotten about that. ::)  I changed it, but the problem is still there.

Does a tank need any special selections in the model for it to work properly?

-Student Pilot
Title: Re:Addon Causes Crash
Post by: Planck on 17 Jun 2005, 22:38:03
I'm only aware of the standard selections for tanks in the config.bin and as you inherit from class tank it might be that it can't find those selections in your model.

These selections are for the various hatches and vehicle instruments.

On the subject of tank damage texturers...........

There is a tutorial for this by Fab in the Editors Depot pending list.


Planck
Title: Re:Addon Causes Crash
Post by: Pilot on 17 Jun 2005, 23:00:53
So I probably need those selections in my model?

Quote
There is a tutorial for this by Fab in the Editors Depot pending list.
Yes, I already have it.  It is a good tutorial.

-Student Pilot