Page 1 of 2 12 LastLast
Results 1 to 30 of 42

Thread: How to change unit banners and faction icons

  1. #1
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default How to change unit banners and faction icons

    Modding Resource Header
    Title: How to change unit banners and faction icons (formerly Total banners and symbols conversion)
    Posted by: Monkwarrior
    Modding area: Units (appearance), User Interface

    Required programmes: Vercingetorix's X-Pak, an image editor capable of editing .DDS files (
    such as Photoshop or Paintshop Pro), Notepad (or other text editor)
    Related links: xpak Tutorial, Nvidia dds plug-in
    Summary: This guide details how to change the faction icons in the game - including the battlemap banners, strategic banners and user interface icons.


    I had the idea of writing a guide for a complete conversion of all the symbols and banners in a given faction.
    The first part for the faction selection menus has already been post here: https://forums.totalwar.org/vb/showthread.php?t=45150

    This guide is not intended to be a step-by-step tutorial, and it is supposed that the modder is able to use PSP or Photoshop in a correct way.

    BATTLE MAP

    The most relevant banners in battles are that for the general unit and the banner for the rest of units. These banners are included in one single file: standard_factionname.tga.dds placed in Data\models\textures folder. This is the example for the celts faction I did (I remember this is not a very artistic work, it is only for general information):


    On the right the banner for the general unit, on the left the common banner. I did these banners from the "white" banner standard_routing_barbarian.tga.dds in the same folder. There are also white versions for eastern and western factions.
    Here you have the effect in game:


    Other banners appear in some units, but they are included in the textures of the units, in Data\models_unit\textures.
    In the image (with a red circle) you can see also another banner, which is probably more difficult to find, as it is included in the packs.
    Once unpacked, you can find these banners in the folder Data\ui\CAPTAIN_BANNERS, with the name CAPTAIN_CARD_FACTIONNAME.TGA. I did it simply by cutting the banner for the general unit, resizing to fit the new size and pasting it on the captain banner.

    I hope this will help and next chapter will deal with the large amount of places where banners and symbols appear in strategic map.
    Cheers.
    Last edited by Epistolary Richard; 07-26-2005 at 12:23.

  2. #2
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Total banners and symbols conversion

    STRATEGIC MAP

    In these pictures have tried to show most of occasions when the faction symbols and banners appear in the strategic map.



    The CAPTAIN_CARD_FACTIONNAME.TGA placed in Data\ui\CAPTAIN_BANNERS folder appears also in the strategic map. It is shown in green in the first screenshot, in the prebattle screen when the armies are commanded by a captain instead of a general.

    In blue you can see the places where a big symbol appears, for example in the right bottom interface pannel, in diplomacy or to show the AI movements at the end of the turn. It is coded in the file STRATPAGE_02.TGA placed in Data\ui\ROMAN\INTERFACE folder. This is the aspect of this file:

    You must paste the new symbol on the old one. I use the symbol48_factionname.tga file (used for menu buttons) to copy, resize and paste the same symbol.

    The small symbol also appears in many occassions, as can be seen in the screenshots (red marks), such as the prebattle screen, the battle results or the diplomacy screen. The small symbol is coded in the file SHAREDPAGE_01.TGA placed in Data\ui\ROMAN\INTERFACE folder. This is the aspect of this file:

    The symbol must be pasted on the old one. I use the symbol24_factionname.tga file to copy, resize and paste the same symbol.

    Finally, the banners in settlements and armies (white marks in screenshots) are specific for the faction only in the color (in descr_sm_factions.txt placed in Data folder) and the symbols, coded in the files symbols1.tga.dds to symbols8.tga.dds placed in Data\banners folder. The symbol for britons is placed in symbols4.tga.dds as shown in the figure.

    What I do to modify the symbol is to cut the corner of the symbol, both in RGB and alpha channels. Then I paste the positive and negative of the new symbol in RGB and alpha channels, respectively and this is the final result:


    I hope this tutorial will help in some way for a total conversion of the banners and symbols of a faction.
    Please if you feel that something is not clear enough or that something is lacking, post it here.
    Thanks.

  3. #3
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Total banners and symbols conversion

    Do I have to repack the files, or even to delete the vanilla packs ?
    Right now, the game crash while loading when I add the 2 tga files into Data\ui\ROMAN\INTERFACE

    Edit : I achieved to have the game loading without a crash, but the symbols are still the same

  4. #4
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Re : Total banners and symbols conversion

    Quote Originally Posted by Meneldil
    Do I have to repack the files, or even to delete the vanilla packs ?
    Right now, the game crash while loading when I add the 2 tga files into Data\ui\ROMAN\INTERFACE
    In fact all these modifications were done for RTW 1.1.
    In that case I was working with a completely unpacked version, and the packs had to be deleted to get the modifications visible.

    Does the crash take place while loading the game or the campaign?
    I am now adapting my mod to 1.2. I can only say that the game loads without problems with the two modified files. I can play custom battles but I have problems in loading the provincial campaign. However the problem is completely different (I will post it in the general forum).

    Good luck!

  5. #5
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Total banners and symbols conversion

    It now works (kinda, the large icons is showing, not the small one). I had to delete the packs in order to do so.

    Anyway, thanks, that's a great tutorial

  6. #6
    Member Member Vetinari's Avatar
    Join Date
    Dec 2004
    Location
    England
    Posts
    12

    Question Re: Total banners and symbols conversion

    Have you found a way to stop the grey background from appearing on the flags in the strategic map? I can change the symbols ok but they always seem to have the grey square behind them.

  7. #7
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Total banners and symbols conversion

    Quote Originally Posted by Vetinari
    Have you found a way to stop the grey background from appearing on the flags in the strategic map? I can change the symbols ok but they always seem to have the grey square behind them.
    Yeah, it is only a problem of the alpha channel.
    What I did (I don't know if there is an easier way, I learnt it by myself) was to make a psd file with the positive (white background) symbol. Then I converted it into the negative (black background) with the symbol in white.
    Then it is necessary to cut the symbol in both the RGB and the alpha channel. Then I paste the positive in the RGB channel and the negative in the alpha channel. Be careful that both are correctly placed. When the file is saved as dds everything seems to be OK.
    If you have some problems (my English is not good enough), I will try to put some screenshots of the process the next days.

    Cheers.

  8. #8
    Member Member Vetinari's Avatar
    Join Date
    Dec 2004
    Location
    England
    Posts
    12

    Default Re: Total banners and symbols conversion

    Thanks Monkwarrior. I did exactly what you said and I've got it now, thanks for the help.

  9. #9
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Total banners and symbols conversion

    I still can't get the small icons to work. I've tried by all means (copy/paste with resize, drawing the symbol from scratch, etc.), but it looks like something is messed up here (perhaps me )

  10. #10
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Re : Total banners and symbols conversion

    Quote Originally Posted by Meneldil
    I still can't get the small icons to work. I've tried by all means (copy/paste with resize, drawing the symbol from scratch, etc.), but it looks like something is messed up here (perhaps me )
    Well, it is surprising that you succeded in making the big symbols to work but not the small ones. In fact I did the same in the two files and that was all.
    Are you sure about the resolution of the final tga file?
    After pasting I usually do "merge visible" to put together the layers generated by pasting. I don't know if this is important or not.
    I hope you solve your problem.
    In any case, I haven't found the way to show these modifications in case of an unpacked game.

  11. #11
    Modder Member Encaitar's Avatar
    Join Date
    Oct 2003
    Location
    Melbourne, Australia
    Posts
    234

    Default Re: Total banners and symbols conversion

    If you're using the 1.2 patch, then you'll need to unpack (and rename) patch_0.pak. It has a couple of interface files in it, and it seems that it looks for the small icons (at least for the roman interface) there first.
    Encaitar Arandur

    Middle-earth: Total War Dev

  12. #12
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Total banners and symbols conversion

    Looks like it works, thanks :)

  13. #13

    Default Re: Total banners and symbols conversion

    Quote Originally Posted by Monkwarrior
    STRATEGIC MAP

    Finally, the banners in settlements and armies (white marks in screenshots) are specific for the faction only in the color (in descr_sm_factions.txt placed in Data folder) and the symbols, coded in the files symbols1.tga.dds to symbols8.tga.dds placed in Data\banners folder. The symbol for britons is placed in symbols4.tga.dds as shown in the figure.
    Sorry if this is a stupid question (I'm new to modding), but I can't seem to find symbol for the Senate amongst these files.

    symbols1.tga.dds contains the three Roman families, whilst 2 to 5 has the other factions. 6, 7 and 8 appear to be blank. Can anyone help? Thanks.

  14. #14
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Total banners and symbols conversion

    Quote Originally Posted by Balbus
    Sorry if this is a stupid question (I'm new to modding), but I can't seem to find symbol for the Senate amongst these files.

    symbols1.tga.dds contains the three Roman families, whilst 2 to 5 has the other factions. 6, 7 and 8 appear to be blank. Can anyone help? Thanks.
    It's not a stupid question (at least the same problem happened to me at the beginning). I imagine you are not an expert in photoshop (as me ) and you are not familiar with alpha channels.
    Some of the symbols are only visible in that channel (germans for example), as they are white.
    In the menu open Window>Channels. You will have a new window and your visible (eye on the left) channels are RGB and the individual red, green and blue. Click on the alpha and you will see the senate symbol.

    If the problem persists I will try to post some screenshots.
    Good luck!

  15. #15

    Default Re: Total banners and symbols conversion

    i successfully changed the battle banners and the map unit banners, but i'm having trouble changing the interface shields because i can't find this Data/ui folder your talking about, where is it? i found a folder called /packs and ui_0.pak and ui_1.pak files in it, but i can't open them. What do i do?

  16. #16
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Total banners and symbols conversion

    Download Vercingetorix' pak extractor, extract ui_1.pak (create a new folder, put ui_1 into this folder, then put the extractor and launch it) A DATA folder will appear, look into it and find the roman/interface folder, replace the files with your new ones, repak the file (there's a tutorial about repaking in the readme) and put the edited, brand new-repaked pak in your RTW pak folder.

    IF you're using 1.2, you'll have to unpak patch_0.pak aswell, cause one of the required file is packed here.
    To do so, put patch_0 in an empty folder with the pak extractor, rename patch_0 (ie : ui_0.pak or ui_1.pak), and launch the extractor.
    Do not forget to repak everything once you'd edited the files (I think you have to rename it patch_0, but I may be wrong).

    I hope I've been clear enough (I doubt it, but heh).

  17. #17
    Eliminated Faction Heir Member Laridus Konivaich's Avatar
    Join Date
    Mar 2005
    Location
    Playing with swords
    Posts
    1,224

    Default Re: Total banners and symbols conversion

    Mokwarrior: Do you know where the files are for the settlement banner that is used when no armies are present?, the larger, square banner? Is this possibly the captain banner?
    Map designer for the Age of Hellas Mod: Age of Hellas Forum

    "I vote for closed."
    Two posts later:
    "Argh...I forgot that I actually have to close topics in order for them to close." ~Big King Sanctaphrax link

  18. #18
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Total banners and symbols conversion

    Yes, I think so. But it is not 100% sure, as I tested it some time ago.

  19. #19
    Modder Member Encaitar's Avatar
    Join Date
    Oct 2003
    Location
    Melbourne, Australia
    Posts
    234

    Default Re: Total banners and symbols conversion

    The banners that appear above a settlement on the strat map when there are no units there are models_strat\textures\#banner_symbol_{faction}.tga.dds

    These textures are referenced from the models_strat\symbol_{faction}.CAS files. Which specific .CAS file is for which faction is defined in descr_sm_factions.txt.
    Encaitar Arandur

    Middle-earth: Total War Dev

  20. #20
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Total banners and symbols conversion

    Thanks for this important information.

  21. #21

    Default Re: Total banners and symbols conversion

    I have a couple of additional comments about editing the banners that appear on the strategy map (displayed on armies and settlements).

    The alpha layer behaves strangely in with these banners. It does not seem to be possible to create one with a white crest (logo), for example. If you add a completely white silhouette to the alpha layer and leave the RGB layer blank, the crest will be rendered in-game as a medium grey, as with the Senate banners.

    Coloured crests seem to interact with the underlying colour of the banner, which is defined (as the primary/secondary colours of the faction) by settings in the file: "Data\descr_sm_factions.txt".

    In my attempts to place a light yellow crest on a dark blue banner, the crest was always rendered in-game as a dirty green colour. I settled for grey in the end. :)

  22. #22
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: How to change unit banners and faction icons

    Yes, as you can see, I never say anything about colours.
    The colours are modified in some way by the game as the banners contain the "level" of the corresponding armies.
    It is related to the faction colours described in descr_sm_factions.txt. Even in the case the colour is white, the game shows it as grey and all the other colours are changed in the same way.

  23. #23

    Default Re: How to change unit banners and faction icons

    In another forum I've asked - but this is the best place to file this query I think:

    I'm wondering how exactly the banners on the fortifications can be changed. Stone walls, the banners over those gates, for example.

    Also asked here:
    https://forums.totalwar.org/vb/showthread.php?t=51613

    I would think they would be the second set of banner textures (main set is in models/textures) that you can find in models_buildings/textures, but I can't get them to change yet. I've seen somewhere that they were hard to change - does anyone have any information on this at all?

  24. #24

    Default Re: How to change unit banners and faction icons

    I'm having difficulties with this. I'm trying to give the scipii faction the symbols of the BI celt faction, and the brutii the symbols for the BI sarmation faction. I've followed your guide here and the select faction screen to begin playing the game works, the loading screen works, but once in game the flags above the armies and settlements are still the old scipii and brutii flags. I've not even gotten in so far as to check the battle screen flags, heh heh.

    I tried changing the logo_index and the small_logo_index to match the lines in the corresponding BI factions, but unfortuneately those are already recognized by RTW as belonging to the Macedonians and the Britons.

    And it seems that all that changed was some of the interface symbols and not the actual flags anyway.

    Can someone give me a clue as to how I can go about making it work?

    Thanks!
    Last edited by Cormaeg; 01-08-2007 at 19:31.
    Cormaeg

    Stumbler amongst files

  25. #25
    Pertapa Member Anarchon's Avatar
    Join Date
    Dec 2007
    Location
    Jakarta, Indonesia
    Posts
    9

    Default Re: How to change unit banners and faction icons

    Please can someone help me to find out how to repack files. I can unpack them ok and have apparently repacked them but they do not appear.
    I have only repacked the files edited by me and saved the pak file under my own filename.

    If I unpack UI_1, edit 2 files and then want to repack it, do I have to make a text file listing every single file in UI_1 in its correct path? This will take forever! Or has eone posted up the list somewhere?

    Or do I copy all the files unpacked from UI_1 into their correct places in the main data folder and delete UI_1? Vercingetorix's instructions are fine for unpacking, but very confusing (for me) on repacking.

    Hoping someone can help me.
    And/or point me to a guide on re-packing.

  26. #26
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: How to change unit banners and faction icons

    Quote Originally Posted by Anarchon
    Please can someone help me to find out how to repack files. I can unpack them ok and have apparently repacked them but they do not appear.
    I have only repacked the files edited by me and saved the pak file under my own filename.

    If I unpack UI_1, edit 2 files and then want to repack it, do I have to make a text file listing every single file in UI_1 in its correct path? This will take forever! Or has eone posted up the list somewhere?

    Or do I copy all the files unpacked from UI_1 into their correct places in the main data folder and delete UI_1? Vercingetorix's instructions are fine for unpacking, but very confusing (for me) on repacking.

    Hoping someone can help me.
    And/or point me to a guide on re-packing.
    The best way is to repack only the modified files and name the pack as mod_0.pak. In this way the list is by far shorter and the game considers first the files in it.

  27. #27
    Pertapa Member Anarchon's Avatar
    Join Date
    Dec 2007
    Location
    Jakarta, Indonesia
    Posts
    9

    Default Re: How to change unit banners and faction icons

    Thanks Monkwarrior,

    I have been able to kludge a way thru thanks to that advice.

    Still massively confused and having to edit the sample files to do it rather than making my own, but at least have this work-around.

  28. #28

    Default Re: How to change unit banners and faction icons

    This is more of a Photoshop question, but it's only appeared when modifying these files, not any other tga.dds files. The files "standard_<factionname>.tga.dds" appear to be 86 KB in size as originals, yet every time I save a modified file using Photoshop/NVidia DDS plugin, it saves as 43 KB (incidentally, unit Texture files are 43 KB in size, which is why this problem hasn't occurred before for me). It appears the game does not like/recognize files sized at 43 KB, and defaults to the vanilla files at 86 KB.

    This is using Rome 1.5/Pshop 9.02/NVidia 8.20Beta. Has anyone else run across this problem, or is there an option/setting I've missed?

  29. #29

    Default Re: How to change unit banners and faction icons

    Quote Originally Posted by Monkwarrior View Post
    The best way is to repack only the modified files and name the pack as mod_0.pak. In this way the list is by far shorter and the game considers first the files in it.
    Do files under 1.5 need to be repacked, or is this necessary only in 1.1/1.2?


    ETA:

    I've looked at a couple of mods I've downloaded, and they seem to NOT repack the tga.dds files, or copy over the .cas files. (However, they are all 86 KB, leading me to think there's a setting I have wrong in saving files I modify.)
    Last edited by Sir_Lysander; 02-07-2009 at 18:04.

  30. #30

    Default Re: How to change unit banners and faction icons

    You will not have to repak banners or faction symbols with 1.5. At least not if you are using a mod folder.
    Last edited by SubRosa; 02-08-2009 at 04:23.
    There are never enough hours in the days of a Queen, and her nights have too many...

    ATW Version 2.5 is now out!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO