Results 1 to 15 of 15

Thread: Unit card Icons. Please help!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Unit card Icons. Please help!

    Ok this is probably going to take some explaining as this has become so frustrating I'm about ready to pull my hair out. Thanks to Pollux578 for helping me via private message trying to figure this damn thing out.

    Ok, I'm working on my mod here: http://www.twcenter.net/forums/showthread.php?t=255178

    It's basically a mod retexturing all units and flags for the Prussian faction. I've had no problems with the flags or the textures for the units, but I've come across a road block when it comes to the Unit's Icons. The Info cards I'm not worrying about at this present moment. I'll tackle those when I finish up everything else.

    The problem I'm having is I can get the recolored icons to change from the default colors to the ones I've recolored. Pollux has helped me alot and I was able to successfully change the line infantry for prussia to where it works FANTASTIC, however all the other unit icons I've tried to upload, when done the same way, affect all the units, not just the ones for Prussia.

    The only difference I can see is because under db>units_tables>units, there was different sections for each line infantry. For example, there was euro_line_infantry_prussia, euro_line_infantry_france, euro_line_infantry_denmark, etc. However, for something like Regiment of Horse, there was only two entries: euro_regiment_of_horse and euro_regiment_of_horse_sweden. Obviously I didn't want the sweden one so I grabbed the euro_regiment_of_horse to use for my own file.

    The only problem is that it affects all Regiment of Horse, not just for Prussia. I tried changing the Unit ID to euro_regiment_of_horse_prussia, like I saw with the Sweden one, but then when I started up the game, it had reverted all regiment of horse back to default, like the file I just made didn't exist.

    What do I need to change so that it affects only Prussian Regiment of Horse?

    If you want, feel free to download my retexture mod and open it for yourself to see what I've done and maybe you can spot where the problem lies... I've updated the mod just now to include the most recent changes I've made, where line infantry icons work great but the others I've changed so far are not working.

    Sorry for the long post, hopefully someone out there can help me out!


    -Gamewiz

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

    Default Re: Unit card Icons. Please help!

    Here is what i used from applelover and i got them to work of this tutorial; http://www.twcenter.net/forums/showt...ight=unit+card

  3. #3
    Modestus's Avatar Protector Domesticus
    Join Date
    Jun 2005
    Location
    On a ship in the middle of the Mediterranean.
    Posts
    4,037

    Default Re: Unit card Icons. Please help!

    Why don't you just play the game take a nice close-up of your new unit, crop the screen shot and with very little work create a new icon from this, example....


  4. #4

    Default Re: Unit card Icons. Please help!

    Quote Originally Posted by ToonTotalWar View Post
    Here is what i used from applelover and i got them to work of this tutorial; http://www.twcenter.net/forums/showt...ight=unit+card
    That's exactly what I've done. The problem is that I want to overwrite the original files basically with my own icons for the Prussians. The problem is that not all the names are listed for each individual faction, they are all generic under one name. In other words the Regiment of Horse is not listed for each faction under the units_tables. It's just one row labeled euro_regiment_of_horse. So when I change the file to upload my own picture, which it does, it changes the icon for ALL Regiment of Horse, not just for the Prussian faction.

    However, the Line Infantry icon works great, but that's because they have a line infantry listed for each faction under the units_tables. So when I changed euro_line_infantry_prussia, it only affected Prussia because every other faction had it's own line.

    So my question then still stands as to how I can change ONLY the Prussian faction's icons for the ones that are generic, such as euro_regiment_of_horse.

    And Modestus thank you for the input, however the problem isn't that I can't make the cards, I've already done that. I'm just having trouble uploading them to affect only the Prussian faction and not all factions.

  5. #5

    Default Re: Unit card Icons. Please help!

    So does anyone know what is going on? Has no one here replaced pre-existing unit icons, or has everyone only been making their own unique units?

  6. #6
    Modestus's Avatar Protector Domesticus
    Join Date
    Jun 2005
    Location
    On a ship in the middle of the Mediterranean.
    Posts
    4,037

    Default Re: Unit card Icons. Please help!

    Pays to read what people actually want.

    As regards your real problem I would say your stuck, if the icons are generic then you must make a new named unit.

  7. #7

    Default Re: Unit card Icons. Please help!

    So basically I need to create a "unique" unit that is basically the exact same thing as a Regiment of Horse for Prussia, just with my own textures and rename him? Is there a way to replace the original Regiment of Horse with my unit? If not then I'll just say screw the unit icons... They aren't worth it lol.

  8. #8

    Default Re: Unit card Icons. Please help!

    well, it is not that hard: You can clone the row, name it prussia_regiment of horse, change the unit card, model, whatever.
    Then all you must do is find every line with "regiment_of_horse" in it (there are many, e.g. in buildings_units_allowed, units_to_units_abilities) and add the new version there, except the units_to_grouping and unit_ to_exclusive_faction_permission tables (else you would add them to more factions). All you then have to do is, in the later table, add the unit to prussia by adding the line "prussia_regiment_of_horse - prussia - true"

    Of course this will have to be done for each unit where you want a unique prussian skin.....
    (We did this for every unit for IS 2.0, so i know about creating faction specific units, hehe)


  9. #9

    Default Re: Unit card Icons. Please help!

    Oooh... interesting. This is EXACTLY what I was asking about. So does your mod have this? Do you mind if I browse through your mod to see what you did?

    Also, would it be possible to list all these places I have to add my Prussian regiment of horse? Just because I wouldn't really know where to look. Is it all under db or something?

    Sorry if this is alot to ask. I'm just not sure exactly what I have to do to change it and where I need to change it.
    Last edited by Gamewizcreations; July 24, 2009 at 02:09 PM.

  10. #10

    Default Re: Unit card Icons. Please help!

    nobody can stop you from reading through our mod But it is not release yet, gotta wait half a week.

    A list as far as i remember follows, and yes all in "DB"

    building_units_allowed (controls which buildings feature the opportunity to recruit the unit)
    unit_required_technology (controls what techs the unit needs to be recruited, irrelevant for the regiment of horse, but not for dragoons, etc)
    unit_stats_land (controls stats, including the model)
    unit_to_unit_abilities (controls the abilities of a unit)
    unit_tables (defines the unit)
    unit_to_exclusive_faction_permission (refines the grouping structure, disable the old and enable the new units here)
    units_to_groupings_military_permssions (puts the units into recruitment-groups)


  11. #11

    Default Re: Unit card Icons. Please help!

    Looks like you guys might know this. I am making a swedish mod and I have edited a lot of units so far to fit in the swedish army and navy. The final touch is to edit the unit icons and infocards but I can't find them. Where do i find unit infocards and icons, not only for specific units but also for general units like Euro_Line_Infantry and 18_lber_ship_fort_cannon.

  12. #12
    joedreck's Avatar Artifex
    Join Date
    Jan 2007
    Location
    Frankfurt am Main
    Posts
    2,009

    Default Re: Unit card Icons. Please help!

    Quote Originally Posted by Nissum View Post
    Looks like you guys might know this. I am making a swedish mod and I have edited a lot of units so far to fit in the swedish army and navy. The final touch is to edit the unit icons and infocards but I can't find them. Where do i find unit infocards and icons, not only for specific units but also for general units like Euro_Line_Infantry and 18_lber_ship_fort_cannon.
    models.pack -> icons. I think you can find there the unit icons.
    Edictum mod adds new edicts to Rome II. http://www.twcenter.net / YouTube: Edictum Mod / Click here for Edictum Mod on steam
    Vote Brain Slug for president.

  13. #13

    Default Re: Unit card Icons. Please help!

    Nope thats not it. What I am looking for is the table where I can edit the unit text and put another unit picture on the infocard instead of the vanilla one. By the way, there isen't anything called "icons" in the model.pack.

  14. #14
    joedreck's Avatar Artifex
    Join Date
    Jan 2007
    Location
    Frankfurt am Main
    Posts
    2,009

    Default Re: Unit card Icons. Please help!

    Quote Originally Posted by Nissum View Post
    Nope thats not it. What I am looking for is the table where I can edit the unit text and put another unit picture on the infocard instead of the vanilla one. By the way, there isen't anything called "icons" in the model.pack.
    Sorry, I don't know exactly, cause I have this file in my mod. So it must be in patch.pack (data/ui/units/icons).

    The infocards name you can change with DB editor in units_tables/units . It's where you change the price. You can change there the unit icon too.

    You change the text in patch_en.pack /localisation. The "en" stands for your language.
    Last edited by joedreck; February 19, 2010 at 05:51 AM.
    Edictum mod adds new edicts to Rome II. http://www.twcenter.net / YouTube: Edictum Mod / Click here for Edictum Mod on steam
    Vote Brain Slug for president.

  15. #15

    Default Re: Unit card Icons. Please help!

    You can find all the info about it here


Posting Permissions

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