Forum Mod Bakery Docs

Losing my mind over a crashing .p3d

Posted in Support
Please sign in to reply to this topic.
I've been working on adding proper doors to some of the AI chase vehicles (Black Ferrini, Milk Truck, etc.) and the Milk Truck especially has been extremely stubborn because my modified .p3d absolutely refuses to load in game. I have triple checked the .p3d several times and I cannot find anything immediately wrong with it, yet no matter what I do the game crashes every time when I select it from the phone booth. It's the same error every time too, from what I can tell from each log (using the Consoles and Logging hack):
[2025-06-26 15-44-12.361] Exception 0xC0000005 (access violation) at Simpsons.exe+0xF08E6 (0x4F08E6) reading 0x6.
I have tried deleting, rearranging, renaming, and even remaking the .p3d over a different vehicle, as well as trying to give it a separate filename, index, and vehicle ID. None of which have worked. I am completely stumped by this.

Here is the p3d, log, and crash dump, for anyone who can view it.
Crash dump (.dmp) information can be viewed using the Crash Analyzer.
Below is the information from your crash dump.

(Click to view.)
ExceptionAddress: 004f08e6 (Simpsons!Vehicle::AddFlappingJoint+0x00000176)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000000
   Parameter[1]: 00000006
Attempt to read from address 00000006
eax=00000000 ebx=00000016 ecx=14cb1310 edx=148b4f70 esi=0000000a edi=14cc0b10
eip=004f08e6 esp=0019fc3c ebp=00000000 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00210202
Simpsons!Vehicle::AddFlappingJoint+0x176:
004f08e6 6683780600      cmp     word ptr [eax+6],0       ds:002b:00000006=????

  *** Stack trace for last set context - .thread/.cxr resets it
ChildEBP RetAddr  
00000000 00000000 Simpsons!Vehicle::AddFlappingJoint+0x176

  *** Stack trace for last set context - .thread/.cxr resets it
