Results 1 to 15 of 15

Thread: Creating Own Regiment Names

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Skyline Pete's Avatar Senator
    Join Date
    Feb 2007
    Location
    Canberra - Australia
    Posts
    1,161

    Default Creating Own Regiment Names

    Has anyone tried experimenting with this?

    What I'm meaning is upon having the creation of a new unique unit, it is given it's own series of numbered names rather than taking the vanilla ones.

    For example:
    Recruit a unit of line infantry and you get 1st Regiment of Foot

    or

    Recruit a unit of new unit and you get 1st Regiment of New Unit

    I've tried fiddling around with the following tables:
    units_class
    units_regiment_names
    localisation.pack

    Game keeps crashing on me whenever I try to start it.


    Has anyone else ever had any luck?

  2. #2

    Default Re: Creating Own Regiment Names

    yea man I'm in the same boat as you.

    I'm using DBEditor to edit "units_tables\units" and "unit_regiment_names_tables\unit_regiment_names", and PFM to edit the localisation.loc file but my game keeps crashing during the loading screen into battle maps where my custom unit (a unit of Marines, in my case) is present.

    Unfortunately, I am stumped too...

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

    Default Re: Creating Own Regiment Names

    Ok guys you will have to make a Mod for the unit and apply the db files to that unit using Pack File Manager. then you can make up your name for unit etc.. by doing this is the only way as using a CA default unit and changing the names will CTD!!
    The other way of doing this is alter all the text entries for the unit in Main.pack, patch.pack, patch_en.pack. this is not recommended as when new patch updates will overwrite these alterations!
    my advice go for option one

  4. #4

    Default Re: Creating Own Regiment Names

    I think I already am making a separate mod for my custom unit. I cloned the rows i needed from the vanilla tables and changed the names. I have my own localisation.loc file in a .pack called "marines_mod_localisation.pack". I've tried changing the .pack file type to a movie, patch, mod, everything, and it doesn't seems to work. What seemed to be holding me up before was that I had created a custom class for my unit, as regiment names are drawn from the unit class, but I kept CTDing on loadup as i mentioned. What I did last night was use "infantry_berserker" class, which was already in-game, to get my custom regiment names. I made it past the loading screen with no CTD, but my regiment names were not there...

    How exactly do you want me to go about making a mod for my unit? Because I thought I already had done that

    What it might be is that my DB files are in a separate pack file than my localisation.loc file. But thats because PFM wont let me open db files anymore, it says its superceded by DBEditor. Likewise, I cant find the localisation.loc file in DBEditor, and so I was using PFM to edit that.

  5. #5

    Default Re: Creating Own Regiment Names

    bumpity bump! anybody have a go at this?

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

    Default Re: Creating Own Regiment Names

    send me your file (mod & Loc file) for the unit and i will have a look at it for you.
    Have you a text file within the mod? as well as your seperate LOC file?

  7. #7

    Default Re: Creating Own Regiment Names

    ok i sent you the mod and loc file.

    At the moment, I do have a .loc file in the same mod file with my unit. But before, I was keeping the .loc file in its own .pack file. It doesn't seem to make a difference either way; the regiment names wont show up if I use the infantry_berserker class and i get a CTD if i use a custom class.

  8. #8
    Johan217's Avatar Campidoctor
    Join Date
    Jan 2005
    Location
    Gent, Belgium
    Posts
    1,965

    Default Re: Creating Own Regiment Names

    I think you also need to change something in the campaign's startpos.esf file.

    It seems the game chooses the names on the basis of the entries in:
    main\startpos.esf\CAMPAIGN_STARTPOS\CAMPAIGN_ENV\CAMPAIGN_MODEL\WORLD\FACTION_ARRAY\FACTION_ARRAY\FACTION\LAND_UNIT_NAME_ALLOCATOR

    Haven't tried it myself, but it's worth a shot.
    Rock 'n' roll is the only religion that will never let you down

  9. #9

    Default Re: Creating Own Regiment Names

    where exactly is that file? in the main .pack?

  10. #10
    Johan217's Avatar Campidoctor
    Join Date
    Jan 2005
    Location
    Gent, Belgium
    Posts
    1,965

    Default Re: Creating Own Regiment Names

    .\Steam\SteamApps\common\empire total war\data\campaigns\main

    You need ESF Editor to open the esf file: http://www.twcenter.net/forums/showthread.php?t=260597
    Rock 'n' roll is the only religion that will never let you down

  11. #11

    Default Re: Creating Own Regiment Names

    ahhh yes, the ESF Editor... that makes sense

    ok lemme have a go at at

  12. #12

    Default Re: Creating Own Regiment Names

    when I try to open the UNIT_CLASS_NAMES_LIST, its all grayed out and nothing shows up on the right-hand side of the ESF Editor. I downloaded the editor from your link... might it need to be updated?

  13. #13

    Default Re: Creating Own Regiment Names

    That's really interesting. Once upon a time I was stumped by this question. I had created a new unit class for a unit, filled out the class details, localized it properly, and the game refused to display the names. It always came up as the very first entry in the localization: Fixed Artillery.

    But now, looking at the startpos, there's definitely a connection. 23 LAND_UNIT_MAP entries, which just happens to be the number of unit classes for land units as defined in the unit_class table in main.pack? Additionally, if you look at LAND_UNIT_MAP entry 0, you'll see that it's for the localization unit_regiment_names_localisation_lookup_unit_name_euro_artillery_units_fixed_001, which is the localization pointer for the first entry in the unit_class table, as defined in the unit_regiment_names table.

    The question I have is: how are the unit classes tied to the LAND_UNIT_MAP entries? That is, how does it know that 0 means fixed_artillery? Is it only the order that the entries are in the unit_class table, or is there another table I'm missing somewhere (or another entry in the startpos) that ties them together?
    Every day takes figuring out all over again how to live.

  14. #14

    Default Re: Creating Own Regiment Names

    you know you can change the "1st regiment of foot" thing in game!? right, just open the unit card by right clicking on it and where it says that click the box delete the text and type what you want
    I will either find a way, or make one
    -Hannibal Barca

  15. #15
    Irishguy11's Avatar Civis
    Join Date
    Jun 2010
    Location
    Telina, Gladstone, QLD, Australia
    Posts
    125

    Default Re: Creating Own Regiment Names

    Quote Originally Posted by King of Carthage View Post
    you know you can change the "1st regiment of foot" thing in game!? right, just open the unit card by right clicking on it and where it says that click the box delete the text and type what you want
    Yes, but for EVERY unit in-game, that can get rather boring. I once played as Britain in Europa Universalis 3 and renamed all of my ships. By that time, I became bored and just quit the game!
    Mod in progress: Knights of the Black Diamond (sp + ETW)
    Danzig mod (europa universalis)

    Walk into Mordor? I can riverdance into Mordor!
    (well, it was suicide anyway!)

Posting Permissions

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