Home   Help Search Login Register  

Author Topic: Addon Causes Crash  (Read 1422 times)

0 Members and 1 Guest are viewing this topic.

Offline Pilot

  • Contributing Member
  • **
Addon Causes Crash
« on: 17 Jun 2005, 17:59:43 »
I am working on a project 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.
« Last Edit: 17 Jun 2005, 19:19:28 by Student Pilot »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Addon Causes Crash
« Reply #1 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
I know a little about a lot, and a lot about a little.

Offline Pilot

  • Contributing Member
  • **
Re:Addon Causes Crash
« Reply #2 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Addon Causes Crash
« Reply #3 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
I know a little about a lot, and a lot about a little.

Offline Pilot

  • Contributing Member
  • **
Re:Addon Causes Crash
« Reply #4 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