Results 1 to 8 of 8

Thread: Sauron unit editing problem in DAC 4.6

  1. #1

    Icon5 Sauron unit editing problem in DAC 4.6

    I made another thread about this in the Third age sub forum, but i am posting here too in order to maximise my chances to get an answer. And besides, it's about text editing so it's fair game.

    Recently I've been editing the Mordor roster of Divide And Conquer 4.6 to my liking and I can say that I'm little displeased with the Sauron bodyguard unit.
    I am trying to alter it to be like the Massive Overhaul Submod 1.7 one (it's probably the same in vanilla TATW but i wouldnt know since I have never played it) which has a single elephant type Sauron unit.Attachment 366108
    I've made the supposedly appropriate changes in EDU and unit_models files. Everything seems to be in order, but the game crashes upon launch after I make the EDU alterations.

    Here are the changes that I've made.
    modeldb:
    Spoiler Alert, click show to read: 

    I took these form MOS 1.7 and added them to DAC 4.6

    14 elephant_crew3 1 1
    53 unit_models/_Units/EN_Lmail_Hmail/ents_crew_lod0.mesh 64000
    3
    7 mongols
    54 unit_models/_Units/EN_Lmail_Hmail/textures/ent.texture
    61 unit_models/_Units/EN_Lmail_Hmail/textures/ent_normal.texture
    46 unit_sprites/sicily_eeents_infantry_sprite.spr
    5 slave
    54 unit_models/_Units/EN_Lmail_Hmail/textures/ent.texture
    61 unit_models/_Units/EN_Lmail_Hmail/textures/ent_normal.texture
    46 unit_sprites/sicily_eeents_infantry_sprite.spr
    4 merc
    54 unit_models/_Units/EN_Lmail_Hmail/textures/ent.texture
    61 unit_models/_Units/EN_Lmail_Hmail/textures/ent_normal.texture
    46 unit_sprites/sicily_eeents_infantry_sprite.spr
    3
    7 mongols
    55 unit_models/_Units/EN_Lmail_Hmail/textures/ent2.texture
    62 unit_models/_Units/EN_Lmail_Hmail/textures/ent2_normal.texture 0
    5 slave
    55 unit_models/_Units/EN_Lmail_Hmail/textures/ent2.texture
    62 unit_models/_Units/EN_Lmail_Hmail/textures/ent2_normal.texture 0
    4 merc
    55 unit_models/_Units/EN_Lmail_Hmail/textures/ent2.texture
    62 unit_models/_Units/EN_Lmail_Hmail/textures/ent2_normal.texture 0
    1
    8 Elephant
    18 MTW2_Elephant_Crew 0
    1
    21 MTW2_Arquebus_Primary
    0 -1 0 0 0 0 0 0
    14 elephant_crew4
    1 1
    50 unit_models/_Units/EN_Lmail_Hmail/sauron_lod0.mesh 64000
    1
    5 turks
    57 unit_models/_Units/EN_Lmail_Hmail/textures/sauron.texture
    64 unit_models/_Units/EN_Lmail_Hmail/textures/sauron_normal.texture
    46 unit_sprites/sicily_eeents_infantry_sprite.spr
    1
    5 turks
    58 unit_models/_Units/EN_Lmail_Hmail/textures/sauron2.texture
    65 unit_models/_Units/EN_Lmail_Hmail/textures/sauron2_normal.texture 0
    1
    8 Elephant
    18 MTW2_Elephant_Crew 0
    1
    21 MTW2_Arquebus_Primary
    0 -1 0 0 0 0 0 0
    12 mount_sauron
    1 1
    50 unit_models/_Units/EN_Lmail_Hmail/sauron_lod0.mesh 64000
    1
    7 england
    57 unit_models/_Units/EN_Lmail_Hmail/textures/sauron.texture
    64 unit_models/_Units/EN_Lmail_Hmail/textures/sauron_normal.texture
    46 unit_sprites/sicily_eeents_infantry_sprite.spr
    1
    7 england
    58 unit_models/_Units/EN_Lmail_Hmail/textures/sauron2.texture
    65 unit_models/_Units/EN_Lmail_Hmail/textures/sauron2_normal.texture 0
    1
    8 elephant
    18 fs_sauron_elephant 0
    2
    17 MTW2_Mace_Primary
    14 fs_test_shield 0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002


    I also noticed that "unit_sprites/sicily_eeents_infantry_sprite.spr" is missing in both mods but it seems to work properly without it in MOS 1.7.

    EDU:
    Spoiler Alert, click show to read: 

    MOS 1.7 (mod I'm taking from)
    type Sauron Elephants2
    dictionary Sauron_Elephants2 ; 1 Sauron - Custom Battles
    category cavalry
    class heavy
    voice_type Heavy
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Elephant_Crew4, 6, 1, 1
    mounted_engine elephant_serpentine
    mount sauron
    attributes very_hardy, frighten_foot, frighten_mounted
    formation 3, 3, 6, 6, 1, horde
    stat_health 1, 12
    stat_pri 0, 0, no, 0, 0, no, no, no, none, 0, 1
    stat_pri_attr no
    stat_sec 50, 25, no, 0, 0, melee, melee_simple, piercing, sword, 0, 1
    stat_sec_attr launching, bp, ap, area
    stat_pri_armour 5, 5, 5, metal
    stat_sec_armour 25, 25, metal
    stat_heat 0
    stat_ground 0, 0, -1, -1
    stat_mental 18, impetuous, highly_trained, lock_morale
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 3500, 0, 500, 500, 3500, 1, 100000
    armour_ug_levels 0
    armour_ug_models Elephant_Crew3
    ownership england
    era 0 england
    era 1 england
    era 2 england

    DAC 4.6 (mod I'm trying to edit)
    type Saurondictionary Sauron
    category infantry
    class heavy
    voice_type General
    accent German
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier elephant_crew4, 6, 1, 1
    mount sauron
    attributes very_hardy, frighten_foot, frighten_mounted, command
    formation 3, 3, 6, 6, 1, square
    stat_health 1, 12
    stat_pri 50, 25, no, 0, 0, melee, melee_blade, blunt, mace, 0, 1
    stat_pri_attr ap, launching
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr no
    stat_pri_armour 60, 12, 8, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 5, 5, 5, 5
    stat_mental 24, disciplined, highly_trained, lock_morale
    stat_charge_dist 16
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 2500, 0, 125, 125, 1200, 3, 120
    armour_ug_levels 0
    armour_ug_models elephant_crew3
    ownership england
    era 0 england
    era 1 england
    era 2 england


    Am I missing anything, or is it just not possible to add that unit in DAC 4.6?
    If anyone can give me some advice or help me with this, I would be very grateful.

    Thank you for reading and have a great day!

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,095
    Blog Entries
    35

    Default Re: Sauron unit editing problem in DAC 4.6

    I am fairly sure these parts are custom, too:

    mounted_engine elephant_serpentine (descr_mounted_engines)
    mount sauron (descr_mounts)

    Note that 'soldier' and 'armour_ug_models' use different models. Check if the animations of either are custom, too.
    And DaC might have disabled sprites, so better put some sprites in.










  3. #3

    Default Re: Sauron unit editing problem in DAC 4.6

    Thanks for the reply Gigantus!

    In (descr_mount) mount sauron was already there.
    I checked the animations of the soldier models using "M2TW Animation Tool" and they seemed to be the same as they are the same size in KB.
    I made some new sprites using your much appreciated tutorial and replaced them with the existing ones in (unit_spites).

    Despite all of this I still get a crash.
    Idk what else to do.

  4. #4
    bitterhowl's Avatar Campidoctor
    Join Date
    Feb 2011
    Location
    Russian Feodality
    Posts
    1,695

    Default Re: Sauron unit editing problem in DAC 4.6

    I'd look at stat_pri lines and compare them. Why did you change it for your mod?

    My sister, do you still recall the blue Hasan and Khalkhin-Gol?
    Russian warship is winning. Proofs needed? Go find yourself!

  5. #5

    Default Re: Sauron unit editing problem in DAC 4.6

    That is a very good point Bitterhowl. This happened because I didn't copy paste the entire unit entry, only all the parts that differ. Unfortunately, due to my lack of attention, I completely missed this detail.
    Thanks a lot for taking the time to carefully view my post and point out this anomaly!

    I'll post an update soon.

  6. #6

    Default Re: Sauron unit editing problem in DAC 4.6

    I finally got this to work! In the decr_mount.txt file of DAC, the sauron entry name is "creature_sauron".
    I simply made the change in EDU
    from:
    mount sauron
    to:
    mount creature_sauron

    I got mislead from MOS where it's simply "sauron", and assumed it would be the same in DAC.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,095
    Blog Entries
    35

    Default Re: Sauron unit editing problem in DAC 4.6

    The devil is always in the details Glad you found him.










  8. #8

    Default Re: Sauron unit editing problem in DAC 4.6


Posting Permissions

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