Page 1 of 2 12 LastLast
Results 1 to 20 of 31

Thread: battle_models.modeldb

Hybrid View

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

    Default battle_models.modeldb

    Is there a unit limit? Currently I'm at 879 but get a ctd if I ad any more entries, yet I've seen mods with higher.

  2. #2
    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,682
    Blog Entries
    35

    Default Re: battle_models.modeldb

    The logical conclusion would be an error in your modeldb. Are you using the modelDB checker?










  3. #3

    Default Re: battle_models.modeldb

    There is no limit. I am at 1300 and am still adding new models.

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  4. #4
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: battle_models.modeldb

    I am at 239. It is a good feeling to clean the file of extraneous foreign entries, and populate it exclusively with your own.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  5. #5

    Default Re: battle_models.modeldb

    I wonder why I can't add any more. I know it's not a typo because if I copy a unit and simply change one letter in the name and add +1 to the archive I crash. or I've had other strange symptoms like the last unit in my battle_models.modeldb being invisible on the battle map until I remove an entry then they show up again.

    I can't run the tester because python is very finicky on Vista and only works with some aps.

  6. #6
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: battle_models.modeldb

    Quote Originally Posted by Tyre View Post
    I wonder why I can't add any more. I know it's not a typo because if I copy a unit and simply change one letter in the name and add +1 to the archive I crash. or I've had other strange symptoms like the last unit in my battle_models.modeldb being invisible on the battle map until I remove an entry then they show up again.
    That's a symptom of having an incorrect serialization count. If the serialization number is too low, then the game will not look past that number of model entries, making anything past that invisible to the game which thinks they dont exist. If the serialization number is too high, then the game will crash because it cant find the specified number of model entries.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  7. #7

    Default Re: battle_models.modeldb

    Quote Originally Posted by Tyre View Post
    I wonder why I can't add any more. I know it's not a typo because if I copy a unit and simply change one letter in the name and add +1 to the archive I crash. or I've had other strange symptoms like the last unit in my battle_models.modeldb being invisible on the battle map until I remove an entry then they show up again.
    are you sure you copy the complete entry?
    Hr. Alf han hugg til han var mod, Han sto i femten Ridderes Blod; Så tog han alle de Kogger ni Og sejlede dermed til Norge fri. Og der kom tidende til Rostock ind, Der blegned saa mangen Rosenkind. Der græd Enker og der græd Børn, Dem hadde gjort fattig den skadelige Ørn.
    Anders Sørensen Vedel

  8. #8
    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,682
    Blog Entries
    35

    Default Re: battle_models.modeldb

    The tester doesn't run with python 3.1. Had to uninstall and go back to python 2.6










  9. #9

    Default Re: battle_models.modeldb

    That's a symptom of having an incorrect serialization count. If the serialization number is too low, then the game will not look past that number of model entries, making anything past that invisible to the game which thinks they dont exist. If the serialization number is too high, then the game will crash because it cant find the specified number of model entries.
    Yeah that's what I figured but everything currently runs fine unless I try to add a unit. If my count is off wouldn't I be having issues?

  10. #10
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: battle_models.modeldb

    Quote Originally Posted by Tyre View Post
    Yeah that's what I figured but everything currently runs fine unless I try to add a unit. If my count is off wouldn't I be having issues?
    If your count is already too low, then the game won't crash but the last unit (or units) in the modeldb will be invisible...which is what you described as happening.

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  11. #11

    Default Re: battle_models.modeldb

    The tester doesn't run with python 3.1. Had to uninstall and go back to python 2.6
    It generates a blank text file. Does that mean I have no errors?
    Last edited by Tyre; March 12, 2009 at 03:37 AM.

  12. #12

    Default Re: battle_models.modeldb

    I have that error too. Try adding new models into the middle, rather than the end of the file. Be sure to still remember to change the serialization number.

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  13. #13

    Default Re: battle_models.modeldb

    Quote Originally Posted by Mythic_Commodore View Post
    I have that error too. Try adding new models into the middle, rather than the end of the file. Be sure to still remember to change the serialization number.
    Good call! that did the trick. Thanks mate

  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: battle_models.modeldb

    I've never had a problem adding units to the end of the list personally

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

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

    Default Re: battle_models.modeldb

    This file is the devil, it's really that simple. I've added something and then had someone else add the same exact thing and it worked for them, and me when they sent me the file(identical in WinMerge), but didn't work for me initially. Lord only knows what it'd be like without the formatted version.

  16. #16
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: battle_models.modeldb

    I agree that it's demonically inspired but I've found that as long as I don't do exactly the same thing I did last time it usually works.

    I'm never any the wiser about why it didn't work in the first place though...

  17. #17
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: battle_models.modeldb

    Yes -- it only looks demonically inspired when things work or don't work from random causes, and crashes happen on a completely trustful patch of code.

    I, however, have not had anything random happen with it for years. Me and the file have become good friends. As long as I do the same things over and over again, as long as I always check it with the syntax-checker afterwards, the file smiles and bequeathes benevolence upon me...

    All of which is to say that there is no randomness and bugginess in the way the game processes that file. Any of the random errors all belong merely on the human side.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  18. #18

    Default Re: battle_models.modeldb

    I don't have that luxury as python refuses to work on my system

  19. #19
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: battle_models.modeldb

    Just uninstall 3.1 and revert back to the 2.6 version, simple as that!


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  20. #20

    Default Re: battle_models.modeldb

    Tried that already, same nonsense.

Page 1 of 2 12 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
  •