Results 1 to 10 of 10

Thread: I have created a new unit how do i add a new icon?

  1. #1
    Megasalexandros's Avatar Campidoctor
    Join Date
    Sep 2006
    Location
    Northern Greece(Macedonia)
    Posts
    1,828

    Default I have created a new unit how do i add a new icon?

    Well my problem is obvious i want to add a NEW icon for my new unit without replacing the existing ones,does anyone know how?
    Thanks anyway

  2. #2

    Default Re: I have created a new unit how do i add a new icon?





    "Sometimes the best words are those left unsaid..."

  3. #3

    Default Re: I have created a new unit how do i add a new icon?

    Not quite sure what you mean with "not replacing the existing ones", a unit can only have one unit-card which is tied to that unit.

    Anyway, I'm not a hundred percent sure how to do this, but I think you do it this way.
    Enter units_tables and locate your unit. When you've done that, scroll to the right until you find the model name of that unit, like "new_unit_infantry". I believe the column next to that one contains the icons, as the other units all have entries ending with _icon in those rows. So just put your new icon in the "data\UI\units\icons" folder (save it as .tga), and enter the name of the icon in your unit's row.

  4. #4
    Megasalexandros's Avatar Campidoctor
    Join Date
    Sep 2006
    Location
    Northern Greece(Macedonia)
    Posts
    1,828

    Default Re: I have created a new unit how do i add a new icon?

    Idid exactly what you said but the game didnt read my icon, there are two chances here, 1rstly my icon couldnt be read by the game(different format) althought i made some tests and i am almost sure thats not the case, and secondly i will have to make a mask icon witch i cant.
    I think there might be a path inside some document file that tells the game were to put the icons

  5. #5
    Miles
    Join Date
    Mar 2009
    Location
    Lille, France
    Posts
    325

    Default Re: I have created a new unit how do i add a new icon?

    I have found the info you want, it's located in the units db file, there's one entrie with clear statements about this like:Euro_Carabiniers_icon_cavc that refers to the tga files.

  6. #6
    Megasalexandros's Avatar Campidoctor
    Join Date
    Sep 2006
    Location
    Northern Greece(Macedonia)
    Posts
    1,828

    Default Re: I have created a new unit how do i add a new icon?

    Τhanks thib , i know this part ,but when i put my own icon the game doesnt read it, i think there is somewhere else a file that tells to the game from were to draw the icon

  7. #7
    Miles
    Join Date
    Mar 2009
    Location
    Lille, France
    Posts
    325

    Default Re: I have created a new unit how do i add a new icon?

    I'm positive that it works, I've done it right now.
    It's the second unknow column with this sort of informations, I suspect the others to control the details when right clicking a unit.
    And don't foget to put the icons in your mod.

  8. #8

    Default Re: I have created a new unit how do i add a new icon?

    can somebody please explain why my unit card is white. I suppose its because i need like a mask or sumthing? Any help?

  9. #9

    Default Re: I have created a new unit how do i add a new icon?

    bump

  10. #10

    Default Re: I have created a new unit how do i add a new icon?

    nvm i fixed it. I hadnt added a seperate mask file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •