tm creative xfire grouptm creative xfire group
english francais deutsch nederlands 
newstutorialsspecialsforumsupportshoplinkscontactsearch
Mania Creative | Tutorial | Custom Cars
welcome

Custom User Cars

go to tutorial list
Author : TStarGermany  
Translations : -DexM-   eng fra ger ita ned por
Questions & Discussion : Discussion thread Last updated : August 25 2010

 

 

Introduction

 

Surely you've seen cars drive around on a server which were not made by Nadeo.

 

You can see DTM race cars, classic sports cars or even absurd objects like wheel chairs, UFOs or ladybugs on wheels... all these non-Nadeo vehicles are "custom cars"...

 

If you feel your individuality is screaming for a custom car, go on reading.

 

3 facts about "Custom Cars"

 

A "Custom Car" is a .zip archive, potentially containing a 3D geometry model of the vehicle, several skin textures and some sounds. If Trackmania finds custom data about a car's element in the .zip archive, it will use this particular custom data instead of Nadeo's default data.

Driving physics are fixated within the game engine and not influenced by these files...

For transfering your custom car to other people, Locators can be used.

 

Foreword: Using custom cars online

 

P2P upload/download must be enabled ( TM launcher / Configure / Advanced / PeertoPeer), no matter if you want to transfer your car zips directly or if you use locators.

Of course your firewall/router must also allow the transfer to the outside.

 

In Trackmania Forever you need an upgraded account (Trackmania United) for making your locally used custom cars visible to other players in the global network.

 

 

Section 1: How Trackmania assembles cars

 

First you need to get a rough idea, how your car is actually assembled by your Trackmania Game.

 

You might think, the car you use is just 1 big file, but that's not correct... A car is assembled from many differenct pieces of data...

 

Usually your Trackmania catches the different data files from different folders of the game installation on-the-fly while you play the game.

car model assemblance

click to zoom

 

 

Section 2: A custom car zip archive

 

Instead of letting Trackmania collect all the data from different locations, you can put all the important files into 1 zip archive and chose it as "your car" in the player's profile menu.

 

A fully loaded zip archive with (almost) all necessary data for a car would look like this (right picture)... containing lots of media files for all sorts of things related to your car.

 

The file size of this zip archive would cause you some serious trouble.

 

Even with using locators for your zip archive, transferring this huge amount of data to 20 or 30 players on an online server wouldn't work within a reasonable amount of time.

 

But Trackmania isn't stupid. Trackmania will first try to use all files in the zip archive to assemble a car, and then afterwards try to collect all other necessary files from its own data folders.

zip archive

 

Conclusion

 

That means, that you only have to insert files into the zip archive, which are different from the default/original files in Trackmania's own resource folders. This will save you lots of time working on the zip, and will keep it nice and small...

 

 

Section 3: 3D car models

 

A 3D car model is a complex geometrical object, made in a 3D drawing program and then converted to Nadeo's own file container format, GBX. Often enough it's not a real car, but some really odd vehicle, like a wheelchair, a ladybug on wheels or whatever.. people get the wildest ideas about the vehicles they want to drive :-)

 

We'll work with a replika 3D model of the Stadium Car instead to show our case...

 

Mainbody.Solid.Gbx and MainbodyHigh.Solid.Gbx

represent the 3D car model in a custom car zip archive.

 

Both show the same vehicle, just with less/more geometrical details. Trackmania will use one of the files, depending on the user's graphic settings.

mainbody.solid.gbx

Does it make sense to add THIS car model files to the zip ?

A good question. After all, Trackmania already has this car model integrated in its own installation folders.

 

In Trackmania it could make sense, but only, if you'd intend to use this 3D model outside of its "natural" environment (Stadium).

 

Example 1

 

If you wanted to use this 3D model in the Snow environment, you'd have to insert the 2 Gbx files into the zip (along with necessary textures), and place the zip archive here:

..\My documents\TrackMania\Skins\Vehicles\SnowCar\

 

Reason: If Trackmania United would find a custom car .zip file without the 2 Gbx files in this directory, it would naturally add the Snow car 3D model while assembling the car.

 

Example 2

If you wanted to use this 3D model for all environments, you'd have to insert the 2 Gbx files into the zip (along with necessary textures), and place the zip archive here:

..\My documents\TrackMania\Skins\Vehicles\Carcommon\

 

Reason: If Trackmania United would find a custom car zip file without the 2 Gbx files in this directory, it wouldn't know what model it should add, because the "Carcommon" stands for "All environments"...

 

However, as soon as the 3D model is not a standard car model (which Trackmania could automatically add from its own data resources), the 2 Gbx files must always be put in the zip archive anyway.

 

 

How to build/import a custom 3D car model for Trackmania

 

I hoped you would never ask this ^^

 

Of course it's possible to produce a totally custom 3D object in your favourite 3D construction program and import them to your Trackmania Game.

 

But this matter is really complicated and requires some extensive knowledge about 3D modelling. If you're really hot about this topic, you can start reading yourself into the matter here:

 

Trick's tutorial (English) *UPDATE*

Trackmania Carpark Tutorial (French)

Deepsilver Forum (German)

