Voyage Online Today: 0    Total Posts: 2575

Total:#5

Create Thread

[Guides] 2015 - Writing on ingame chat using different colors - Guide

Close [Copy link] 4/4516

#1
Posted on 2015-09-16 17:09:50 | Show thread starter's posts only

You are not be able to reply to this thread because it is located in the Tutorial and Guides section.
Please post all of your comments and suggestions at:


Writing on ingame chat using different colors - Discussion Thread: http://forum.vc.igg.com/viewthread.php?tid=58762







  Writing on ingame chat using different colors - Guide





Basic information



This guide contains basic information about writing messages on ingame chat using different colors that are currently available in game version [0.118].




Table of Contents

1) Color space, Color code, Color table




Introduction

The aim of this guide is to explain how to write messages on ingame chat using different colors. This method is available since alpha version although no one really ever explained how  it works. This guide will try to briefly explain how the whole color system works. It gets a little technical at one point so it might be a little hard to understand for some people. This guide contains a table with a list of colors and their ingame codes ready to be copied. So if you're having hard time understanding basic concepts, feel free to skip to the table part at any time.








Signature

Navigator, tools, guides and much more!
Visit us at: http://thepiratescove.org
#2
Posted on 2015-09-16 18:47:11 | Show thread starter's posts only

Color space

Game is using ARGB color space which has 4 different channels, Alpha, Red, Green, Blue which is why it is called ARGB. Besides the regular red, green an blue channels, there is an additional alpha channel. The alpha channel is normally used as an opacity channel. If a pixel has a value of 0% in its alpha channel, it is fully transparent (and, thus, invisible), whereas a value of 100% in the alpha channel gives a fully opaque pixel.

In ARGB color space, each channel is defined by an 8 bit number. Since there are 4 channels and each channel is defined by an 8 bit number, it gives a total of 32 bits for each color. So each color can be represented by a number which is 32 bits long, stored in memory as a 32 bit unsigned integer. As shown on the image below.



