Red Color Code not working! Does someone have the color code for Red?(RESOLVED)

正在查看此主题的用户

WarGamer12

Veteran
I have recently begun work on a mod, and in trying to change a faction color with the correct hexadecimal code for RED, it does not seem to work. This is what I put in the "factions.txt" file in M&B.

"0 fac_kingdom_3 Katipunan 0  FF0000"

This doesn't seem to change the faction to red but change it to a different color, so far I have manged to  change the colors of other factions, but not this one to red. If someone could help me out, I would really appreciate it.
 
Um, I don't know what that is... I'm REALLY new to modding and I was just putting the hexadecimal code for red, and it didn't change the color to red... I'm just using the notepad version of the factions.txt in the original M&B...
 
I'm pretty sure hexidecimal isn't used, try this: 16711680

don't forget to change the players kingdom colour though, since red is already used for it, and morghs editor is a user friendly text editor, you should probably use it, quick google search will find it.
 
The truth is that you can only use hexadecimal notation on the module system, in the compiled txt files all the numbers are in decimal.

So to easily change follow these tips, you don't need any extra tools installed, we're going to use two web services.


插入代码块:
1.
Open the factions.txt within the mod folder of your choice. Once open scroll down until you see the name of the faction you want to mod, like this one:
插入代码块:
0 fac_kingdom_1 Kingdom_of_Swadia 0 15628100 
 0.000000  0.000000  -0.050000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.900000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  0.000000  -0.020000  0.000000  -0.020000  -0.050000  -0.050000  0.000000  0.000000  -0.100000  0.000000

插入代码块:
2.
Get the color number, in this case
插入代码块:
15628100
.

Open your web browser and go to [
插入代码块:
http://www.statman.info/conversions/hexadecimal.html
] and convert it to hexadecimal using this tool:
psimagem.jpg



Then go to [
插入代码块:
http://colorpicker.com
] and paste the hex color code in the input box above (in this case
插入代码块:
EE7744
). It will show up the color, tweak it as you want using the WYSIWYG color picker, get the new code, and reverse the steps to get your own decimal color.


psimageq.jpg



插入代码块:
3.
Replace the color with the one you got. That's it.
This kind of change isn't save compatible, so you need to start a new game to see the changes.
 
后退
顶部 底部