Taolung's tutorial (German)

TM-Community (English)

Maybe we can offer you some comprehensive tutorial one day here on this site...

 

 

Section 4 : 2D skins (textures)

 

A 2D skin is a .dds texture graphic, applied to the surface of the car model. We will use the Stadium car to work on... of course our lessons will work for all other enviroments as well...

 

For your understanding

The instructions, which texture + how a texture will be used to illustrate the car, is stored WITHIN the 3D model. The names of the textures are always the same (given by Nadeo), but every single 3D model decides if/how it wants to use them or not...

Let's take a look at our fully loaded zip archive again.

 

All the .DDS files are 2D Skin textures, applied to the car model in one or the other way...

 

A detailed explanation of the different textures' functions follows below.

 

And again:

Adding one of these textures to your custom car zip only makes sense if your texture is different from the one Trackmania would automatically add from its own resources, while assembling your car.

diffuse.dds

 

The most simple custom car zip file

Most people are completely satisfied with putting 2 customised texture graphics into their zip archive: Icon.dds and Diffuse.dds:

These 2 texture graphics, alone in a .zip archive are already a nifty and simple way to individualise your car's appearance. And besides that, the zip file is still pretty small and can be quickly transfered to other online players.

simple car archive

Icon.dds (TMN + TMU)

This little graphic file will be displayed in your user profile, showing a thumbnail preview of your car... It has nothing to do with how your car is assembled.

The format of this file is always the same, no matter what 3D model or 2D skins you use in your archive.

 

Size: 128 x 128 pixels

DDS Format: DXT1 compression, simple alpha channel.

diffuse.dds

Diffuse.dds (TMN + TMU)

This is the surface picture, which will be layed upon the 3D default car model. (Our example shows the Blue color skin for the United Stadium Car).

 

Size: anywhere from 512x512 to 2048x2048,depending on your quality wishes.

DDS Format: DXT5 compression (alpha channel sets "shinyness" of parts)

diffuse.dds

At first this looks a bit irritating. Different parts of this picture will be layed upon different parts of the car model.

 

Now you get a rough idea of where parts of the diffuse.dds are applied on the car.

diffuse.dds applied

 

 

Additional 2D Skin texture files

 

But of course you can blow up the size of your custom car zip archive by including several more textures to individualise the car's looks.

 

DiffuseDirty.dds (TMU only)

 

Same layout as the Diffuse.dds, but this texture shows how the car's surface will look when getting dirty from the mud sections in the TMU Stadium environment.

 

Size: same as "Diffuse.dds".

DDS Format: same as "Diffuse.dds".

diffusedirty.dds

Details.dds (TMN + TMU)

This texture contains nice details, such as steering wheel, driver's suit, rims and tires etc.

 

In TMN, the standard 3D car model won't use the Details.dds in the zip archive, but load it from a fixed data folder within the TMN installation directory.

 

However, if a custom 3D car model is in the zip file, this texture can be included in the zip file as well.

 

Size: 1024x1024

DDS Format: DXT5 compression (alpha channel sets "shinyness" of parts)

diffusedirty.dds

DetailsDirty.dds (TMU only)

 

The name pretty muchs says it all, it's the same as with the the DiffuseDirty.dds.

 

Size: same as "Details.dds".

DDS Format: same as "Details.dds".

diffusedirty.dds

Illum.dds (TMU only)

This texture is a "copy" of the Details.dds texture, but with 1 difference:

Only the objects which shall be illuminated are still in the picture ! Everything else is black..

 

Size: same as "Details.dds".

DDS Format: same as "Details.dds".

 

Note: Sometimes it's necessary to insert an "Illum.dds" into the zip archive, even if it's only pure black, to avoid illumination bugs.

diffusedirty.dds

Projshad.dds (TMN + TMU)

 

This file is responsible for the shadow that is put on the floor.

Size: 512x512 - 1024x1024

DDS Format: DXT1c / no alpha

 

We have an extra tutorial for creating custom shadows such as "Underbody Neon"...

diffusedirty.dds

 

 

Skins for custom made 3D models

 

I already told you that the 3D model contains instructions on how/if these textures above are used.

 

Don't be surprised if a "Diffuse.dds" for a custom 3d model looks totally different compared to the one shown above. It's in the 3D model author's freedom to map the texture file onto the car model the way he wants it to...

 

And sometimes authors of 3D models forget to implement the useage of certain textures (like e.g. Projshad.dds). That's a pity, but you can't change it...

 

 

How to paint your own 2D Skin textures

 

