MOD DEV CRASH WITHOUT ERROR MESSAGE

DADE31EQDA

Registered
Hi everyone,
I’m currently building a Formula Student car mod for rFactor 2. I have set up my spinner.gen with all GMTs and paths, and the car shows perfectly fine in the showroom.

At first, because I didn’t have proper physics, the car would pitch up and slowly fly away when I clicked Race. After that, I completed the physics using the physics spreadsheet and imported the HDV and the rest of the physics files.

However, now I have a bigger problem:

When I click Race, the loading bar reaches 100%, and then the game instantly crashes to desktop with no error message.

This only happens after adding the physics files.

Here is the last part of my log before the crash:

122.60s setup.cpp 1096: Logging Vehicle: test_car #05
...
slot.cpp 2397: Error parsing upgrade SERIES: 1
slot.cpp 2397: Error parsing upgrade VISOR MOD: 1
...
vehgfx.cpp 6874: VehGraphics::RenameLiveryMaterials
(many “replacementName xxx_000 not found”)
...
123.81s ELSLog.cpp 182: Err: Failed
123.81s main.cpp 358: onFatalError 11

I don’t think the crash is caused by the livery material warnings, since many mods show these messages and still work. So I suspect the issue is somewhere in the physics loading stage, maybe:
Does anyone know how I can debug this?
Is there a way to enable more detailed physics loading logs, or any recommended tools to check HDV/PM/TGM consistency?

Any help would be greatly appreciated.
 
:)No,Unfortunately I didn’t have the backup files,Could you please tell me what can the +trace=2 +traceflush do?
Creates the log you already have. The traceflush makes sure everything is written to the file, not lost in the write buffer if the game crashes.
 
@DADE31EQDA In the trace File, in the Lines 33-48, you have Error Messages about missing (not found) tgm Files.
Check your Installation, if these Files exist in the shown Folder ..\MODDEV\VEHICLES\TEST_CAR and if that Folder is linked properly in the Gen Files of the Car.
Without tgm Files, crashes happen, if you try to load a Car.
 
@DADE31EQDA In the trace File, in the Lines 33-48, you have Error Messages about missing (not found) tgm Files.
Check your Installation, if these Files exist in the shown Folder ..\MODDEV\VEHICLES\TEST_CAR and if that Folder is linked properly in the Gen Files of the Car.
Without tgm Files, crashes happen, if you try to load a Car.


I copied the TGM files and renamed them,this problem might be solved,but here comes other problems.
I'm a beginner and I couldn't really know how to fix them
 

Attachments

A quick question, is your .gen, .hdv, .ini, .tgm, .tbc etc in a .mas file or loose in your \RFACTOR 2\MODDEV\VEHICLES\TEST_CAR\ folder? For Mod Dev, the files cannot be in a .mas file. The Maps, GMTs, Teams, Sounds can be, just not the physics files. This was always weird to me as it either didn't give an error or it was super generic.

I don't recall if that throws up the Fatal 11 error. I know I had that error recently, but I forgot the specifics on what caused it.
 
I copied the TGM files and renamed them,this problem might be solved,but here comes other problems.
I'm a beginner and I couldn't really know how to fix them
If you are stuck, contact me by a private Conversation and i'll help you to get it working in DevMode.
 
Back
Top