VaultNetwork.net Vault Network Boards
Author Topic: a question about dcs [Locked]
Allana_the_Bringer
Title: Alassea Tinúviel
Posts: 14
Registered: 2003-2-13 18:58:26
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.
jaclin_ff  1 star
Posts: 87
Registered: 2003-4-7 13:58:03
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
NK_Wizarium
Posts: 33
Registered: 2008-10-28 20:26:59
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


Quote:

{

// 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.
jaclin_ff  1 star
Posts: 87
Registered: 2003-4-7 13:58:03
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

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.