Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Unit Info Cards

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Unit Info Cards

    I am importing RTW Unit Cards and using them in an ancient mod for MTW2.

    The .tga files are placed in the relevant folder in MTW2 (mymod/data/UI/Unit info/milan etc...) and i have changed the card info to match with the unit desription in the export_unit.txt file but when i play game the pics do not appear in game?

    I have noticed in MTW2 the Unit Info cards use a border around the image, is this the possible problem, do i need to border the cards i am trying to use?

    Can anyone help me on this issue?

  2. #2

    Default Re: Unit Info Cards

    hmm your not replacing .tga files with tga.dds are you?

  3. #3
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    I Dont think so it is the .tga file from RTW, so i am assuming it is .tga?

    If it's not a tga.dds do you just convert to .tga.dds with DDS Converter 2?

  4. #4

    Default Re: Unit Info Cards

    You don't need a converter just make a new.tga

    -or to be safe open the m2tw unit card you want to replace and copy/paste the rtw image over it
    Last edited by Tyre; February 17, 2009 at 06:39 AM.

  5. #5
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    ok tried the above and place pic with border using photoshop and put the pic into the appropiate Unit_info folder, but still the card does not appear in game i still have the peasant image in its place?
    Last edited by ToonTotalWar; February 18, 2009 at 01:18 AM.

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unit Info Cards

    Maybe a typo. Can you give the filen ame for the pic and the unit name?










  7. #7
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    javelinmen_info.tga is in the Unit_Info folder for the Greek faction

    {javelinmen} in the export_unit.txt file, i did a search based of the dictionary name as well to double check!

    I assume this is correct way of renaming the card from the text file?

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unit Info Cards

    Could it be your are mixing it up? Are you looking for the graphic that appears on the right in the recruitment panel or for the one in the left panel (when you right click on the unit card)?
    There should be no reason for the pic not to appear, provided:
    1. You are playing the Greek
    2. The Javelinmen are recruitable in the EDB
    3. You got pictures in TGA format in the unit_info directory
    4. You got the file_first thingy going.










  9. #9
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    Quote Originally Posted by gigantus View Post
    Could it be your are mixing it up? Are you looking for the graphic that appears on the right in the recruitment panel or for the one in the left panel (when you right click on the unit card)?
    There should be no reason for the pic not to appear, provided:
    1. You are playing the Greek
    2. The Javelinmen are recruitable in the EDB
    3. You got pictures in TGA format in the unit_info directory
    4. You got the file_first thingy going.

    Graphic to left panel is the one!
    1. playing Greek as all other files are in there!
    2. The units are 100% recruitable as they are in my current campaign game etc.. what is EDB?
    3 .tga format indeed
    4. file_first = true is in the cfg file.

    This is the Hegemon Ancient mod for MTW2 i am playing alongside other amendments to this mod that are updating as i change on a regular basis. i did notice there are no Unit_Info cards for any of the factions (Greeks (milan), Selucid (portugal), Carthage (moors), Macedon (spain) & Consul Scippi (hre).
    I know this can be rectified!! i am wondering if the Unit_Info cards need to go into another faction to appear?

    I have checked via a viewer on the Unit Cards/milan folder and can clearly see that the unit cards correspond with Greek faction, so if this is correct you place the unit_info card into the unit_info/milan file?
    Last edited by ToonTotalWar; February 18, 2009 at 10:07 AM.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Unit Info Cards

    EDB = export_descr_buildings.txt, text file where all the buildings are listed together with the recruitment abilities.
    I don't really know the mod, but if the descr_sm_factions hasn't been changed then you should not have that problem.
    Best way to confirm is with the data\text\expanded.txt file: Search for the faction's name and see what is written within the curly brackets.










  11. #11
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    Quote Originally Posted by gigantus View Post
    EDB = export_descr_buildings.txt, text file where all the buildings are listed together with the recruitment abilities.
    I don't really know the mod, but if the descr_sm_factions hasn't been changed then you should not have that problem.
    Best way to confirm is with the data\text\expanded.txt file: Search for the faction's name and see what is written within the curly brackets.

    Ok, have checked descr_sm_factions and that has not been changed at all, i have looked in data\text\expanded.txt and the faction is: {MILAN}The Greek Cities which is correct!
    The "javelinmen" are recruitable in the EDB as well within various buildings!
    I am very confused now??

  12. #12

    Default Re: Unit Info Cards

    If unit in question has the mercenary_unit attribute the game will look for the info in the merc and mercs folders not the faction with ownership.

  13. #13
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    Quote Originally Posted by Eothese View Post
    If unit in question has the mercenary_unit attribute the game will look for the info in the merc and mercs folders not the faction with ownership.
    Ah Ok! i will place in this folder and lets see what happens!

    BRAVISSIMO!! thank you Eothese this worked!! +rep and thank you gigantus +rep for your help as well
    Finally how do i know what is a mercenary_unit?
    Last edited by ToonTotalWar; February 18, 2009 at 02:28 PM.

  14. #14

    Default Re: Unit Info Cards

    No problem.
    Look in EDU on the attributes line...
    All the info on what is what is in the header.

  15. #15
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    Quote Originally Posted by Eothese View Post
    No problem.
    Look in EDU on the attributes line...
    All the info on what is what is in the header.
    Gotcha thanks mate,
    Are you any good with event pics problems as i have a further post in this forum as i am trying to change a picture on the pre battle screen before enering a battle on map?? if not thank you for your help again

  16. #16

    Default Re: Unit Info Cards

    there are several prebattle pictures depending on the circumstances.

  17. #17
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    Quote Originally Posted by Tyre View Post
    there are several prebattle pictures depending on the circumstances.
    it is the pre battle pic when you attack your enemy on the strat map (left is your general/captain icon and it has the bar in the middle and to the right is the enemy with icon of general/captain etc..)

  18. #18

    Default Re: Unit Info Cards

    Can you post a screenshot of the image you would like to change?

  19. #19
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Unit Info Cards

    attached pic as requested

    and the text from the event.images.txt

    your_machine_needs_upgrading
    icon military
    format
    {
    title center verdana black
    image center battle_deployment
    spacer 16
    bodystring left verdana_sml khaki left
    }

    your_machine_needs_upgrading_ai_to_reinforce
    icon military
    format
    {
    title center verdana black
    image center battle_deployment
    spacer 16
    bodystring left verdana_sml khaki left
    }
    Last edited by ToonTotalWar; March 12, 2009 at 01:21 PM.

  20. #20

    Default Re: Unit Info Cards

    There are two references to that event image. prebattle_attack.tga and battle_deployment.tga

Page 1 of 2 12 LastLast

Posting Permissions

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