Jump to content

Modding help


JeKnYan

Recommended Posts

Posted

if you want it to work in MP, you'll need to change all the .sii files in the def/cargo folder to use one trailer, then go to def/vehcle/trailer and edit the .sii for the trailer you chose earlier. the game crashing is likely due to incorrect formatting / syntax in the standalone .sii

Posted

I downloaded it and took a look. I tried just loading it in to check it was not your gamesave and it crashed (as you said, no errors). I Then extracted the .scs and deleted all of the new definition files, and made some place-holder ones out of the default 'box' trailer. this time when loading I got an error to save saying "unknown variant 'default' or trailer.pmd". so I removed the "variant" line from the chassis.sii and then it went back to getting no errors. The error seems to be related to the model rather than any of the .sii files. One thing I did notice that was causing issues was the wheel definitions you where using, which missed the line "front_wheel: false" meaning that you were essentially putting front wheels in rear slots. Also the mod seems to be based around the "Hawks" repaint, which can be applied in-game (NOT MP) easily by simply naming the .dds the same as a default paint and putting it in the same folder as that default paint, the game will change the texture out.

 

 

Posted

I've gone back and fixed everything up, changed the text to point to the default models, no errors I've found in the syntax, but it's having this problem.

 

00:00:26.707 : <ERROR> [model] Unknown variant named '' in model '/vehicle/trailer/box_long/trailer.pmc'.

 

While there's no variant ''
 

Here's the trailer def

 

SiiNunit
{
accessory_chassis_data : hawktra.trailer.chassis
{
    model: "/vehicle/trailer/box_long/trailer.pmd"
    lods[]: "/vehicle/trailer/box_long/lod_01.pmd"
    collision: "/vehicle/trailer/box_long/trailer.pmc"

 

    residual_travel[]: 0.12     # 1st axle
    residual_travel[]: 0.12     # 2nd axle


    trailer_mass: 6500    # 14300lb

 

    extended_shadow_texture: "/vehicle/trailer/box_long/shadow.tobj"
    extended_shadow_intensity: 1.45
    extended_shadow_fadeout_start: 10
    extended_shadow_fadeout_length: 0
    
    ui_shadow: "/vehicle/trailer/box_long/ui_shadow.pmd"

 

}
}

 

76561198206943368.png  If my post helped, don't hesitate to click that green up arrow! ^_^

Posted

^the default box_long expects these lines:

 

variant: box

looks[]: plain

looks[]: wallbert

looks[]: charged

looks[]: sellgoods

looks[]: sunshine

looks[]: print

looks[]: darchelle

looks[]: bushnell

 

Minimum is the "variant" line, the rest is seemingly optional

 

in order to work. if you just want the repaint (which wont work in MP btw) just d as I said with the texture file, no need to edit sii's

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.