Trace File

I am trying to convert a Mod from GTL to GTR2. I am getting a CTD when loading a car in game. With a trace file I get;
vehgfx.cpp 2587: Entered VehGraphics::Init(GAMEDATA\TEAMS\TRANS AM\AAR CUDA TRANS AM\42\..\AARCUDA.CAS)
vehgfx.cpp 2631: Unable to read USERDATA\LOG\vehgen.scn: Error loading mesh file INT_DRIVER_STYLE2.GMT to memory
vehgfx.cpp 2684: Could not find instance "SLOT000"
Any ideas?
 
You surely miss a GMT or/and texture as for example a M-FPDRIVER2.GMT or a int_driver_style2.gmt
Do you have one in the mod or in the Gamedata/Teams folder ?
 
Last edited:
gmt is a mesh (3D) file usually contained in a .gtr file, but often is loose in the folder. The .cas file references these when "building" the car; at the top you should see something like:

SearchPath=<TEAMDIR>..\
SearchPath=<TEAMDIR>
SearchPath=<VEHDIR>

//----------------------------------------

MASFile=FERRARIF430_OBJ.GTR
MASFile=FERRARIF430_TEX.GTR
MASFile=FERRARIF430_WHEELS.GTR
MASFile=FERRARIF430_cpit.GTR
MASFile=TALENT_07ALMS.GTR
MASFile=stex.gtr

The SearchPath (usually the same for any mod) tells the game where to find the necessary files; the "masfile=" denotes which .gtr files contain the .gmt and .dds files for that mod (thus you can have different cars and different .gtr files in one mod, with each car having its own .cas file since the latter is called by the .car file). As long as the .gmt or .dds files are in the path they do not need to be in a .gtr file; and the game will read the loose files before those in the .gtr file, which makes editing much easier. If your loose .gmt file is in the folder with the .gtr files, and is properly named (so easy to screw up and/or overlook) it should be read by the game.

Your crash is caused by INT_DRIVER_STYLE2.GMT not being found, or corrupt. If this file is not in the folder with the .gtr files it should be in one of those files, probably OBJ or CPIT. You need GEditor to view those (it also allows to import, export, and delete files from the .gtr).

FWIW, the "slot000" error is a game glitch from a temp file (vehgen.scn) created when you load a track, exit, and return; restarting the game clears it.
 
In your case it is possible the mod is calling that file from a default GTL car or one of the generic .gtl files (as with stex.gtl, talent.gtl, and helmets.gtl), so you will have to copy the pertinent file from GTL to GTR2.
 
Last edited:
Also check the genstring (if used). I just spent an hour cursing at an error about not loading Driver Style 30 when no .cas in the mod called that; was a genstring difference between two mods.
 

What are you racing on?

  • Racing rig

    Votes: 528 35.2%
  • Motion rig

    Votes: 43 2.9%
  • Pull-out-rig

    Votes: 54 3.6%
  • Wheel stand

    Votes: 191 12.7%
  • My desktop

    Votes: 618 41.2%
  • Something else

    Votes: 66 4.4%
Back
Top