If you feel like adventuring, you can start painting your textures now (You could also use Trackmania's internal painting tool, which might be useful for beginners).

 

Nevertheless, the Paint a custom car skin tutorial will teach you how to do it manually.

 

 

Section 5: Sounds

 

You've got the possibility to add a horn sound and lots of engine sounds to your custom car zip archive as well.

 

Please note, that you can't put sounds alone in a car zip, at least an Icon.dds and Diffuse.dds must be in it as well, otherwise you might encounter instability issues...

 

Engine sounds

 

The engine sounds should be saved in this format:

Codec: .ogg compression

Channels: 2 (Stereo)

Usually these files are created in a way that you can't hear any transition when they loop.

EngineIdle.ogg Sound when your car is standing
EngineLow.ogg Sound when your car is in 1st gear
EngineMid.ogg Sound when your car is in 2nd + 3rd gear
EngineFast.ogg Sound comes in when your car is heading towards high speed
EngineRev.ogg Sound when your car accellerates in reverse gear
EngineRev2.ogg Sound when your car drives in reverse gear pretty fast

Trackmania has a special feature while playing sounds in "water near" sections of Stadium, Bay, Coast and Island...

 

Trackmania will play only the right channel of the Engine sounds to create a special "wet" soundstage. The right channel sound should be therefor dampened a lot (if you create custom ones)...

 

Horn sound

 

The horn sound should be saved in this format:

Codec: .wav (windows pcm file)

Channels: 1 (Mono)

 

Horn.wav Honk a lot to irritate other people ^^

 

 

Section 6: Where to put your custom car zip file ?

 

Trackmania (zip files including 3D car model)

 

C:\...\My documents\TrackMania\Skins\Vehicles\Carcommon\

 

Trackmania (zip files excluding 3D model, only including 2D skins)

 

C:\...\My documents\TrackMania\Skins\Vehicles\[Environment]\

In our example [Environment] would be "StadiumCar", but this always depends on what standard car model the custom textures were made for.

Attention!

Using locators on car zip files is a bit special !

If you decide to use locators for transfering your car zip to other people, you should still have the zip file in the directory, TOGETHER with the .loc file.

 

Additionally, you should set the properties of both files to "read only"/write protected, otherwise a little bug in Trackmania could destroy your files !!!

 

 

Section 7: Original texture & sound resources

 

Surely you can use the original textures and sounds as a basis for creating new things...Be aware that the filenames and formats of these originals are often very different from the filenames they must have in the .zip archive !!!

 

Sound resources

 

[Game Install folder]\GameData\Vehicles\Media\Audio\Sound\WavData\

 

In this directory there are many many sounds of the different environments mixed together... e.g. you have 6 different horn sounds, BayCarHorn.wav, CoastCarHorn.wav, RallyCarHorn.wav, SnowCarHorn.wav, SpeedCarHorn.wav and SportCarHorn.wav.

 

The Stadium car uses lots of sounds from other cars, such as "BayCarHorn.wav" or "SportCarEngine...wav" sounds.

 

So watch out that you catch the right one, rename it properly (and convert it to ogg if necessary), if you want to put it in your zip file...

 

TMU Texture resources

 

The different colour skin zips for all environments (incl. Diffuse.dds and Icon.dds) are in

 

[Game Install]\GameData\Skins\Vehicles\[Environment]\

Textures like Shadow, Details and Illumination for all enviroments can be found here:

[Game Install]\GameData\Vehicles\Media\Texture\Image\

 

The Default shadow texture is

[Game Install]\GameData\Vehicles\Media\Texture\Image\StadiumCarShadowProj.dds

It must be renamed to "ProjShad.dds" when beeing inserted into the zip file.

english

MANIA CREATIVE offers online games, electronic computer hardware and of course internet programming services, like for example free music (HiFi luxury) for mobile phones or graphics software. 2D/3D texture models and buying dvds and bluray are supported,too.

francais

MANIA CREATIVE offre créatrice de jeux en ligne, du matériel informatique électronique et de services Internet du cours de programmation, comme par exemple la musique libre (deluxe HiFi) pour les téléphones mobiles ou de logiciels graphiques. 2D/3D texture de modélisation et d'acheter des DVD et BluRay sont aussi supportées.

nederlands

MANIA CREATIVE biedt online spelletjes, elektronische computer hardware en natuurlijk Internet programmeren diensten, zoals bijvoorbeeld gratis muziek (hifi luxe) voor mobiele telefoons of grafische software. 2D/3D textuur modellering en het kopen van DVD's en BluRay worden ondersteund, ook.

deutsch

MANIA CREATIVE bietet Online-Spiele, elektronische Computer-Hardware und natürlich Internet-Programmierung Dienstleistungen, wie zum Beispiel freie Musik (HiFi Luxus) für Mobiltelefone oder Grafiksoftware. 2D/3D Textur Modelle und Kauf-DVDs und Blu-Ray werden auch unterstützt.

italiano

TM offre una creativa giochi online, hardware elettronico e di servizi internet corso di programmazione, come ad esempio la musica gratis (di lusso HiFi) per i telefoni cellulari o software di grafica. Texture 2D/3D modellizzazione e di acquistare DVD e BluRay sono supportati, anche.

türkce

tm yaratici sunan online oyunlar, elektronik bilgisayar donanim ve ders internet programlama hizmetleri, ücretsiz müzik cep telefonu veya grafik yazilimi (HiFi lüks) örnegin gibi. 2D/3D doku modelleme ve DVD satin alma ve bluray de desteklenmektedir.
user panel
Name
Pass
Register | Forgot pass? | Activation mail
user panel
united base players
user panel
pop rock soul
hiphop jazz lounge
house electro drum and bass
reggae punk alternative
experimental instrumental ambient
click to play random song of a genre