Results 1 to 14 of 14

Thread: Need Help With Mounted Unit Crash

Hybrid View

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

    Default Need Help With Mounted Unit Crash

    Hello. I was hoping I could get a little help with putting mounted units in the game. Every time I try, it crashes on start up. Here is what I have done. I hope one of you can identify what I am doing wrong!

    First I put the .cas file in model_unit and the .tgs.dds file in the textures folder

    then in text/export_units

    ¬----------------

    {greek_hippeis} Greek Hippeis

    {greek_hippeis_descr}
    Can Form Wedge\n\nGreek cavalry are fast moving horsemen armed with spears for maximum impact in a charge. They are not heavily armoured, and do not have shields for protection, relying instead on the old maxim of 'speed is armour' for protection. As a result, they are best used as a hit-and-run force, rather than as soldiers who can indulge in hand-to-hand combat. That said, they are excellent for breaking up skirmishers, attacking lighter infantry such as missile troops and pursuing already broken enemies to prevent them rallying and rejoining a battle.

    {greek_hippeis_descr_short}
    Greek cavalry are fast moving horsemen armed with spears for maximum impact in a charge.

    ¬----------------
    in Data/export_descr_unit_enums

    greek_hippeis
    greek_hippeis_descr
    greek_hippeis_descr_short
    Data/export_decr_unit

    type greek hippeis
    dictionary greek_hippeis ; Greek Hippeis
    category cavalry
    class light
    voice_type Medium_1
    soldier greek_hippeis, 27, 0, 1
    mount medium horse
    mount_effect elephant -8, camel -4
    attributes sea_faring, hide_forest
    formation 1.5, 4, 3, 6, 4, square, wedge
    stat_health 1, 0
    stat_pri 6, 5, no, 0, 0, melee, simple, piercing, spear, 25 ,1
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
    stat_sec_attr no
    stat_pri_armour 3, 5, 0, leather
    stat_sec_armour 0, 0, flesh
    stat_heat 1
    stat_ground 0, 0, -6, 0
    stat_mental 4, normal, trained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 330, 120, 40, 50, 330
    ownership greek_cities
    Date/descr_model_battle

    type greek_hippeis
    skeleton fs_hc_spearman ; combat spear
    indiv_range 40
    texture greek_cities, data/models_unit/textures/unit_greek_hippeis.tga
    model_flexi data/models_unit/greek_hippeis.cas, 15
    model_flexi data/models_unit/greek_hippeis.cas, 30
    model_flexi data/models_unit/greek_hippeis.cas, 40
    model_flexi data/models_unit/greek_hippeis.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_hippeis_sprite.scr
    model_tri 400, 0.5f, 0.5f, 0.5f
    sprite_script

    greek_hippeis greek_cities medium horse

    this has worked with all infantry units. It just will not work for cavalry. I'm stumped! Hope one of you can figure it out!

  2. #2
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Need Help With Mounted Unit Crash

    Moved to the Text Editing and Scripting Forum in the Rome Workshop
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  3. #3

    Default Re: Need Help With Mounted Unit Crash

    Do you get any messages when it crashes? There is the possibility that you`ve reached the limit for either EDU or more likely DMB. You can have no more than 500 entries in EDU and 255 in DMB.

  4. #4

    Default Re: Need Help With Mounted Unit Crash

    Quote Originally Posted by florin80 View Post
    Do you get any messages when it crashes? There is the possibility that you`ve reached the limit for either EDU or more likely DMB. You can have no more than 500 entries in EDU and 255 in DMB.
    I'll check, but I think I'm good. I'll get back to you after counting.

  5. #5

    Default Re: Need Help With Mounted Unit Crash

    I think that may be the problem. I take it there is no way to change this?

  6. #6

    Default Re: Need Help With Mounted Unit Crash

    No, that`s the hardcoded limit for RTW and BI. Alexander has a higher limit though(more than 300 slots in DMB).

    If you`ve reached it you need to delete something in order to implement a new unit. Which isn`t that hard to do actually. Some of the entries in vanilla aren`t used iirc. And it may be the case for some mods too. RTR 6 had a few existing entries that were not in use for example.
    Also, some of the peasants that are used for the city view can be deleted and replaced in descr_lbc_db with other units. You will see centurions, generals and soldiers running around cheerfully in the city view mod, but it`s a small price to pay if you want to add another fighting unit.

    EDIT: in vanilla RTW the DMB entry east_musician is not used so you can delete it and implement your cavalry if what you`re modding is vanilla. Same thing with east_heavy_musician.
    Last edited by florin80; November 19, 2008 at 04:07 PM.

  7. #7

    Default Re: Need Help With Mounted Unit Crash

    Gah, everything looks fine... Are you using -show_err?

    EDIT: Beaten to it...
    Last edited by Aradan; November 18, 2008 at 03:19 PM.

  8. #8

    Default

    I'll see if that works..



    That was it! It worked like a charm! Do you know of any other units in DMB that can be removed?
    Last edited by Aradan; November 19, 2008 at 05:34 PM.

  9. #9

    Default Re: Need Help With Mounted Unit Crash

    elephant_indian is used in descr_mount, but no unit actually uses it in EDU. Removing it would imply removing both the DMB and descr_mount entries and you`d also need to remove it from some sound text files or it will crash the game. If you have the -show_err command activated you`ll be told what those files are and then you can do a search in there for the descr_mount title(elephant indian) and remove that.
    elephant_oliphant - the entry for the cheat unit/easter egg. Removing it would require the same steps as above and you`d need to remove the EDU entry(cheat oliphants) too.

  10. #10

    Default Re: Need Help With Mounted Unit Crash

    Quote Originally Posted by florin80 View Post
    elephant_indian is used in descr_mount, but no unit actually uses it in EDU. Removing it would imply removing both the DMB and descr_mount entries and you`d also need to remove it from some sound text files or it will crash the game. If you have the -show_err command activated you`ll be told what those files are and then you can do a search in there for the descr_mount title(elephant indian) and remove that.
    elephant_oliphant - the entry for the cheat unit/easter egg. Removing it would require the same steps as above and you`d need to remove the EDU entry(cheat oliphants) too.
    Can I also remove the forest elephant and all those animals like deer and birds that don't do anything?

  11. #11

    Default Re: Need Help With Mounted Unit Crash

    The forest elephant is in use. It`s the small elephant with no tower. To see if a mount is in use you need to do a search of the DMB entry title in descr_mount. And then for the title of the descr_mount title in EDU. In this case:
    in DMB the entry is elephant_forest
    in descr_mount is elephant forest
    and in EDU it is used by the carthaginians and seleucids. For example:
    Code:
    type             greek elephant small
    dictionary       greek_elephant_small      ; Elephants
    category         cavalry
    class            heavy
    voice_type       Light_1
    soldier          greek_elephant_archer, 6, 6, 1
    mount            elephant forest
    mount_effect     horse +4, chariot +8, camel +4
    attributes       sea_faring, can_run_amok, frighten_foot, frighten_mounted
    formation        7, 9, 13,13, 1, square
    stat_health      1, 10
    stat_pri         0, 0, no, 0, 0, no, no, no, none, 25 ,1
    stat_pri_attr    no
    stat_sec         3, 7, no, 0, 0, melee, other, blunt, none, 25 ,1
    stat_sec_attr    area, ap, launching
    stat_pri_armour  0, 3, 0, flesh
    stat_sec_armour  10, 2, flesh
    stat_heat        -1
    stat_ground      0, 1, -6, -1
    stat_mental      4, normal, trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        2, 1320, 270, 140, 200, 1320
    ownership        seleucid
    The birds and deers are commented out. You see those ; at the start of each line? They make the engine not read anything that follows so it`s as if they`d be deleted already. You can remove them completely of course, but the point is you`ll not gain a free slot.

  12. #12
    Halie Satanus's Avatar Emperor of ice cream
    Join Date
    Nov 2005
    Location
    London
    Posts
    19,971
    Blog Entries
    1

    Default Re: Need Help With Mounted Unit Crash

    type greek_hippeis
    skeleton fs_hc_spearman ; combat spear
    indiv_range 40
    texture greek_cities, data/models_unit/textures/unit_greek_hippeis.tga
    model_flexi data/models_unit/greek_hippeis.cas, 15
    model_flexi data/models_unit/greek_hippeis.cas, 30
    model_flexi data/models_unit/greek_hippeis.cas, 40
    model_flexi data/models_unit/greek_hippeis.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_hippeis_sprite.scr
    model_tri 400, 0.5f, 0.5f, 0.5f
    Should be spr

  13. #13

    Default Re: Need Help With Mounted Unit Crash

    the .scr is how the tutorial says to do it, and it always works. I think that is how the new files are created.

  14. #14

    Default Re: Need Help With Mounted Unit Crash

    No, it must be a typo. It should be .spr.

Posting Permissions

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