Page 3 of 11 FirstFirst 1234567891011 LastLast
Results 41 to 60 of 220

Thread: A Beginner's Guide to the Export_Descr_Unit

Hybrid View

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

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    ok.i understand now.next i will learning about Export_Descr_Buildings.thank you

  2. #2
    Mik55's Avatar Laetus
    Join Date
    Jul 2009
    Location
    London On
    Posts
    9

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    hey mythic, i think i misunderstood the officer line somehow. I followed what it said so it looks like this
    officer Kurdish Javelinmen < or whatever their called i copied the name
    However, when i start a battle using any unit that contains an officer the game crashes. Can you clarify what needs to be done?

  3. #3

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    I don't know that much about scripting...so I don't even know if this is possible, hence it may be a goofy question. I see the "stat_heat" attribute. Is there a way to simulate the effects of cold? Maybe with negative values? For instance, take Russia: few armies could march and fight through these lands in the winter because of the cold. I'm not proposing to make it impossible, but just as heat as its effect, so does cold.
    I don't always talk in tautologies, but when I do, I talk in tautologies.




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

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

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Technically, yes, but not in the way you're suggesting. The modifications you'd need to make are on the map and climate files. The stat_heat line affects fatigue based on the 'heat value' for a climate. To determine the heat value for each climate, open up descr_climates.txt and under each one there will be something like:
    Code:
    climate sandy_desert
    {
    	colour	102 45 145
    	heat	4
    That heat value is what the EDU line is checking for when it applies what is presumably a modifier, though I'm unaware of the exact numbers. You'd simply want to change the climates which are applied in russia to have a high heat value. I'm not sure whether the game uses this value for any other reasons, like applying humidity to the ground textures, but it seems very, very unlikely. As such you can probably increase the heat value for a winter zone without there being any appreciable effects on the look of it.

  5. #5

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Thank you!
    I don't always talk in tautologies, but when I do, I talk in tautologies.




  6. #6

  7. #7
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    ; unit_info Info for unit info panel. Melee attack, missile attack, defence

  8. #8

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    ok, after i add "[io]file_first = true' " and check "read only" my game crashes on every start up????

  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: A Beginner's Guide to the Export_Descr_Unit

    ok, after i add "[io]file_first = true' " and check "read only" my game crashes on every start up????
    Welcome to your first crash. Apparently you made a mistake somewhere. Check your log and report the errror message (if any).










  10. #10

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Quote Originally Posted by gigantus View Post
    Welcome to your first crash. Apparently you made a mistake somewhere. Check your log and report the errror message (if any).
    would you be able and tell me where is this log? If i delete the "[io]file_first = true'" it starts just fine.

  11. #11
    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: A Beginner's Guide to the Export_Descr_Unit

    [io]file_first = true
    This entry enables your changes to be added to the game. If you remove it, the game will only use the original files.
    Your log is in root directory of the game: system.log.txt. It opens with notepad.










  12. #12

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Whats the easiest way to change the size of cavalry units from 30 and 10 back to 40 and whatever bodyguards used to be (i think 20)? I thought it would be an easy change of the number in the "soldier" line (60, 48, etc.) but what I am doing is crashing the game on startup everytime. I've tried using Word and Wordpad and saving as .txt but something tells me it changes the format of the file anyways and even the text when its copied and pasted into notepad before saved.

    Do I have to use notepad to make all the changes which is not as easy but not terribly difficult? Or is it just a matter of changing a few at a time because I was able to change one or two of the units at one point and that worked out, which is another reason to doubt i have to change other files in edition to Export_Descr_Unit?

  13. #13

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Nevermind, I think I have it. Notepad all the way for any future readers, including myself if I forget. I didn't happen to catch that notepad had a replace feature which I had thought was only in word and wordpad. Oops .

  14. #14

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Congratulations on the topic, I play RTW and not M2TW but I must say that the tutorial is good for that game also as the file is almost the same, I have to understand in RTW if a unit can have two melee weapons at the same time but better not to deepen here because it would be OT.

  15. #15
    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: A Beginner's Guide to the Export_Descr_Unit

    Word and Wordpad
    wrong editors because of formatting. Use notepad or notepad++










  16. #16
    The Border Reiver's Avatar Artifex
    Patrician

    Join Date
    Feb 2006
    Location
    Australia
    Posts
    3,703

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    I didn't happen to catch that notepad had a replace feature which I had thought was only in word and wordpad. Oops
    Thank goodness for ctrl H. Very thorough tutorial, this has saved me a lot of trial, error, testing and retesting!

  17. #17

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Hey everyone, first of all great tutorial!

    I've been having trouble getting my edits of the EDU file to translate into the actual game. I've added the [io]
    file_first=true to the prefrence file and changed it back to read only and still no changes! Does anyone have an idea of what could be causing it?

  18. #18

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    Great tutorial but I would like to add something about the 'ship' line. A 'light warship' cannot sail in deep water but a 'heavy warship' can. So a heavy warship (eg Carrack) can sail across the deep water to America but a light warship (eg Dhow) cannot. I have not tested the effects of 'flagship'.

    Edit I noticed a major error. You claim that the unit after the 'soldier' is how the unit looks, however that is determined entirely by the armour upgrades. This entry tells M2TW which animations to use (in this case the Swiss_Pikemen's animations). So if you replaced the Swiss_Pikemen with Javelinmen the unit would throw it's pike, rather than look like a Javelinman.
    Last edited by uanime5; January 16, 2010 at 06:19 PM.
    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)

  19. #19

    Default Re: A Beginner's Guide to the Export_Descr_Unit

    First of all great tut! But I have a question.
    I dont know if this belongs here or in TATW as a new thread but I wanted to put Aragorn, Legolas, and Gimli as one unit.
    In the officer line in edu for TATW I put:

    officer aragorn
    officer legolas
    officer gimli

    I wanted to know that this format is correct. Also will the unit be given a model at the start of the battle? Here is all the code:
    Code:
     
    type             Three_Hunters_Bodyguard
    dictionary       Gondor_Infantry_Bdg      ; Gondor Infantry Bodyguard, Exceptional
    category         infantry 
    class            heavy
    voice_type       Heavy
    banner faction   main_infantry
    banner holy      crusade
    soldier          Dismounted_Chivalric_Knights, 16, 0, 1.275
    officer          aragorn
    officer          legolas
    officer          gimli
    attributes       sea_faring, hide_forest, very_hardy, can_withdraw, no_custom, general_unit 
    formation        1.2, 0, 2.4, 2.4, 4, square
    stat_health      1, 3
    stat_pri         9, 4, no, 0, 0, melee, melee_blade, piercing, sword, 0, 1
    stat_pri_attr    no
    stat_sec         0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr    no
    stat_pri_armour  12, 9, 5, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        5
    stat_ground      -1, -2, 0, -3
    stat_mental      17, disciplined, highly_trained, lock_morale
    stat_charge_dist 6
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 650, 200, 75, 75, 650, 4, 100
    armour_ug_levels 4, 5
    armour_ug_models gondor_infantry
    ownership        sicily
    era 0            sicily
    era 1            sicily
    era 2            sicily
    recruit_priority_offset    65
    I have tested this with the code battle_model aragorn, battle_model legolas, battle_model gimli. Here is what I put in my historical battle as a test:
    faction sicily
    Code:
    character Aragorn, named character, male, age 30, x 242, y 127, battle_model aragorn, battle_model legolas, battle_model gimli
    army
    unit  Three_Hunters_Bodyguard    soldiers 50 exp 0 armour 0 weapon_lvl 0
    unit  Mounted Rangers    soldiers 10 exp 0 armour 0 weapon_lvl 0
    unit  Three_Hunters_Bodyguard    soldiers 10 exp 0 armour 0 weapon_lvl 0
    I know for a fact that alone battle_model aragorn will work (its tested). When the battle starts there are three to four invisible models with shadows on the ground... I really want to be able to do this so as to save space for my other historical battle (max 8 armies I had about 10).
    Last edited by drogoth232; February 10, 2010 at 07:21 PM.

  20. #20
    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: A Beginner's Guide to the Export_Descr_Unit

    - You can add those three officers into the EDU (provided they exist in the modelDB)
    - You can only assign one battle model at a time for a character. This will be for the general and NOT for the officers!










Posting Permissions

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