Page 1 of 3 123 LastLast
Results 1 to 20 of 55

Thread: Legion-Names for MTW2

  1. #1
    Amon Amarth 930's Avatar Artifex
    Join Date
    Nov 2008
    Location
    Germany, North-Rhine Westphalia
    Posts
    466

    Default Legion-Names for MTW2

    This is my English translation of my German Tutorial, which you can read for example there:
    http://totalwar-forum.de/wbb/index.p...&threadID=2605

    The Legion-Names are a nice feature, which someone know from Rome BI. Moreover its easy to attach.
    What Legion-Names in fact are: This Feature makes every Unit to a specific, identifiable troop, which you are able to love. (If a unit from the early game follow you until America, you do not want to lose this unit.

    How it looks in the game:
    Spoiler Alert, click show to read: 


    Required Files:
    ----------------------------------
    descr_regions.txt ---> ([...]\Medieval II Total War\mods\[...]\data\world\maps\base)
    export_descr_unit.txt ---> ([...]\Medieval II Total War\mods\[...]\data)
    Modfolder, own Mod, Retrofit or unpacked Vanilla
    ----------------------------------

    First you open descr_regions.txt and look at a normal Region-entry in this file:

    Code:
    Inverness_Province
        Inverness
        scotland
        English_Rebels
        20 25 225
        atlantic, explorers_guild
        5
        2
        religions { catholic 90 orthodox 0 islam 0 pagan 5 heretic 5 }
    There you can determine the specific Region-Description of the Legion-Name, you have only to add this line under the Province-Name:

    Code:
    Inverness_Province
        legion: Inverness
        Inverness
        scotland
        English_Rebels
        20 25 225
        atlantic, explorers_guild
        5
        2
        religions { catholic 90 orthodox 0 islam 0 pagan 5 heretic 5 }
    The Name after "legion" must be in the imperial_campaign_regions_and_settlement_names.txt.
    You can use the Settlement-Name and it would be wise, but you can also use everything else if it was in this file.
    This line must/could be done for every region!
    Don't forgot to delete the map.rwm, which must be delete after every change in the base-folder.

    After that you open export_descr_unit. Here you must determine every unit, which should have a legion-name.
    Mercenaries can have a specific name, too. By ships it wasn't possible!
    I recommend that you shouldn't add legion-names to ships, mercenaries and the bodyguard unit.

    However, following you must add to the "attributes" of a unit:
    legionary_name

    How it should look later:

    Code:
    type         Knights of Tripoli
    dictionary   Knights_of_Tripoli  ; Knights of Tripoli
    category     cavalry
    class        heavy
    voice_type   Heavy
    banner faction   main_cavalry
    banner holy  crusade_cavalry
    soldier      Knight_of_Tripoli, 37, 0, 1
    mount        barded horse
    mount_effect elephant -4, camel -4
    attributes   sea_faring, hide_forest, can_withdraw, legionary_name, can_formed_charge, knight
    formation    2, 4.4, 3, 6, 3, square, wedge
    stat_health  1, 0
    stat_pri     12, 7, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1
    stat_pri_attrno
    stat_sec     12, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    stat_sec_attrno
    stat_pri_armour  5, 5, 7, metal
    stat_sec_armour  0, 0, flesh
    stat_heat    6
    stat_ground  0, -2, -10, 2
    stat_mental  12, impetuous, highly_trained
    stat_charge_dist 45
    stat_fire_delay  0
    stat_food    60, 300
    stat_cost    1, 970, 285, 85, 205, 970, 4, 290
    armour_ug_levels 2
    armour_ug_models Knight_of_Tripoli
    ownership    jerusalem
    recruit_priority_offset0
    By the Way: The specific name (Legion) is Hardcoded, that means that it isn't possible to change it, except by changing the .exe which is illegal.

    Kind regards and have fun with this nice Feature!
    Last edited by Amon Amarth 930; September 07, 2010 at 10:58 AM.

    Third Age Member (Fellowship-Scripter)
    Under the Patronage of MasterBigAb

  2. #2
    Stephan's Avatar Campidoctor
    Join Date
    Jun 2008
    Location
    Wien
    Posts
    1,575

    Default Re: Legion-Names for MTW2

    thx for sharing, a very cool feature

    Yes, I know that Ishtar is spelled wrong

  3. #3

    Icon1 Re: Legion-Names for MTW2

    Great tutorial Amon Amarth 93. Thanks for translating it.

  4. #4
    Amon Amarth 930's Avatar Artifex
    Join Date
    Nov 2008
    Location
    Germany, North-Rhine Westphalia
    Posts
    466

    Default Re: Legion-Names for MTW2

    Thank you guy´s
    Maybe, when i have time, i will translate some other Tutorials which i have already written in german.

    Third Age Member (Fellowship-Scripter)
    Under the Patronage of MasterBigAb

  5. #5
    IZob's Avatar Citizen
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    9,829

    Default Re: Legion-Names for MTW2

    The Name after "legion" must be in the imperial_campaign_regions_and_settlement_names.txt.
    ...
    This line must/could be done for every region!
    Don't forgot to delete the map.rwm, which must be delete after every change in the base-folder.
    Sorry, I am a bit confused. Dose every region need its own Legion name? Or can you give Legion names to some of the regions? Thankyou, also good of you to shair this.
    Contact me on Steam: steamcommunity.com/id/IZob/ or send a PM.

  6. #6
    Amon Amarth 930's Avatar Artifex
    Join Date
    Nov 2008
    Location
    Germany, North-Rhine Westphalia
    Posts
    466

    Default Re: Legion-Names for MTW2

    No, not every region need this Line, you mustn´t add this for every region. When you recruit a Unit in a region where you don´t add this line, this unit won´t have a Legio-Name.

    Third Age Member (Fellowship-Scripter)
    Under the Patronage of MasterBigAb

  7. #7

    Default Re: Legion-Names for MTW2

    Quote Originally Posted by Amon Amarth 93 View Post
    No, not every region need this Line, you mustn´t add this for every region. When you recruit a Unit in a region where you don´t add this line, this unit won´t have a Legio-Name.
    Amon Amarth do you mean we "mustn't add this line to every region" or we "don't need to add this line to every region"?

    "mustn't add this line to every region" means that if every region has this line M2TW won't work.

    "don't need to add this line to every region" means that M2TW will work even if every region doesn't have this line.
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  8. #8
    Amon Amarth 930's Avatar Artifex
    Join Date
    Nov 2008
    Location
    Germany, North-Rhine Westphalia
    Posts
    466

    Default Re: Legion-Names for MTW2

    "don't need to add this line to every region" means that M2TW will work even if every region doesn't have this line.
    That´s what i mean.

    It´s horrible (for me ^^) to explain Modding-Stuff in english and not in my native language. :S

    Third Age Member (Fellowship-Scripter)
    Under the Patronage of MasterBigAb

  9. #9
    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,679
    Blog Entries
    35

    Default Re: Legion-Names for MTW2

    Some phrases, words that might come handy in the next translation:
    nicht noetig = not required, not necessary
    wichtig = important
    grundsaetzlich noetig = essential
    wahlweise = optional (kann gemacht werden, ist aber nicht noetig)










  10. #10

    Default Re: Legion-Names for MTW2

    I think it is possible to modify the word "Legio" by editing the main exe. The word itself is easy to change since it does appear only one time in the file. This should be tested.


    Creator of Geomod: a tool for M2TW mapping.

  11. #11
    Amon Amarth 930's Avatar Artifex
    Join Date
    Nov 2008
    Location
    Germany, North-Rhine Westphalia
    Posts
    466

    Default Re: Legion-Names for MTW2

    Thank you gigantus...

    @Octavius:

    Yes, it is possible.
    By the Way: The specific name (Legion) is Hardcoded, that means that it isn't possible to change it, except by changing the .exe which is illegal.
    And thats the Problem.

    Third Age Member (Fellowship-Scripter)
    Under the Patronage of MasterBigAb

  12. #12

    Default Re: Legion-Names for MTW2

    Well, modifying any file of a proprietary software and sharing them is illegal, but modding is tolerated and even encouraged. Why would it be different with that particular file? This is not hacking. If I would share a software able edit this only one word, then this would be just modding in my sense. Moreover, there are ETW and NTW now, I don't think Sega or the Creative Assembly would care anything about such a little mod on an "old" game.
    Last edited by Octavius; May 06, 2010 at 01:47 PM.


    Creator of Geomod: a tool for M2TW mapping.

  13. #13
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Legion-Names for MTW2

    I believe gigantus contacted CA regarding the possibility of modifying the EXE and was told not to do so. The problem with the EXE in particular is it's the file which crackers need to distribute in order to provide a pirated game. That's also why we disallow the distribution of unmodified files, since unmodded files + a modded EXE would allow anyone to play the game assuming they could fabricate a key.

    One high-level possibility is modifying the I/O stream of the EXE process in main memory and changing the call to that string to something else that way. This is different than directly modifying the EXE because it only works based on the assumption the user has a working legal installation with an unmodified EXE. Problem is the programming skills needed to pull that off don't really fit the necessity of something like changing the legion name, though such a tool would be modular and useful for many other things if certain calls were deciphered.

    I'm guessing they wouldn't demand such a tool be removed because it's not dissimilar to the file converters of their proprietary licensed file formats. For an example of a tool which works like this, google for "OBSE" which acts on Elder Scrolls IV: Oblivion in this fashion; the source can be viewed, but it's over my head and each process behaves differently.
    Last edited by Augustus Lucifer; May 06, 2010 at 05:00 PM.

  14. #14

    Default Re: Legion-Names for MTW2

    If I don't distribute a modded EXE, but just a kind of unofficial patch that modifies the EXE, then the DVD is still needed to run the game. Moreover, the patch wouldn't work if the game is not already installed. There is therefore no risk of cracking.

    Would it still be disapproved?


    Creator of Geomod: a tool for M2TW mapping.

  15. #15
    AnthoniusII's Avatar Μέγαc Δομέστικοc
    Join Date
    Feb 2007
    Location
    Thessalonike Greece
    Posts
    18,974

    Default Re: Legion-Names for MTW2

    No matter if the word Legion is hardcoded...
    Byzantines were Romans enough to use that unit description!

    A very nice feature indeed when spesific and famous regions could have their "own" unit names!
    A question..can we name the "legion" as we please or only with the province's name?
    Can we name it "Vandum ton Anatolicon" for example?
    If yes what we must do?
    Last edited by AnthoniusII; May 07, 2010 at 07:24 AM.
    TGC in order to continue its development seak one or more desicated scripters to put our campaign scripts mess to an order plus to create new events and create the finall missing factions recruitment system. In return TGC will give permision to those that will help to use its material stepe by step. The result will be a fully released TGC plus many mods that will benefit TGC's material.
    Despite the mod is dead does not mean that anyone can use its material
    read this to avoid misunderstandings.

    IWTE tool master and world txt one like this, needed inorder to release TGC 1.0 official to help TWC to survive.
    Adding MARKA HORSES in your mod and create new varietions of them. Tutorial RESTORED.


  16. #16
    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,679
    Blog Entries
    35

    Default Re: Legion-Names for MTW2

    The Name after "legion" must be in the imperial_campaign_regions_and_settlement_names.txt.
    descr_regions
    Inverness_Province
    legion: Vandum_ton_Anatolicon
    Inverness
    scotland
    English_Rebels
    20 25 225
    atlantic, explorers_guild
    5
    2
    religions { catholic 90 orthodox 0 islam 0 pagan 5 heretic 5 }
    imperial_campaign_settle....
    {Vandum_ton_Anatolicon}Vandum ton Anatolicon
    Last edited by Gigantus; May 07, 2010 at 09:04 AM.










  17. #17

    Default Re: Legion-Names for MTW2

    Geomod can manage legion names automatically too.


    Creator of Geomod: a tool for M2TW mapping.

  18. #18
    TSD's Avatar Ordinarius
    Join Date
    May 2008
    Location
    Chicago, IL
    Posts
    725

    Default Re: Legion-Names for MTW2

    Quote Originally Posted by gigantus View Post
    descr_regions

    imperial_campaign_settle....

    Ah nice. I was under the assumption it had to be the specific province in question. i.e. if I was recruiting from Inverness it had to be Inverness. This is great because ideally I would like to implement this to give a single legio name to a broad region. i.e. Gaul, Hispana, Brittania etc etc, so any army recruited in any province in said region bears the same name.

    to bad its not broken up in to regions so you cant just add a legion per region (which encompasses a group of provinces) making the modding a little less tedious, ive got alot of copying and pasting ahead of me.

    on that note, I wonder what happens if you merge to units from 2 different legions? Wonder which name would take precidence? Ha! It would be great if you could specify it to take on a new legion name like Gemina when more than unit with more than one legion name merge.

    I wish I can finally get MTW2 to a state where I can stop modding and you know, play the game. As it stands, I can get a few turns in on a campaign before something else catches my eye, some new idea pops in my head and im being nagged at in the back of my mind to go mod it to how i want it.
    Last edited by TSD; May 20, 2010 at 12:10 PM.

  19. #19
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: Legion-Names for MTW2

    Quote Originally Posted by TSD View Post
    I wish I can finally get MTW2 to a state where I can stop modding and you know, play the game.
    When you are modder, this will never happen. There always will be a "this guy shouldn't get this trait now", "this building should have three levels", "I should be able to recruit archers here".

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  20. #20
    fightermedic's Avatar Ordinarius
    Join Date
    Feb 2008
    Location
    Bavaria
    Posts
    756

    Default Re: Legion-Names for MTW2

    very usefull sir!
    + rep

Page 1 of 3 123 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
  •