Jump to content

Recommended Posts

Posted (edited)

I wanna try to change my fly's skin. So i try to do with 3 steps:

 

 

1, made a new skins file "Tu-160.skins"

 

models

{

lod = {"Tu-160", 1000000};

collision = "Tu-160-COLLISION";

}

 

argument

{

argument = 70;

 

skin

{

value = 0.0;

material = {"Body", "standart", "Tu-160.BMP"};

 

}

 

skin

{

value = 0.1;

material = {"Body", "standart", "Tu-160-1.BMP"};

}

 

}

 

2,add some codes in Scripts\Database\db_countries.lua:

 

cnt_unit("{12F005C2-F9F1-4BD7-ADA0-AF169A7D8D78}", "Tu-160", {

color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D1D}", "AF Standart"),

color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D2D}", "AF Standart 2"),

}),

 

3,add some codes inScripts\Database\planes\Tu-160.lua:

 

ColorSchemes = {

color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D1D}", _("AF Standart"), 0),

color_scheme("{FC853FD4-F2FE-4328-9498-7CE054338D2D}", _("AF Standart 2"), 1),

},

 

then , I can select "AF Standart"or "AF Standart 2" in game.

but the skin didn't change,whatever i choose ,

my plane just show the "Tu-160.bmp".

 

PS:how should i understand the "Tu-160-COLLISION"

:helpsmilie:

Edited by peterlee
Posted

The Tu-160 is a old 3D model it is a Tu-1060.CMD file in the /Shapes folder.

 

With CMD files you are limited to the original number of skins, that mean 1 for this plane.

The .skins files don't work with a CMD file, the names and number of skins are integrated in the CMD.

You need a new 3d model in LOM format to add new skins.

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

Posted (edited)

/Temptextures is OK, now your problem could be due to several things.

 

Make a test : invert the name of the BMP files and look what you have in game. If you see se second skin at place of the first, your BMP is correct. If not you have a problem with your BMP Size (1024x1024, 2048x2048 etc) or 24 bit.

 

Verify your .skins file and be sure there is no coma, space in the name of the skins.

 

Are you sure that the CLSID are OK ? They are almost the same !

 

Are you sure that you see your new 3D model in game ? Has the LOM file exactly the same name as the CMD ?

Edited by Michelange

EVAC : French fighter school on LockOn: Flaming Cliffs

 

Moding tutorials at C6

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...