Faction colors not showing up..

正在查看此主题的用户

Kiado

Regular
I am having a strange problem with a mod I am working on.  Basically all my faction towns show up the neutral white, regardless of assigned lord, or faction via scripts.  I have even tried changing the faction in the parties  file directly on the cities, and I still get white lettering.  The mouse over on the city/caste shows the name of the city, the lord, and the faction properly, but everything is white as if it is neutral.  Why don't the colors I have set in module_factions get displayed?

I search on the forums but couldn't find this question asked so any help would be appreciated.

I have assigned ownership by "script_give_center_to_lord" and "script_give_center_to_faction_aux".  Which appears to be working, but the color isn't showing right as far as the faction. 

Anyone have any ideas or suggestions?
 
Aye, I am sure I am doing them in the right format.  I have change the colors on a few mods, and never had this issue. 

module_factions code:
插入代码块:
  ("kingdom_1",  "King Jeoffrey", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x000099),
  ("kingdom_2",  "King Renly",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x33DD33),
  ("kingdom_3",  "King Stannis", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xCC99FF),
  ("kingdom_4",  "Starks",    0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xDDDD33),
  ("kingdom_5",  "Dorne",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x33DDDD),
  #("kingdom_6",  "Iron Isles",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x33DDDD),

These are all valid HTML color codes.  Does M&B except all color codes, or just some?  I don't really know.  Maybe I will try changing them all to the default colors again from the Native and see if that works.  (<== Didn't work, just tried it.)
 
I use some funky hex colors, and they all work fine. Your code looks correct. I've never tried to change the main factions' colors, however. I've only changed Outlaws, deserters, the player party, etc. If you take all of the colors out, will the original colors show up again? If so, I'd think you should report this as a bug.

Also, note that Armagan uses an eight number set in the default module system colors (such as 0xFFFFFFFF). I'm wondering if they are CMYK colors, which would also work.
 
Yeah, I checked and double checked the code.  I have used lots of other color codes in other mods I was messing around with.  This is the first time this has happened to me. 

I might try some CMYK colors colors and see if that works.  I don't know.  I am at a loss.  I even replaced the module_factions with a brand new one from the native module and the colors did not return.  Ugh. 
 
Oh, and did you start a new game? For some reason, you must start a new game for faction color changes to take effect. Even reloading module data in edit mode doesn't work.
 
HardCode 说:
Oh, and did you start a new game? For some reason, you must start a new game for faction color changes to take effect. Even reloading module data in edit mode doesn't work.

Yes sir I did.  No luck.  I might open up CompareIt and port my work over to a fresh slate and see if that works.

Anyways, thanks for your feedback.  I appreciate it, regardless.  If I find a solution I will post it.
 
Hey Kiado,

I use manyf different colors for various factions and various factions in the mod I am making, no problems.

I apologize if I am insulting you with this counter question.. but are you recompiling after the change?.. and is the actual factions.txt file being updated?  Ie.. when you compile, does the module you are testing in receive the updates?

if you want to do this by hand directly in the factions.txt here are some useful links.  One gives you the hex value of colors and the other converts hex to decimal if you desire to update the text file by hand.

http://flor.nl/dec2hex.html
http://en.wikipedia.org/wiki/List_of_colors

Regards,

Saxondragon



 
Thanks for the post Saxondragon.  Not insulting at all.  To answer your question though, yes, it is being recompiled and updated.  I changed faction names a few times just to check that exact thing, and each time in game the faction name was correct in relation to the file. 

I may try your links and edit the factions.txt by hand, or at least see if the values are correct.  Thanks again.   
 
Kiado 说:
Thanks for the post Saxondragon.  Not insulting at all.  To answer your question though, yes, it is being recompiled and updated.  I changed faction names a few times just to check that exact thing, and each time in game the faction name was correct in relation to the file. 

I may try your links and edit the factions.txt by hand, or at least see if the values are correct.  Thanks again.   

You are welcome.  Check the syntax at the end of your lines.. here is a snippet from my factions file for reference.  These have been verified to work and change to the appropriate color.

插入代码块:
  ("kingdom_1",  "Kingdom of Sarleon", 0, 0.9, [("jatu",-0.7),("heretics",-0.4),("khergits",-0.1),("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.4),("red_brotherhood", -0.2),("snake_cult", -0.5),("mystmountain", -0.5)], [], 0xDC143C),
  ("kingdom_2",  "Kingdom of Ravenstern",    0, 0.9, [("jatu",-0.7),("heretics",-0.4),("khergits",-0.1),("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.4),("red_brotherhood", -0.2),("snake_cult", -0.5),("mystmountain", -0.5)], [], 0x0095B6),
  ("kingdom_3",  "D'Shar Principalities", 0, 0.9, [("jatu",-0.7),("heretics",-0.4),("khergits",-0.1),("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.4),("red_brotherhood", -0.2),("snake_cult", -0.5),("mystmountain", -0.5)], [], 0xC2B280),
  ("kingdom_4",  "The Fierdsvain",    0, 0.9, [("jatu",-0.7),("heretics",-0.4),("khergits",-0.1),("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.4),("red_brotherhood", -0.2),("snake_cult", -0.5),("mystmountain", -0.5)], [], 0x03C03C),
  ("kingdom_5",  "The Empire",  0, 0.9, [("jatu",-0.7),("heretics",-0.4),("khergits",-0.1),("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.4),("red_brotherhood", -0.2),("snake_cult", -0.5),("mystmountain", -0.5)], [], 0xFFCC00),

Best,

Saxondragon
 
I just copied and created a new module, straight from scratch, clean slate, sweet virgin code, and started the module (a copy of native) and I have no color on the factions there either. 

Going to reinstall M&B and see what happens. 

Edit:  The reinstall seemed to fix the problem.  The only thing different about a new install from my old install is no GE2.5 mod. 
 
后退
顶部 底部