Thread: Original .DAT color names?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Original .DAT color names? 
    Registered Member
    Join Date
    Oct 2015
    Posts
    46
    Thanks given
    10
    Thanks received
    0
    Rep Power
    11
    Hello, I was trying to recolor a custom item from the config in my client.
    As an example :

    Code:
    itemDef.modified_model_colors = new int[] { 0, 103, 66, 78, 86, 38333, 127, 107, 115, 90 }; itemDef.original_model_colors = new int[] { 1023, 23, 60, 48, 40, 920, 12, 0, 0, 0 };

    However I noticed that the Metasequoia program or the DatMaker program renames the colors to "mat####"

    Therefore, If I make a custom model, and I want to reuse it multiple times and recolor it from the config I don't know what to call each material.

    Does anyone here know? In the config, the colors are often referred to as just the numbers but it didn't work.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2011
    Posts
    922
    Thanks given
    196
    Thanks received
    169
    Rep Power
    189
    The name of the material seems to be the RS2 color code for the color.

    You could try this:
    Get the RGB values for every material and convert them to RS2 color codes using this:

    [Only registered and activated users can see links. ]

    Example: (255, 255, 0) using the tool.


    Then just rename your material using the gathered color code.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Oct 2015
    Posts
    46
    Thanks given
    10
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Blaketon View Post
    The name of the material seems to be the RS2 color code for the color.

    You could try this:
    Get the RGB values for every material and convert them to RS2 color codes using this:

    [Only registered and activated users can see links. ]

    Example: (255, 255, 0) using the tool.


    Then just rename your material using the gathered color code.
    There's an issue, however.
    As an example the fire cape use the material 127 to animate.
    If I export it as a MQOV2 or MQO from datmaker, then without doing any modification, I save it on Mtsq, and turn it into a .DAT file again. The material seems to have lost the name the engine would recognize, and the texture is just white.
    However, just turning .DAT into .DAT into datmaker, saves the information properly. What do I need to do then? rename mat127 to 127 on Mtsq and make sure the RGB is 255, 255, 255? (which from the python script you shared, is the right RGB for 127)

    Thanks for replying btw.
    Reply With Quote  
     

  5. #4  
    Donator


    Join Date
    Jul 2011
    Posts
    922
    Thanks given
    196
    Thanks received
    169
    Rep Power
    189
    You can't add textures using metaseq.
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Oct 2015
    Posts
    46
    Thanks given
    10
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Blaketon View Post
    You can't add textures using metaseq.
    I meant material there, my bad, I am not trying to texture using mtsq, I am trying to get a material, recognized by the engine to then give it a texture like how a lava cape is made. it's just that once I save through metasequoia, the material name isn't recognised anymore, so either trying to recolor exemple "527" to "127" wouldn't work. as 527 isn't recognized, I was wondering do I name the material in metasequoia "527" and I make sure that it's got the right RGB linked to it?
    Reply With Quote  
     

  7. #6  
    Contributor
    Kris's Avatar
    Join Date
    Jun 2016
    Age
    23
    Posts
    3,536
    Thanks given
    703
    Thanks received
    2,322
    Discord
    View profile
    Rep Power
    5000
    The name of the material is ignored by datmaker. It will use its own methods to convert the actual rgb colour you provide for the material and convert it to RS2, although its colour-conversion is off and with each conversion you do, your colours change slightly. It just labels them with mat##### when you turn from dat to mqo as that helps with identifying what each colour corresponds to in the RS format.
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Registered Member
    Join Date
    Aug 2013
    Posts
    92
    Thanks given
    28
    Thanks received
    43
    Discord
    View profile
    Rep Power
    50
    Yea so after you change a color in mqo and convert it to a dat you need to convert it back to a mqo to find the new material id.
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Oct 2015
    Posts
    46
    Thanks given
    10
    Thanks received
    0
    Rep Power
    11
    omg that helps a lot actually gonna try that!
    Thanks Kris and Rogers

    EDIT : It did work! 127 is now 126 and 7 is now 8, which explains why I couldn't edit materials manually without mtsq, and why the fire cape animation broke.
    Reply With Quote  
     

  12. #9  
    Registered Member
    Tamatea's Avatar
    Join Date
    Aug 2010
    Posts
    1,283
    Thanks given
    379
    Thanks received
    334
    Rep Power
    2318
    Quote Originally Posted by Kris View Post
    The name of the material is ignored by datmaker. It will use its own methods to convert the actual rgb colour you provide for the material and convert it to RS2, although its colour-conversion is off and with each conversion you do, your colours change slightly. It just labels them with mat##### when you turn from dat to mqo as that helps with identifying what each colour corresponds to in the RS format.
    Incorrect, it does use the names of the materials for the masterpalette.

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  13. #10  
    Contributor
    Kris's Avatar
    Join Date
    Jun 2016
    Age
    23
    Posts
    3,536
    Thanks given
    703
    Thanks received
    2,322
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Tamatea View Post
    Incorrect, it does use the names of the materials for the masterpalette.
    Missed the point in what I said, should've clarified a bit I suppose. The "master palette" as it's called is only used to transfer other layers such as animated groups of faces. What I said is 100% valid for the actual model materials - which don't use the said master palette.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How would i find the original model colors?
    By laakerules in forum Help
    Replies: 1
    Last Post: 03-18-2014, 01:24 AM
  2. Vb 4 (Colored Names)
    By Boxxy in forum Application Development
    Replies: 4
    Last Post: 07-25-2011, 01:53 PM
  3. [PI] Original/Modified colors
    By Krigeris in forum Help
    Replies: 1
    Last Post: 08-16-2010, 01:40 PM
  4. Colored names instead of crowns for ranks
    By jordan641 in forum Requests
    Replies: 3
    Last Post: 04-11-2010, 08:58 PM
  5. Most Original Creative Inivatied name!
    By I.Say.Chris in forum Media
    Replies: 17
    Last Post: 06-29-2008, 11:56 PM
Tags for this Thread

View Tag Cloud

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