Page 2 of 13 FirstFirst 123456789101112 ... LastLast
Results 21 to 40 of 242

Thread: Crashes and how to fix them

  1. #21

    Default Re: Crashes and how to fix them

    I got a report, that error is in 688th entry and I can't figure out which unit this is


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

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

    Default Re: Crashes and how to fix them

    Post a screenshot of the error so we can see the actual error.
    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. #23

    Default Re: Crashes and how to fix them

    It's "unspecified" - I think you don't need a picture. I got to the number by trying with changing the count number on the top of battle_models.modeldb


  4. #24
    TSD's Avatar Ordinarius
    Join Date
    May 2008
    Location
    Chicago, IL
    Posts
    725

    Default Re: Crashes and how to fix them

    Quote Originally Posted by ModderN00b View Post
    It's "unspecified" - I think you don't need a picture. I got to the number by trying with changing the count number on the top of battle_models.modeldb
    Im not following. So you got an "unsepecified" error, then you screwed with the serialization and got this "688th" entry error?


    Ive never gotten an error like that. Any time Ive gotten a serialization error, it was thrown in the edu when it looks for a model that isnt read from the modeldb file and says something along the lines of "cant find model bla bla bla".

  5. #25
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: Crashes and how to fix them

    Quote Originally Posted by ModderN00b View Post
    It's "unspecified" - I think you don't need a picture. I got to the number by trying with changing the count number on the top of battle_models.modeldb
    I'm assuming you meant the 688 error came from the modeldb checker, and I wanted to see the modeldb checker's error not the one that M2TW throws (i.e. not the unspecified error). In other words I want to see the screenshot of the actual error message with 688 in it.
    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. #26
    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: Crashes and how to fix them

    Does it look like this:

    Unit count at top of file = 833
    Number of processed unit models = 834
    It is advisable that these two numbers should match.
    Total errors: 0
    String count errors: 0
    Faction count errors: 0










  7. #27

    Default Re: Crashes and how to fix them

    Quote Originally Posted by uanime5 View Post
    Mod CTD and without starting

    CTD on startup
    Q: When you start the mod you get a black screen and the mod CTDs.

    A: There is an erronous entry in the data\unit_models\battle_models.modeldb, normally a reference to an non-existant mesh or texture, or an entry is incorrect. You won't recieve any help in the log for this so you'll have to check your entries manually.

    Code:
    22 serialization::archive 3 0 0 0 0 985 0 0
    This number tells M2TW how many entries there are in this file. It you change it from 985 to 500 M2TW will only check the first 500 entries before starting the mod. If the error is not in the first 500 the mod will load to the splash screen (though it is likely to crash for other reasons). If the error is in the first 500 entries M2TW will still CTD.

    By changing the number it is possible to find the exact entry that is causing the problem (though you'll need to use KnightErrant's checking program to find out which unit this is).
    I used this method. I set the number to 688 and that was the border betwen "unspecified erroring" and direct CTD.

    Yes, it says in log, that only 688 files where processed, but the problem is, that it checks whole file for errors, and therefore I can't find the entry with intentious erroring.
    Last edited by ModderN00b; October 19, 2010 at 07:41 AM.


  8. #28
    TSD's Avatar Ordinarius
    Join Date
    May 2008
    Location
    Chicago, IL
    Posts
    725

    Default Re: Crashes and how to fix them

    Quote Originally Posted by ModderN00b View Post
    I used this method. I set the number to 688 and that was the border betwen "unspecified erroring" and direct CTD.

    Yes, it says in log, that only 688 files where processed, but the problem is, that it checks whole file for errors, and therefore I can't find the entry with intentious erroring.


    I take it you dont remember what you were editting before you got the first CTD?

  9. #29

    Default Re: Crashes and how to fix them

    It CDTs ever since I added new faction. List of scripts I edited:
    Quote Originally Posted by ModderN00b View Post
    OK, in event, that I forgott to add my faction to any files, here's list of all thing I have done in my mod folder:

    Cloned Jerusalem/edited:
    -data
    --descr_sm_factions
    --descr_names
    --export_descr_buildings
    --export_descr_unit
    --descr_model_strat
    --descr_character
    --descr_banners_new
    --descr_offmap_models
    --descr_lbc_db
    --descr_win_conditions
    -worlds
    --descr_faction_movies
    --descr_win_conditions
    --descr_strat
    --cloned all jerusalem maps
    -text
    --expanded
    --model.modeldb

    Created a "Bern" region with GeoMod for my faction
    --Added region to descr_regions_and_settlement_name_lookup

    Cloned Jerusalem models in folders:
    -models strat/textures-menu/symbols

    LEGEND folder
    .txt
    folder, including .dds or maps


    Ishan, strange, in original unpacked crusades folder there's no grapeshot error, even without Gig's fix.


  10. #30

    Default Re: Crashes and how to fix them

    Anybody has an idea?


  11. #31
    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: Crashes and how to fix them

    It will be in the modeldb file. If you have only added faction entries in there (cloning the Jerusalem entry) then a change in the serialization number was not required. Remove the modeldb (move into a different folder) and start the game to confirm this.

    You could also try my modified checker, not sure if it will work. It will need modifying to include your custom faction as well. I described the method here.










  12. #32

    Default Re: Crashes and how to fix them

    Still doesn't show any errors. Can I modify checker to process just 688 entries? That would be helpfull.


  13. #33
    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: Crashes and how to fix them

    Did you remove the modeldb and start the game as suggested?










  14. #34

    Default Re: Crashes and how to fix them

    Yes, loading screen showed, then game CTDt without error report.


  15. #35
    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: Crashes and how to fix them

    Did you check the log afterward - a CTD without report doesn't mean that there isn't something in the log.
    If it crashes like that without modeldb file, then I would say it points to the descr_strat file. A lot of times it is mentioned in the log.










  16. #36

    Default Re: Crashes and how to fix them

    Here, all mentioned files:


  17. #37
    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: Crashes and how to fix them

    Now I am stumped: the log in there says it can't find the dismounted archer battle model, but it in the included modeldb. Would that be the log after you removed the modeldb? Anyhow, I ran the modeldb with my checker and it threw out a mile (136) of errors.
    The checker and that list (error log) is in the attachment.

    You will need to have Python 2.6 installed to run the checker! Later versions of Python will not work.

    .










  18. #38

    Default Re: Crashes and how to fix them

    That log is from after I put .modeldb back where it was.

    I think all those errors from your checker are there, because you didn't add "bern" faction to faction list.

    I think the problem is, that there are two files (dismounted_archers_lod1.mesh and dismounted_archers_lod2.mesh) are missing in unit_models/_unit/as_light.


  19. #39
    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: Crashes and how to fix them

    And jerusalem and antioch have to be added to the faction list as well.
    No errors after that.

    20:09:08.125 [script.err] [error] Script Error in mods/eidgenossenschaft/data/export_descr_unit.txt, at line 11230, column 1
    Could not find soldier battle model for unit type 'Dismounted_Archers'.
    This error relates to this entry in the EDU:
    soldier Dismounted_Archers, 48, 0, 0.8

    And here are the archers in the modeldb:
    18 dismounted_archers

    Only thing that I could imagine, is the difference in capitalization of the names. (both entries will have to agree completely)
    I would recommend to change it in the EDU (easier), sometimes the game is a bit fussy about that.

    The error with the missing meshes will only lead to a crash in a battle, not at the start. Suggestion: if you have a mesh (lod_0?) simply copy and rename it accordingly. It will not make much of a difference . The higher the lod number, the fewer surfaces the original has, the easier when viewed at larger distances.
    Last edited by Gigantus; October 23, 2010 at 10:46 AM.










  20. #40

    Default Re: Crashes and how to fix them

    Fixed those, still the same.


Posting Permissions

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