* Image taken from Wikipedia, the free encyclopedia (http://en.wikipedia.org)



Since its not practical to write numbers with 32 digits every time we want to write a color somewhere, we can transform those binary numbers to hexadecimal numbers, so we can represent each color by number which only has 8 digits and each digit has 16 values, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. So this means we can represent each channel with 2 digits.

For example, if we want a red color, our hexadecimal value would be FFFF0000. The first 2 digits FF are representing alpha channel, which is in this case set to a maximum value, 100%. Second 2 digits are red channel, which is in this case also set to a a maximum value, 100%. Third 2 digits are blue channel, which is set to a minimum value of 00, which means there is no blue color. Fourth and last 2 digits are green channel, which is also set to a minimum value of 00, which means there is no green color.

To make things a little more difficult, the game is actually using decimal numbers at a processing level, so every input needs to contain a color value represented in decimal numbers. So what we have to do is take that hexadecimal value and turn it into a decimal value. I will not go into details of how to do that, a simple google search for "how to convert hexadecimal to decimal numbers" will provide over 600 thousand results. There are also online converters for this job, or it can even be done with the calculator provided with Windows OS.

So red color represented in hexadecimal value of FFFF0000 converts to decimal value 4294901760.
4294901760 is the number we are going to use to send a text in red color.

We get to a conclusion that there are exactly 2[sup]32[/sup] − 1 colors available, which is equal to 4294967295 (four billion two hundred ninety-four million nine hundred sixty-seven thousand two hundred and ninety-fifth). Please note that it was possible to write a number bigger than 4294967295 and the game was representing it as some color. This is because the game used 32 bit unsigned integers to store color values, if we use a larger number than 4294967295, a buffer overflow will happen. That basically means that the counter will reset and the game will start counting from 0 again. At some point they decided to stop that from happening and basically added an if statement, if the number is larger than 4294967295, use the number 4294967295. So at this point writing higher values than 4294967295 will just end up being 4294967295 which basically a white color.




Color code

The code to write in colors can be found below:
[code]\1c4294967295#Some text[/code]

Code breakdown

  • \1c  - This part tells the game that there is a color value coming up ahead.
  • 4294967295 - This is the decimal value of the color in which text should be displayed.
  • # - This means the color decimal value ends here and everything beyond that should be displayed in that specific color.
  • Some text - Text that should be displayed in that specific color.

So basically all you have to do is paste this code before your text. This works on all chats. It is possible to use multiple colors in the same message, although this code will take up a portion message length.




Color tables

This section contains a table of the most common colors. Please note that I did not name these colors myself, they were taken from W3Schools at http://www.w3schools.com/tags/ref_colornames.asp. It is possible to paste the ingame code directly to ingame chat by pressing CTRL+V to paste. So if you're using these tables, there is no need for any conversions.

ColorColor nameHEX ValueDecimal valueIngame code
█████RedFFFF00004294901760\1c4294901760#
█████BlueFF0000FF4278190335\1c4278190335#
█████GreenFF00FF004278255360\1c4278255360#
█████LimeFFBFFF00‭‭4290772736‬\1c4290772736#
█████YellowFFFFFF00‭4294967040‬\1c4294967040#
█████OrangeFFFFA5004294944000\1c4294944000#
█████Royal BlueFF4169E14282477025\1c4282477025#
█████GoldFFFFD7004294956800\1c4294956800#
█████BrownFFA52A2A4289014314\1c4289014314#
█████BlackFF0000004278190080\1c4278190080#
█████WhiteFFFFFFFF4294967295\1c4294967295#
█████MagentaFFFF00FF4294902015\1c4294902015#
█████PurpleFF8000804286578816\1c4286578816#
█████PinkFFFFC0CB4294951115\1c4294951115#
█████Light Sea GreenFF20B2AA4280332970\1c4280332970#
█████Deep PinkFFFF14934294907027\1c4294907027#
█████AquaFF00FFFF4278255615\1c4278255615#
█████Blue VioletFF8A2BE24287245282\1c4287245282#
█████AquamarineFF7FFFD44286578644\1c4286578644#
█████GrayFF8080804286611584\1c4286611584#
█████Midnight BlueFF1919704279834992\1c4279834992#
█████TomatoFFFF63474294927175\1c4294927175#
█████SalmonFFFA80724294606962\1c4294606962#
█████PlumFFDDA0DD4292714717\1c4292714717#
█████Fire BrickFFB222224289864226\1c4289864226#
█████Dark RedFF8B00004287299584\1c4287299584#





This section contains a table of the most common colors used throughout the game.

ColorUsed inHEX ValueDecimal valueIngame code
█████Autotrack links in logbookFF0064004278215680\1c4278215680#
█████Item names in logbookFFFFCC004294953984\1c4294953984#
█████Special notes in logbookFF0000FF4278190335\1c4278190335#
█████Special headings in logbookFF0080804278222976\1c4278222976#
█████Normal item colorFFFFFFFF4294967295\1c4294967295#
█████Ordinary item colorFF0AF804‭4278908932\1c4278908932#
█████Superior item colorFF6B00824285202562\1c4285202562#
█████Perfect item colorFFFF48004294920192\1c4294920192#
█████Precious item colorFFFF00004294901760\1c4294901760#
█████Public chat colorFF7FFAFB4278222976\1c4278222976#
█████Inter city chat colorFF00D4284278244392\1c4278244392#
█████Guild chat colorFF6DB9FF4285381119\1c4285381119#
█████Guild bulletin colorFFB8FF3B4290314043\1c4290314043#
█████Private chat colorFFA8FF004289265408\1c4289265408#
█████Team chat colorFF00CFC34278243267\1c4278243267#
█████Popular chat colorFFDFB9434292852035\1c4292852035#
█████Popular chat city name colorFFF265224294075682\1c4294075682#
█████War chat colorFFDCDC104292664336\1c4292664336#
█████Newbie chat colorFFE145994292953497\1c4292953497#

Signature

Navigator, tools, guides and much more!
Visit us at: http://thepiratescove.org
#3
Posted on 2015-09-16 21:24:16 | Show thread starter's posts only

Additional information:



Guide status: Completed
Last update: 2015-09-17


Discussion thread: Discussion on "Writing on ingame chat using different colors - Guide"




About

Guide is completed. I will no longer update this guide, unless someone finds a reason, for example wrong values etc...
Any additional information, bugs, wrong information, send them on my forum/in game pm or post on discussion thread and ill add/remove them.




Changelog

2015-09-17 - Made from scratch.




Special thanks to:

  • Ele - Updating and moderating the guide.
  • DarthWars (ChartedWaters) - For writing a guide about this topic and providing some useful data gathered trough experimenting in game.


Thanks everyone who contributed to this guide in any way!



Created by DSofa.

Signature

Navigator, tools, guides and much more!
Visit us at: http://thepiratescove.org
#4
Posted on 2015-09-16 21:25:01 | Show thread starter's posts only

Note
This post is reserved for future updates.

Signature

Navigator, tools, guides and much more!
Visit us at: http://thepiratescove.org
#5
Posted on 2015-09-16 21:25:59 | Show thread starter's posts only

Note
This post is reserved for future updates.

Signature

Navigator, tools, guides and much more!
Visit us at: http://thepiratescove.org