Results 1 to 8 of 8

Thread: Importing new models - Faction Colours

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Importing new models - Faction Colours

    Hey all. I've made a bunch of armour models and imported them into the game successfully, but I'm having trouble figuring out how to get the faction colours/masks to work. They display just fine in 3ds max, and I am able to change the three colours as intended.

    Click image for larger version. 

Name:	rtwvariantcolours1.jpg 
Views:	47 
Size:	168.3 KB 
ID:	308785

    However when viewed ingame or in Tweak, the colours do not display.

    Click image for larger version. 

Name:	rtwvariantcolours2.jpg 
Views:	48 
Size:	128.8 KB 
ID:	308786

    I've looked around and every time a question is asked regarding faction colours the usual answer is you have to edit the factions_uniforms_colors table, problem is I have no idea what needs to be edited.

    Any help would be great, this is the only hurdle in my way now.

  2. #2

    Default Re: Importing new models - Faction Colours

    Oh and I am intending to use the models to reskin existing units, not create new ones if that helps.

  3. #3
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: Importing new models - Faction Colours

    the faction colours are assigned based on the decal mask which determines which areas the faction colours will be assigned to.

    In addition to that, you will probably want to create a vmd with masks to vary the faction colours (see tutorial series link in my signature for masks/vmd tutorial)

  4. #4

    Default Re: Importing new models - Faction Colours

    See that's the thing that's stumped me. I did watch your video and have the mask set up as you show, I have the mask saved as 300_atheniancloak_mask.dds (other textures are saved as 300_atheniancloak_diffuse/normal etc) in the same folder as the rest of the textures, and before exporting the Cs2 from 3ds max I had the mask slotted in the mask1, mask2 and mask3 slots in the material editor (even tried the decal mask slot as you suggested), but I just get the same result. The other textures work just fine both in Tweak and ingame, it's only the mask that doesn't work.

  5. #5

    Default Re: Importing new models - Faction Colours

    Okay I was able to replicate the problem with the shield included in the sample models. I compiled the included Cs2 using BoB, colours worked fine. I then exported the shield .max file as a Cs2 and compiled it, colours worked then as well. That rules out a Max Cs2 exporter issue. I then renamed the Cs2 to a different name and compiled, colours did not work.

    So the problem is definitely that the new models need to be referenced in a db table somewhere. Though I've searched through factions_uniforms_colors and units_variants_colors but can't seem to find anything that looks like a place to reference new meshes.

  6. #6
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: Importing new models - Faction Colours

    i think it may be a shader issue perhaps? warman made a thread somewhere about allowing decals with all models and maybe the same thing is required?

  7. #7

    Default Re: Importing new models - Faction Colours

    Aha, that's just the info I needed. I can stop tearing my hair out in frustration now.

    Click image for larger version. 

Name:	rtwvariantcolours4.jpg 
Views:	17 
Size:	118.0 KB 
ID:	308837

    For anyone who might find this thread with the same problem, what I did was under the "Custom Attributes" rollout in the material editor, I simply changed "weighted_skin" to "weighted_decal", exported, compiled with BoB and bam! Faction colours.

    Click image for larger version. 

Name:	rtwvariantcolours3.jpg 
Views:	9 
Size:	142.5 KB 
ID:	308836

    Thanks for the help Magnar, and thanks to Warman for this thread - http://www.twcenter.net/forums/showt...ent&highlight=

  8. #8

    Default Re: Importing new models - Faction Colours

    Correction, make sure it's "weighted", not "weighted_decal". Otherwise the decal of whatever shield the unit is using will appear all over the new model.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •