Results 1 to 10 of 10

Thread: descr_model_battle.txt has too many entries..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Civis
    Join Date
    Nov 2004
    Location
    Denmark
    Posts
    161

    Default descr_model_battle.txt has too many entries..

    Hi Guys,


    I just spent 2 long hours adding 10 new units, I run the game and it crashes saying there are too many entries in the descr_model_battle.txt.

    I have been looking through the file and came across these

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;
    ; FEMALE PEASANTS actually have no weapons
    ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


    type barb_female_peasant
    skeleton fs_dagger
    indiv_range 40
    ;model_flexi_m data/models_unit/barb_female_peasant_300.cas, 8
    model_flexi data/models_unit/barb_female_peasant_300.cas, 15
    model_flexi data/models_unit/barb_female_peasant_200.cas, 30
    model_flexi data/models_unit/barb_female_peasant_100.cas, 40
    model_flexi data/models_unit/barb_female_peasant_70.cas, max
    model_sprite 60.0, data/sprites/barb_female_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f


    type east_female_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi data/models_unit/east_female_peasant_300.cas, 8
    model_flexi data/models_unit/east_female_peasant_300.cas, 15
    model_flexi data/models_unit/east_female_peasant_200.cas, 30
    model_flexi data/models_unit/east_female_peasant_100.cas, 40
    model_flexi data/models_unit/east_female_peasant_70.cas, max
    model_sprite 60.0, data/sprites/east_female_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f


    type egypt_female_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi data/models_unit/egypt_female_peasant_300.cas, 8
    model_flexi data/models_unit/egypt_female_peasant_300.cas, 15
    model_flexi data/models_unit/egypt_female_peasant_200.cas, 30
    model_flexi data/models_unit/egypt_female_peasant_100.cas, 40
    model_flexi data/models_unit/egypt_female_peasant_70.cas, max
    model_sprite 60.0, data/sprites/egypt_female_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f


    type greek_female_peasant
    skeleton fs_dagger,
    indiv_range 40
    model_flexi_m data/models_unit/greek_female_peasant_300.cas, 8
    model_flexi_m data/models_unit/greek_female_peasant_300.cas, 15
    model_flexi data/models_unit/greek_female_peasant_200.cas, 30
    model_flexi data/models_unit/greek_female_peasant_100.cas, 40
    model_flexi data/models_unit/greek_female_peasant_70.cas, max
    model_sprite 60.0, data/sprites/greek_female_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f


    type roman_female_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi_m data/models_unit/roman_female_peasant_300.cas, 8
    model_flexi_m data/models_unit/roman_female_peasant_300.cas, 15
    model_flexi data/models_unit/roman_female_peasant_200.cas, 30
    model_flexi data/models_unit/roman_female_peasant_100.cas, 40
    model_flexi data/models_unit/roman_female_peasant_70.cas, max
    model_sprite 60.0, data/sprites/roman_female_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    type barb_male_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi_m data/models_unit/barb_male_peasant_high.cas, 8
    model_flexi_m data/models_unit/barb_male_peasant_med.cas, 15
    model_flexi data/models_unit/barb_male_peasant_low.cas, 30
    model_flexi data/models_unit/barb_male_peasant_lowest.cas, max
    model_sprite 60.0, data/sprites/barb_male_peasant_sprite.spr
    ;model_sprite 60.0, data/sprites/barb_male_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    type eastern_male_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi_m data/models_unit/eastern_male_peasant_high.cas, 8
    model_flexi_m data/models_unit/eastern_male_peasant_med.cas, 15
    model_flexi data/models_unit/eastern_male_peasant_low.cas, 30
    model_flexi data/models_unit/eastern_male_peasant_lowest.cas, max
    model_sprite 60.0, data/sprites/eastern_male_peasant_sprite.spr
    ;model_sprite 60.0, data/sprites/eastern_male_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    type egyptian_male_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi_m data/models_unit/egyptian_male_peasant_high.cas, 8
    model_flexi_m data/models_unit/egyptian_male_peasant_med.cas, 15
    model_flexi data/models_unit/egyptian_male_peasant_low.cas, 30
    model_flexi data/models_unit/egyptian_male_peasant_lowest.cas, max
    model_sprite 60.0, data/sprites/egyptian_male_peasant_sprite.spr
    ;model_sprite 60.0, data/sprites/egyptian_male_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    type roman_male_peasant
    skeleton fs_dagger
    indiv_range 40
    model_flexi_m data/models_unit/roman_male_peasant_high.cas, 8
    model_flexi_m data/models_unit/roman_male_peasant_med.cas, 15
    model_flexi data/models_unit/roman_male_peasant_low.cas, 30
    model_flexi data/models_unit/roman_male_peasant_lowest.cas, max
    model_sprite 60.0, data/sprites/roman_male_peasant_sprite.spr
    ;model_sprite 60.0, data/sprites/roman_male_peasant_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f
    Can I delete those?

    I'm playing SPQR 6,2 which doesn't have peasants in-game.


    Thanks a lot,
    Benjamin
    Last edited by Benny_DK; April 26, 2007 at 04:30 PM.

  2. #2

    Default Re: descr_model_battle.txt has too many entries..

    Well, the best way to make sure that these models are not used in-game is to open export_descr_unit.txt and look for each of the models, for instance "roman_male_peasant". If any unit is using it, you cannot remove it directly as it would give you another error.

  3. #3
    Civis
    Join Date
    Nov 2004
    Location
    Denmark
    Posts
    161

    Default Re: descr_model_battle.txt has too many entries..

    Salvor Hardin thanks a lot for the quick reply.

    Yeah, I know that. I was thinking of the button in the campaign that lets you view your city, and you can see people walk around, and they gotta have an entry, right?

    I just wanted to know what would happen if I deleted those units?


    Or what you guys do when there are no more entries?


    Thanks,
    Benjamin
    Last edited by Benny_DK; April 26, 2007 at 05:10 PM.

  4. #4

    Default Re: descr_model_battle.txt has too many entries..

    Quote Originally Posted by Benny_DK View Post
    Salvor Hardin thanks a lot for the quick reply.

    Yeah, I know that. I was thinking of the button in the campaign that lets you view your city, and you can see people walk around, and they gotta have an entry, right?

    I just wanted to know what would happen if I deleted those units?


    Or what you guys do when there are no more entries?


    Thanks,
    Benjamin
    I see. If you removed those units then you would get a CTD when trying to access the "citiy view". The best solution would be to open the file descr_lbc_db.txt, that lists the units that appear in the city view for each faction. For instance:

    Code:
    faction romans_julii
    model roman_male_peasant			 40
    model greek_female_peasant   50
    model roman_legionary_cohort_i	10
    There you could remove the peasants models and replace them with models that belong to that faction:

    Code:
    faction romans_julii
    model roman_hastati			 40
    model roman_triarii   50
    model roman_legionary_cohort_i	10
    After that, you could safely remove the peasant models from the dmb file.
    Hope this helps.

  5. #5
    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: descr_model_battle.txt has too many entries..

    Curse at the 255 model limit, and try to reuse as many models as possible for as many units as possible.
    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

  6. #6
    Tacticalwithdrawal's Avatar Ghost
    Join Date
    May 2005
    Location
    Stirling, Scotland
    Posts
    7,013

    Default Re: descr_model_battle.txt has too many entries..

    I've been struggling with this as well. The only good news is that the error checking for this is good so I've tended to just remove a unit and then allow show error to tell me where else the unit is used.

    Bit laborious but works well......
    : - It's my smilie and I'll use it if I want to......
    ______________________________________________________________

    Ave Caesar, Morituri Nolumus Mori (in Glaswegian: gae **** yrsel big man)
    ______________________________________________________________
    Child of Seleukos, Patron of Rosacrux redux, Polemides, Marcus Scaurus, CaptainCernick, Spiff and Fatsheep

  7. #7
    MasterOfNone's Avatar RTW Modder 2004-2015
    Join Date
    May 2005
    Location
    England
    Posts
    16,707

    Default Re: descr_model_battle.txt has too many entries..

    Generally speaking (if you'll excuse the pun) generals, captains, officers/standards, mounts/animals and some peasants (civilians) should be left untouched whilst the dmb and edu entries can be removed for standard roster units. Of course you must mod the merc and rebel files (but you'd do that anyway as a part of the campaign). Merc can be left blank.
    "One of the most sophisticated Total War mods ever developed..."
    The Fourth Age: Total War - The Dominion of Men

  8. #8
    Civis
    Join Date
    Nov 2004
    Location
    Denmark
    Posts
    161

    Default Re: descr_model_battle.txt has too many entries..

    Quote Originally Posted by MasterOfNone View Post
    Generally speaking (if you'll excuse the pun) generals, captains, officers/standards, mounts/animals and some peasants (civilians) should be left untouched whilst the dmb and edu entries can be removed for standard roster units. Of course you must mod the merc and rebel files (but you'd do that anyway as a part of the campaign). Merc can be left blank.
    Sorry dude, I'm not sure I understand what you mean.

    Quote Originally Posted by Boromir
    You always delete the crow, deer plus other unneeded animal skeletons, if they still exists in the entry, maybe was removed in SPQR?
    There were indeed removed, atleast there are not to be found in the dmb.

  9. #9
    Civis
    Join Date
    Nov 2004
    Location
    Denmark
    Posts
    161

    Default Re: descr_model_battle.txt has too many entries..

    Thanks a lot guys,


    Especially to you Salvor Hardin, I totally get it. I just tried it, and it works!

    Thanks!!
    Benjamin

  10. #10
    Cyrus the Virus's Avatar Vicarius Provinciae
    Join Date
    Mar 2006
    Location
    Crackfordshire
    Posts
    10,884

    Default Re: descr_model_battle.txt has too many entries..

    You always delete the crow, deer plus other unneeded animal skeletons, if they still exists in the entry, maybe was removed in SPQR?

    "And the Heavens Shall Tremble"
    Resistance is futile™


    "ehn sewr traih-sluyrds-lairareh"

Posting Permissions

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