Adding Banners

正在查看此主题的用户

Thanks for the help,

But I am not replacing banners, I am actually adding in new ones, I added one successfully to the banners choosing menu, and now I also added it's map_icon, now I just need to figure out the last part.

Problem with the map-icons was that I didn't realize you had to add 2 textures and 2 resource files, one for the actual banner 2nd for the map flag.

About the banners appearing on my heraldic shields and armor, which script did you mean? under which module_<name>.py?
Please help =D

[EDIT]

Ok I have figured it out, the thing that needs to be added for heraldic color is arms_ ,

So I have now successfully added my own banner that works properly in all aspects of the game!
Cheers!
 
Kerlex 说:
Thanks for the help,

But I am not replacing banners, I am actually adding in new ones, I added one successfully to the banners choosing menu, and now I also added it's map_icon, now I just need to figure out the last part.

Problem with the map-icons was that I didn't realize you had to add 2 textures and 2 resource files, one for the actual banner 2nd for the map flag.

About the banners appearing on my heraldic shields and armor, which script did you mean? under which module_<name>.py?
Please help =D

[EDIT]

Ok I have figured it out, the thing that needs to be added for heraldic color is arms_ ,

So I have now successfully added my own banner that works properly in all aspects of the game!
Cheers!
 

Had I seen this earlier, I would've explained, I've been working on something similar lately. Now I've got a slightly different problem, though. My new banner gives heraldic armors a black back, and when I tried to fix it the way was explained to me (I think by hokieBT) but it's still black and the standard heraldic-armors-without-heraldry now have green backs. :lol:
 
That's a strange error, are you sure you didn't make a mistake in your module-constants.py? and began or ended loading the heraldic meshes too early or too late, causing the program to load a black (blank) mesh?

If not that, then you should check your textures if they are ok or not. My banners seem to be working great cover both front and back.
 
in the tableau materials, these are the lines that set the background color for a tableau (Heraldic) material:

(store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
(troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
(cur_tableau_set_background_color, ":background_color"),


So what you need to be doing is for your specific banner, you need to set the troop slot for the background for your specific flag.
Here is what I did to set the background colors in groups of 8:

###script_j_banner_bg
###Sets the background colors for use with the tableau definitions.
###based on this:      (troop_set_slot, "trp_banner_background_color_array", 0, 0xFF8f4531),
###0xFF0000 red, 0xFFFF00 yellow, 0xFFFFFF white, 0x888888 black, 0x0080FF blue, 0x00FF00 green, 0xAB00AB purple, 0xFF8000 orange. 
###With above troop_set_slot example, colors start with 0xFF, as aposed to just 0x 

("j_banner_bg",
[
(try_for_range,":this_banner",0,:cool:,##RED
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFFbb0000), ##0xFFaa1111),
(try_end),
(try_for_range,":this_banner",8,16),##YELLOW
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFFaaaa00), ##0xFFaaaa11),
(try_end),
(try_for_range,":this_banner",16,24),##WHITE
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFF999999), ##0xFFcccccc),
(try_end),
(try_for_range,":this_banner",24,32),##BLACK
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFF111111),
(try_end),
(try_for_range,":this_banner",32,40),##BLUE
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFF0000bb),
(try_end),
(try_for_range,":this_banner",40,4:cool:,##GREEN
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFF00bb00),
(try_end),
(try_for_range,":this_banner",48,56),##PURPLE
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFFaa00aa),
(try_end),
(try_for_range,":this_banner",56,64),##ORANGE
(troop_set_slot, "trp_banner_background_color_array",":this_banner", 0xFFbb7700),
(try_end),
]
),

You can quite simply find in the beginning for the game_start sript and change/add the setting for your banner.  If you don't define it, it will be 0 (or 0xFF000000, or black).
 
后退
顶部 底部