00000000  ????????
00000004  ????????
00000008  ????????
0000000c  ????????
00000010  ????????
00000014  ????????
00000018  ????????
0000001c  ????????
00000020  ????????
00000024  ????????
00000028  ????????
0000002c  ????????
00000030  ????????
00000034  ????????
00000038  ????????
0000003c  ????????
00000040  ????????
00000044  ????????
00000048  ????????
0000004c  ????????
00000050  ????????
00000054  ????????
00000058  ????????
0000005c  ????????
00000060  ????????
00000064  ????????
00000068  ????????
0000006c  ????????
00000070  ????????
00000074  ????????
00000078  ????????
0000007c  ????????
00000080  ????????
00000084  ????????
00000088  ????????
0000008c  ????????
00000090  ????????
00000094  ????????
00000098  ????????
0000009c  ????????
000000a0  ????????
000000a4  ????????
000000a8  ????????
000000ac  ????????
000000b0  ????????
000000b4  ????????
000000b8  ????????
000000bc  ????????
000000c0  ????????
000000c4  ????????
000000c8  ????????
000000cc  ????????
000000d0  ????????
000000d4  ????????
000000d8  ????????
000000dc  ????????
000000e0  ????????
000000e4  ????????
000000e8  ????????
000000ec  ????????
000000f0  ????????
000000f4  ????????
000000f8  ????????
000000fc  ????????
00000100  ????????
00000104  ????????
00000108  ????????
0000010c  ????????
00000110  ????????
00000114  ????????
00000118  ????????
0000011c  ????????
00000120  ????????
00000124  ????????
00000128  ????????
0000012c  ????????
00000130  ????????
00000134  ????????
00000138  ????????
0000013c  ????????
00000140  ????????
00000144  ????????
00000148  ????????
0000014c  ????????
00000150  ????????
00000154  ????????
00000158  ????????
0000015c  ????????
00000160  ????????
00000164  ????????
00000168  ????????
0000016c  ????????
00000170  ????????
00000174  ????????
00000178  ????????
0000017c  ????????
00000180  ????????
00000184  ????????
00000188  ????????
0000018c  ????????
00000190  ????????
00000194  ????????
00000198  ????????
0000019c  ????????
000001a0  ????????
000001a4  ????????
000001a8  ????????
000001ac  ????????
000001b0  ????????
000001b4  ????????
000001b8  ????????
000001bc  ????????
000001c0  ????????
000001c4  ????????
000001c8  ????????
000001cc  ????????
000001d0  ????????
000001d4  ????????
000001d8  ????????
000001dc  ????????
000001e0  ????????
000001e4  ????????
000001e8  ????????
000001ec  ????????
000001f0  ????????
000001f4  ????????
000001f8  ????????
000001fc  ????????
00000200  ????????
00000204  ????????
00000208  ????????
0000020c  ????????
00000210  ????????
00000214  ????????
00000218  ????????
0000021c  ????????
00000220  ????????
00000224  ????????
00000228  ????????
0000022c  ????????
00000230  ????????
00000234  ????????
00000238  ????????
0000023c  ????????
00000240  ????????
00000244  ????????
00000248  ????????
0000024c  ????????
00000250  ????????
00000254  ????????
00000258  ????????
0000025c  ????????
00000260  ????????
00000264  ????????
00000268  ????????
0000026c  ????????
00000270  ????????
00000274  ????????
00000278  ????????
0000027c  ????????
00000280  ????????
00000284  ????????
00000288  ????????
0000028c  ????????
00000290  ????????
00000294  ????????
00000298  ????????
0000029c  ????????
000002a0  ????????
000002a4  ????????
000002a8  ????????
000002ac  ????????
000002b0  ????????
000002b4  ????????
000002b8  ????????
000002bc  ????????
000002c0  ????????
000002c4  ????????
000002c8  ????????
000002cc  ????????
000002d0  ????????
000002d4  ????????
000002d8  ????????
000002dc  ????????
000002e0  ????????
000002e4  ????????
000002e8  ????????
000002ec  ????????
000002f0  ????????
000002f4  ????????
000002f8  ????????
000002fc  ????????
00000300  ????????
00000304  ????????
00000308  ????????
0000030c  ????????
00000310  ????????
00000314  ????????
00000318  ????????
0000031c  ????????
00000320  ????????
00000324  ????????
00000328  ????????
0000032c  ????????
00000330  ????????
00000334  ????????
00000338  ????????
0000033c  ????????
00000340  ????????
00000344  ????????
00000348  ????????
0000034c  ????????
00000350  ????????
00000354  ????????
00000358  ????????
0000035c  ????????
00000360  ????????
00000364  ????????
00000368  ????????
0000036c  ????????
00000370  ????????
00000374  ????????
00000378  ????????
0000037c  ????????
00000380  ????????
00000384  ????????
00000388  ????????
0000038c  ????????
00000390  ????????
00000394  ????????
00000398  ????????
0000039c  ????????
000003a0  ????????
000003a4  ????????
000003a8  ????????
000003ac  ????????
000003b0  ????????
000003b4  ????????
000003b8  ????????
000003bc  ????????
000003c0  ????????
000003c4  ????????
000003c8  ????????
000003cc  ????????
000003d0  ????????
000003d4  ????????
000003d8  ????????
000003dc  ????????
000003e0  ????????
000003e4  ????????
000003e8  ????????
000003ec  ????????
000003f0  ????????
000003f4  ????????
000003f8  ????????
000003fc  ????????

Seems to be an issue with Vehicle::AddFlappingJoint - I'd have a look at the vehicle's skeleton in comparison to others. Aside from that, no suggestions, sorry.

Hi there, it seems that your cMilk.p3d file has Skeleton Joints for the flapping doors, but no Physics Joints and Collision Volumes.
Here is a fixed version of your file.

I suggest you check out the differences between the file I uploaded & yours to see the changes other files might need. If you wish a more in-depth explanation of this, let me know!