1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[XMLCOMP] Simple Great Person Mod

Discussion in 'Civ4 - Mod Components' started by Requies, Nov 25, 2005.

  1. Requies

    Requies Prince

    Joined:
    Nov 15, 2005
    Messages:
    381
    This is Dr. Elmer Jiggle's version (which I had nothing to do with) which WILL work with 1.52. Updated latest version.

    Great People
    _________________

    Ever get annoyed because you see a whole bunch of great person names scroll by and you haven't the slightest clue what type they are?
    Be annoyed no longer! This mod adds in the type of Great Person in parentheses to the end of each Great Person's name so that at a glance you can tell who just got a Great Engineer who will be able to rush build that wonder you've been spending forever on. Or you can tell immediately what type of specialist you received so that you can properly plan without having to look around to see which type of person you got.

    Examples:
    Moses (Prophet)
    Harkuf (Merchant)

    Installation
    _________

    Simple Great Person should NOT be installed in your main Civ IV location, as it will overwrite necessary files.
    Instead, it should be installed at: "My Documents\My Games\Civilization 4\CustomAssets\xml\text".

    History
    ______
    v0.3
    -Added foreign language support [Done by Dr. Elmer Jiggle]

    v0.2
    -Updated to work with patch 1.52 (and future patches) [Done by Dr. Elmer Jiggle]

    v0.1
    - first release
     

    Attached Files:

  2. Davyd

    Davyd Chieftain

    Joined:
    Sep 2, 2005
    Messages:
    54
    Good idea, I installed it :)
     
  3. Innocence

    Innocence Chieftain

    Joined:
    Oct 7, 2003
    Messages:
    63
    Ditto, thanks Requies :)
     
  4. Dom Pedro II

    Dom Pedro II Modder For Life

    Joined:
    Apr 3, 2002
    Messages:
    6,811
    Location:
    Exit 16, New Jersey
    Nice job! :thumbsup:
     
  5. woodelf

    woodelf Bard

    Joined:
    Jun 12, 2003
    Messages:
    15,036
    Location:
    Gallery
    Nice idea.
     
  6. mamimo

    mamimo Warlord

    Joined:
    Nov 15, 2005
    Messages:
    101
    could help to know how each Ai treats his Great Persons.
    Also when to hurry a wonder...
    thanks.
     
  7. QiZhe

    QiZhe Warlord

    Joined:
    Oct 6, 2005
    Messages:
    185
    Is this compatible with 1.52?
     
  8. Lov2play

    Lov2play Chieftain

    Joined:
    Nov 14, 2005
    Messages:
    5
    Works fine for me with 1.52.
     
  9. Dr Elmer Jiggle

    Dr Elmer Jiggle King

    Joined:
    Feb 25, 2003
    Messages:
    811
    It works with the patch, but it overrides some of the changes that were made. For example, if you use this mod, Jaguars and Praetorians will still cost 40 hammers each instead of 35 and 45 respectively.

    Requies, while looking over the file to see how to address this, I was wondering why you chose to modify this file instead of XML/Text/CIV4GameTextInfos_GreatPeople.xml. Wouldn't work as well but be more internationalizable and also avoid conflicts with changes to other units? I may take a stab at this approach unless you encountered a problem with that idea.
     
  10. Requies

    Requies Prince

    Joined:
    Nov 15, 2005
    Messages:
    381
    I was thinking about that myself, but I wasn't sure if doing that would mess some more things up if I did that. You could take a look into it.

    But Dr. Elmer Jiggle is right, it unfortunately overrides the changes for 1.52 in price cost (and it will every time a unit change occurs).

    I was actually thinking of adding a separate line in the log file since there's no actual way to alter the reporting of the great person being born.

    So, in the game, it would look like:

    Code:
    A Great Merchant was born to the Roman Empire!
    Harkuf has been born in Rome!
    What do you guys think? To much information? Or is this a decent solution to re-pasting each time a unit is altered?

    Req
     
  11. Dr Elmer Jiggle

    Dr Elmer Jiggle King

    Joined:
    Feb 25, 2003
    Messages:
    811
    I made the appropriate changes to CIV4GameTextInfos_GreatPeople.xml. It seems to be working in my current game, but I don't have a good great person factory going, so I've really only seen two great people (plus several in foreign cities). If I can figure out how to upload a file, I'll post it here so you can take a look at it.

    Note that CIV4GameTextInfos_GreatPeople.xml in the ZIP archive is to be used instead of, not in addition to, CIV4UnitInfos.xml. Install this in CustomAssets or whatever mod folder contains the simple great person mod.

    Although this approach should make internationalization easy (indeed, that's probably the main benefit), I only changed the English names. You can find the words for the different types of great people in Xml/Text/CIV4GameTextInfos_Objects.xml, but I wasn't sure enough about grammatical issues like plurals, noun genders, etc. to do it myself.
     

    Attached Files:

  12. Dr Elmer Jiggle

    Dr Elmer Jiggle King

    Joined:
    Feb 25, 2003
    Messages:
    811
    FYI, I've continued using my CIV4GameTextInfos_GreatPeople.xml version of this mod, and it appears to be working just fine. I've noticed one minor annoyance with it, but I suspect the same problem occurs in the original mod as well. I'm not sure though, as I haven't actually tested it.

    In certain situations, the game already displays "(Great Merchant)" as part of the great person's name even without the mod. One example of this is in the tooltip that pops up when you hover the mouse over a unit. In those cases you now get the hint twice: "Harkuf (Merchant) (Great Merchant)" because it's in both his name and his unit type.

    You might be able to fix that by changing the text in XML/Text/CIV4GameTextInfos_Object.xml so nothing is displayed for the unit type, but I suspect that would mess up other areas (like the specialist area on the city screen), so I simply choose to ignore this problem in my games. It's not really a big deal. Just a bit strange looking.

    I'm also going through the names now and changing the non-English language text, so I think this file really will do everything it needs to do. I'll attach the new file when I finish. Of course, I don't actually speak 8 different languages, so if I guess wrong about how to deal with Chinese great people (for example), please point that out.
     
  13. Requies

    Requies Prince

    Joined:
    Nov 15, 2005
    Messages:
    381
    Nice job. I guess nobody wanted it the other way....

    I'll post this in the OP and give all the credit to you.

    Req
     
  14. alerum68

    alerum68 Priest of Hiroshima

    Joined:
    Jan 3, 2004
    Messages:
    2,519
    Location:
    San Francisco, California, United States
    When I made my MOD pack there were a few errors someone found. The Jag and Prats, as well as Galley's not being upgradable to Frigs. Did you guys catch the Galley fix as well?
     
  15. Dr Elmer Jiggle

    Dr Elmer Jiggle King

    Joined:
    Feb 25, 2003
    Messages:
    811
    @alerum68:

    That was me that noticed those problems. This new version "fixes" all of those. I say "fixes" since the solution is to override the great person names from a different XML file entirely. So the unit definitions are no longer overridden at all.

    If you want to update your mod with this latest version, you would simply need to remove the XML/Units/CIV4UnitInfos.xml file and add the XML/Text/CIV4GameTextInfos_GreatPeople.xml instead.

    @Requies:

    Thanks. Note that until just now I had not yet updated with the new internationalized version of the file. So although the one you currently have linked from the first post will work, it only contains the English names. I've now updated my post with a new file that has the overrides for all 8 supported languages ... sort of ...

    As I was making the changes I noticed that the "Russian," "Japanese," and "Chinese" names for the great people are exactly the same as the French names, so I don't think the text is really correct for those 3 languages. However, it's no worse than with the default game files. That is, I don't think I've introduced any new internationalization issues. I just propagated the existing problems further. So anyone who's happy with the default Russian translation should be no less happy with this one.
     
  16. alerum68

    alerum68 Priest of Hiroshima

    Joined:
    Jan 3, 2004
    Messages:
    2,519
    Location:
    San Francisco, California, United States
    Thanks Doc.... I thought it was you, but was to lazy to go check.:p I know someone that speaks Russian so I can ask them what the names are in Russian. Do you know if it's actually in Cyrlic so I need to get a text file from them, or is it just something I can post the translations to it online? The person I know who speaks Japanese went back home now that school is over, and I can't get ahold of her.:( But I can get the Russian for you when I come back from my trip.

    BTW - Who should I give credit to in the Readme?
     
  17. Dr Elmer Jiggle

    Dr Elmer Jiggle King

    Joined:
    Feb 25, 2003
    Messages:
    811
    Well, since it's currently French, it's definitely not Cyrillic :), but the "funny" characters in the French and German text are done using XML character references like ü (ü). A more complete list of possibilities is at the Wikipedia page below. I suspect that any necessary Cyrillic characters can be managed the same way.

    List of HTML decimal character references

    I think both of us. I wouldn't have even looked at the files if Requies hadn't done it first. It was his/her idea.
     
  18. alerum68

    alerum68 Priest of Hiroshima

    Joined:
    Jan 3, 2004
    Messages:
    2,519
    Location:
    San Francisco, California, United States
    I think I'll just have them translated in English characters for now.... and I'll be sure to include both of you when I update my mod... Leaving for vegas tommorow so not going to do it until I get back though.
     
  19. Requies

    Requies Prince

    Joined:
    Nov 15, 2005
    Messages:
    381
    Updated OP.

    Req
     
  20. alerum68

    alerum68 Priest of Hiroshima

    Joined:
    Jan 3, 2004
    Messages:
    2,519
    Location:
    San Francisco, California, United States
    Working on the Russian translations now, and they will be in proper Cyrlic. They're translated by someone from Bulgaria, and verified by someone from Ukraine.
     

Share This Page