Author Topic: a question about dcs
Allana_the_Bringer 
Title: Alassea Tinúviel
Posts: 4,253
Registered: Feb 13, '03
Extended Info (if available)
Real Post Cnt: 4,234
User ID: 769,944
Subject: a question about dcs
TBH im not sure how much work im asking for...but is updating the colors so all the new ones are read possible? None of the new types of armor are read and with the 150 and 180 reqs im iso being able to tell what color something is on my mules. ty for your time.

sinny

 

-----signature-----
Retired.
Link to this post
jaclin_ff 
Posts: 828
Registered: Apr 7, '03
Extended Info (if available)
Real Post Cnt: 821
User ID: 788,356
Subject: a question about dcs
I have no idea but based on the response so far I would think the developer is not playing anymore. Maybe there is an xml or something int eh config dir?

 

-----signature-----
Jaclin
218 Tanking/Item only/Grenading Bunny Mastering Archer - The Dragon Moon Clan
http://www.guildportal.com/Guild.aspx?GuildID=24691&TabID=222938
Always a member of the Legion of Hope and the Watch
AC Wiki http://www.asheron.info
Link to this post
NK_Wizarium 
Posts: 99
Registered: Oct 28, '08
Extended Info (if available)
Real Post Cnt: 98
User ID: 1,334,038
Subject: a question about dcs
I've wanted to update this plugin for the new armor as well...

There -is- an XML file containing the color codes and names. The codes are in HEX. I decompiled the dcs.dll file and have access to the raw code, but I'm not a decal developer, so I'm not sure how it's pulling the item information. I have Imp Inventory, which outputs an awful lot of information on each item, but no color information. I was thinking that if Imp could give me the colors in either HEX or RGB, I could easily update the DCS XML file, but no go...

In the dll, there are a lot of calls to things like GetDecalColor() etc... here's a code snippet


{
// Fields
public ushort iPalette;
public string name;
public string rgbColor;

// Methods
public AC_COLOR(ushort iPalette, string rgbColor, string name);
public string GetDecalColor();
public string GetName();
}


So the question is... how is the XML 'swatch' file used? Is a value pulled out of Decal and then matched against the list? If so, by the HEX value or by name? It seems like Decal is providing one of the values, and the XML file is used as a reference to display the second value...? I'm thinking Decal provides the HEX and the reference is for a name to call that color, ie., VirindiBlue. If that's the case, where the heck or who the heck came up with the names?

If the color codes for newer armor are at least being seen by DCS, but there's no such HEX/name in the XML file, then you get the 'Unknown' displayed. It would then be a simple task to update the XML file with those values. If the new color codes are not being seen by DCS, then the plugin would frankly need a lot of work done to it...

Thinking Imp would give me color details was a fail, so we need a Decal guru to jump in here and tell us if we're barking up the right tree here... If DCS is seeing the information and someone could write a quick and dirty plug to pull raw color info, I'd be happy to update the 'swatch' file.

 

-----signature-----
(none)
Link to this post
jaclin_ff 
Posts: 828
Registered: Apr 7, '03
Extended Info (if available)
Real Post Cnt: 821
User ID: 788,356
Subject: a question about dcs
My best guess is that all you do need to do is add the new color hex values to the xml file. However, I am not sure how to get that value. I am thinking you would have to ID an item and see what the server is calling it?

 

-----signature-----
Jaclin
218 Tanking/Item only/Grenading Bunny Mastering Archer - The Dragon Moon Clan
http://www.guildportal.com/Guild.aspx?GuildID=24691&TabID=222938
Always a member of the Legion of Hope and the Watch
AC Wiki http://www.asheron.info
Link to this post

Valid XHTML 1.0 Transitional Powered by PHP