TDR addon car problem

All things Carmageddon TDR2000 related - from editing, to multiplayer, tips and hints.
User avatar
Mastro 666
motorised death
Posts: 891
Joined: Thu Jan 26, 2006 6:24 pm

TDR addon car problem

Post by Mastro 666 »

I'm working on my first addon car and I keep hitting a wall with it.

I'm sure I'm doing something really really wrong with the Descriptor.txt

Image

.max file and car folder: http://www.mediafire.com/file/eb0s30uel ... aniCar.zip

:help: :noob:
User avatar
Toshiba-3
アルカリ (単3形)
Posts: 5226
Joined: Sun Jun 08, 2003 12:14 am
Location: Bleak City

Re: TDR addon car problem

Post by Toshiba-3 »

Hello again Mastro,

You did a great deal of progress..! Some observations:

- Are you able to export the model from MAX properly? Because I can't and constantly have this error message upon processing the chassis:
Screenshot 2021-02-20 151059.png
I noticed the models (chassis and wheel_master) have wayyyyyy too many vertices, they are most likely all split. What you have to do is collapse or reconvert the objects to Edit Mesh modes once you have applied the reset XFORM (right-Click, convert to edit mesh), then enter vertex selection mode, select all vertices then weld the selection with a 0.001 threshold.
Screenshot 2021-02-20 151925.png
But still the car will crash on my end upon exporting, don't know why yet.
Anyway...

- The error you've shown up there is because of a local numbering issue..! That means the export plugin formats number and coordinates with commas ( , ) instead of periods ( . ).

Code: Select all

    0,584300     0,584300    0,584300    1,000000    0
    while it should be:
        0.584300     0.584300    0.584300    1.000000    0
To work around this, close Max, change the regional format in Windows settings to English (United States), then open Max again.
Screenshot 2021-02-20 152759.png
- Pay attention that the properties set onto the chassis model (right-click, properties, user defined tab), still make it load FRED and FRED_Damaged, instead of your Pagani textures. (that'll make the game crash upon loading the car)

- in the descriptor txt file, the node names must be in all-caps (ie. "PAGANI_VIEWFX" instead of "Pagani_VIEWFX"). The export plugin converts all names to caps.

- still in the descriptor, if you've got no customized func files, simply use the eagle4 ones:

Code: Select all

// Name of torque curve function
	"Eagle4TorqueCurve.func"

// Name of tire slip curve function
	"Eagle4RoadSlipCurve.func"

// Name of tire load curve function
	"Eagle4TireLoadCurve.func"
	
// Name of Camber thrust curve
	"Eagle4CamberThrust.func"

// Name of Camber grip curve
	"Eagle4CamberGrip.func"

// Name of Front Down force curve
	"Eagle4FrontDownForce.func"

// Name of Rear Down force curve
	"Eagle4RearDownForce.func"

// Name of Roll resistance curve
	"Eagle4RollResistanceCurve.func"
or the ones from an existing car that matches the new car.

Not much else to say at the moment as the reason why the car is crashing while exporting isn't clear to me.
You do not have the required permissions to view the files attached to this post.
Image / carmageddon add-ons at road reaction
User avatar
Mastro 666
motorised death
Posts: 891
Joined: Thu Jan 26, 2006 6:24 pm

Re: TDR addon car problem

Post by Mastro 666 »

Hello! Many thanks for your help on this. :beer:
Are you able to export the model from MAX properly?
Yes, the export process works fine here.
select all vertices then weld the selection with a 0.001 threshold.
change the regional format in Windows settings to English
Pay attention that the properties set onto the chassis model
the node names must be in all-caps
if you've got no customized func files, simply use the eagle4 ones
Done.

I get this error when i try to select the car:

Image

New files: http://www.mediafire.com/file/3jpgxd0cc ... ani_v2.zip

:help:
User avatar
Toshiba-3
アルカリ (単3形)
Posts: 5226
Joined: Sun Jun 08, 2003 12:14 am
Location: Bleak City

Re: TDR addon car problem

Post by Toshiba-3 »

Alrighty, the problem now is that "chassis" is too complex: TDR2000 has a limit of 2048 vertices per component. (C2 has it at 1024)
The solution is easy! Hit F4 to enable edged-faces mode, then F2 to turn selected faces fullbright red. Now select chassis, and in the modify tab, select the object mode. Select all objects forming the chassis model by dragging a selection around it with the mouse, Alt-click on the main component to deselect it, then click on Detach button to split the selection apart into a separate model (name it whatever you want).
Link that new model to data_chassis, and copy the user data properties from chassis, into the properties of the new model.
Screenshot 2021-02-21 112857.png
Screenshot 2021-02-21 113110.png
That should do the trick..!

Now you'll notice that you'll have to place the wheel instance nodes properly as they are too far in. Probably drag them lower under the car too to give a bit more clearance for suspensions to do their work. You'll also have to mirror wheel_master, as the current one is only good for one side :B You'll have something like wheel_master_left and wheel_master_right.
Another remark is that if you don't intend on making a damaged texture, you don't have to create it. Just write Pagani instead of Pagani_Damaged everywhere the game expects to find it. Even in Max.
Finally you'll probably have to tweak the center of mass a bit (in the properties of data_chassis) to get the car a bit higher from the ground.

Almost there! :beer:
You do not have the required permissions to view the files attached to this post.
Image / carmageddon add-ons at road reaction
User avatar
Mastro 666
motorised death
Posts: 891
Joined: Thu Jan 26, 2006 6:24 pm

Re: TDR addon car problem

Post by Mastro 666 »

Thanks Tosh! :beer:

Image

I have a lot to learn. :cool:
User avatar
Toshiba-3
アルカリ (単3形)
Posts: 5226
Joined: Sun Jun 08, 2003 12:14 am
Location: Bleak City

Re: TDR addon car problem

Post by Toshiba-3 »

:rockon:

You mastered the most annoying part.
Image / carmageddon add-ons at road reaction
User avatar
Mastro 666
motorised death
Posts: 891
Joined: Thu Jan 26, 2006 6:24 pm

Re: TDR addon car problem

Post by Mastro 666 »

Bored and need something to watch?