Page 1 of 7 1234567 LastLast
Results 1 to 20 of 130

Thread: A modder's guide to errors

  1. #1
    Artifex
    Join Date
    Sep 2004
    Location
    St. Louis, MO, USA
    Posts
    1,491

    Default A modder's guide to errors

    My hope is to generate a long list of exactly what can cause errors throughout all of RTW. I would love to be able to compile and update this list. I hope we continue to have participation, even if only adding a few here and there.

    EDU = /data/export_descr_unit.txt
    DMB = /data/descr_model_battle.txt

    RTW Loading CTDs:
    - Mismatch between descr_names.txt and names.txt

    Loading Screen Slowdowns:
    - campaign_descriptions.txt must have less than 1000 characters per line and less than 20 lines per faction, or file load time is increased by 85%

    Faction selection screen:
    - Lack of campaign descriptions.

    Campaign Map Loading Kick to Main Menu:
    - Typographical error in descr_strat.txt
    - Overwriting rather than deleting and then copying an update of map tga files
    - Resource not defined in EDB
    - Typo in building capabilities in EDB

    Campaign Map Loading CTDs:
    - Landmass ratio problem causes a CTD when loading the campaign map.
    - A named character has an invalid name in descr_strat.
    - The game is loaded but the screen is centered onto a buggy region (see the campaign map scrolling CTDs).

    In Campaign Mode CTDs:
    During play/AI turn:
    - A family member being generated without a general_unit for the faction.
    - A new character is generated and not given a valid name.
    - Some building bonuses in the same building level as certain unit recruitment strings (this will happen both during AI turn and when the building is right-clicked).
    - Units able to be recruited in EDB but no faction "ownership" for a faction in EDU.
    - Units added to descr_rebel_factions.txt but no slave faction ownership in EDU.
    - Units added to descr_mercenaries.txt but no mercenary_unit in EDU.
    - Bad defined type of unit for army spawned via script file
    - Mismatch between export_desc_character_traits.txt and export_VnVs.txt entries causes CTD when viewing the portrait of a named character with the bad trait.

    Scrolling over campaign map:
    - Not enough province/settlements on a too large map (fix : add provinces on the map/may be fixed with BI) causes CTD while scrolling the map.
    - Error with the rebel faction/settlement owner and or creator (when you scroll over a given settlement)
    - Some hidden resources can cause CTDs when you scroll over the region.

    Custom Battle Menu Selection CTD:
    - If you forgot to put in the second (or first) skeleton to units with secondary attacks in EDU.txt, the game CTDs the moment your mouse arrow reaches that unit in the menu.

    Battle Loading CTDs:
    - A unit with the attribute mercenary_unit in EDU that has no texture line for "merc" in the soldier, officer, and other related models found in DMB.
    - A non-mercenary_unit in EDU that has no texture line in DMB for any faction given ownership of the unit in EDU, for the soldier, officer, and other related models.
    - A sprite defined in DMB with no distance value.

    In Battle Mode CTDs:
    - Bad defined formations for Human Player (i.e. mainly changing names of formations in "descr_formations.txt" file)

    BI specific:
    - A reference to spawn event in descr_sm_factions and have modded the game to include those factions at the start date will CTD on AI's turn.
    Last edited by Khelvan; January 02, 2006 at 12:26 AM.
    Ignoranti, quem portum petat, nullus suus ventus est. - Seneca


  2. #2
    Seleukos's Avatar Hell hath no fury
    Patrician

    Join Date
    Jan 2005
    Location
    Vancouver, Washington, US
    Posts
    8,866

    Default

    Excellent initiative. This can help out everyone. Pinned.

    I found that if you have, in BI, a reference to spawn event in descr_sm_factions and have modded the game to include those factions at the start date, it will CTD on AI's turn.

  3. #3
    Sinuhet's Avatar Preparing for death
    Join Date
    Mar 2005
    Location
    the Czech republic, EU
    Posts
    1,090

    Default

    My notices to possible things, which can cause the CTDs:

    - in campaign: bad defined type of unit for army spawned via script file (I have really bad time than I have isolated the bug caused from the typos "merc merc samnite" instead "merc samnite", no help via -show_err in shortcut)
    - in battles: bad defined formations for Human Player (i.e. mainly changing names of formations in "descr_formations.txt" file)

    Thanks for this helpfule initiative.
    Bye Sinuhet
    My TW games "Battle Formations" projects:
    Sinuhet's ETW Formations v2.0 – for ETW
    Sinuhet's Battle Mechanics v5.0 – for MTW2
    Sinuhet's Battle Mechanics v3.0 – for MTW2
    Sinuhet's AI Battle Formations v7.0 – for RTW 1.5


    In Patrocinivm Svb HorseArcher

  4. #4
    Lusted's Avatar Look to the stars
    Join Date
    Jan 2005
    Location
    Brighton, Sussex, England.
    Posts
    18,183

    Default

    -in campaign and battles: typo's
    Creator of:
    Lands to Conquer Gold for Medieval II: Kingdoms
    Terrae Expugnandae Gold Open Beta for RTW 1.5
    Proud ex-Moderator and ex-Administrator of TWC from Jan 06 to June 07
    Awarded the Rank of Opifex for outstanding contributions to the TW mod community.
    Awarded the Rank of Divus for oustanding work during my times as Administrator.

  5. #5
    Dr Fox's Avatar Civis
    Join Date
    Oct 2005
    Location
    in the uk in buckingham
    Posts
    178

    Default

    Faction selection screen: Lack of campaign descriptions
    Rock!?!?!

  6. #6

    Default Trait descriptions

    If you have a trait description like

    Level CursusVigilentivir
    Description CursusVigilentivir_desc
    EffectsDescription CursusVigilentivir_effects_desc
    Threshold 1

    in your export_desc_character_traits.txt but the link to your text description in the export_VnVs.txt file is wrong e.g

    {Vigilentivir} Vigilentivir

    {Vigilentivir_desc}
    This character has come of age but is too young for military service.

    {Vigilentivir_effects_desc}
    No effects.

    i.e it says Vigilentivir_desc instead of CursusVigilentivir_desc, then the game will CTD when you try and right-click a general's portrait that has the trait with the typo.

  7. #7
    Artifex
    Join Date
    Sep 2004
    Location
    St. Louis, MO, USA
    Posts
    1,491

    Default

    Updated.
    Ignoranti, quem portum petat, nullus suus ventus est. - Seneca


  8. #8

    Default

    cool thread.

    During Battle:

    - If your game CTDs while your units switching weapons - the secondary weapon description either contains typos or the secondary attack of the unit is defined wrong (their skeleton does not support it) in the export_descr_unit.txt. for example, giving your general a missile for secondary attack (to a "sword-only" general), and ALT+right click-ing on an enemy, the game will CTDs at the time of the unit trying to switch weapons.

    At the game Loading/During any time:

    - If you have edited the "export_descr_building.txt" it is one of the most sensitive files in the game. One small mistake as a comma, or an extra space missing or added can cause the game to CTD during the loading or during sometime the campaign.
    (edit: oops you added this one already)

    - At loading/during campaign or battle:

    The game will CTD if you try to go beyond the Hardcoded Limits of RTW.

  9. #9

    Default

    Trying to assign a trait or ancillary that has not been defined in export_descr_character_traits.txt or export_descr_ancillaries.txt will cause a CTD with no error message. This means a line like:

    Code:
    Affects Loyl  1  Chance  100
    or

    Code:
    AcquireAncillary  doctr  1  Chance  100
    would cause a CTD, due to misspellings.

  10. #10

    Default

    Removing a faction from the game without removing the culture line from descr regions.txt and the creator line in descr strat.txt will cause a campaign map scrolling CTD.

  11. #11
    Muizer's Avatar member 3519
    Patrician Artifex

    Join Date
    Apr 2005
    Location
    Netherlands
    Posts
    11,114

    Default

    I'm pretty sure about these:

    1) Campaign map scrolling CTD: if this occurs everytime at or near a given junction of regions it means the region has an "illegal geometry". Sometimes this can be solved by minor changes to the region shape (usually making it more compact works). However, sometimes this only leads to the CTD shifting to another junction. Larger regions seem more sensitive to this. Splitting the region into two or more smaller/compacter ones could remove the problem.
    Based on extensive bug hunting.

    2) Campaign map loading CTD occurring nearly instantaneously: possibility of having cities or characters surrounded by a combination of impassable terrain (mountains and dense forest) and rivers without fords.
    Based on: map loading with impassable ground_types OR with unfordable rivers, but CTD with both at the same time and the fact that this was solved by either replacing the impassable terrain with passable terrain or replacing river pixels with ford pixels (or both of course).

    I'd like to hear about alternative explanations if anyone has them.

    Muizer
    "Lay these words to heart, Lucilius, that you may scorn the pleasure which comes from the applause of the majority. Many men praise you; but have you any reason for being pleased with yourself, if you are a person whom the many can understand?" - Lucius Annaeus Seneca -

  12. #12
    Csatádi's Avatar Senator
    Join Date
    Sep 2005
    Location
    Budapest, Hungary, EU
    Posts
    1,153

    Default

    I made 4 new units and used other soldiers' skin for them.
    I can play custom battles with the new units but I get 'Campaign Map Loading CTDs'.
    Any help even where should I look for the mistake?

    Edit: ok, i found it. Huh. The problem wasnt with the new ones but another unit I deleted but forgot to save before the reinstall.
    Last edited by Csatádi; January 29, 2006 at 12:18 PM.

  13. #13

    Default

    Having a blank line in export_VnVs or export_ancillaries where RTW expects to find text will cause a CTD when the trait/ancillary is gained, before the chance to display it occurs (a missing tag causes a CTD when you try to view the character scroll, but this causes one when the trait is triggered).

    Example:
    Code:
    {Trait_desc}
    Should be:
    Code:
    {Trait_desc}
    Some description

  14. #14
    Orb's Avatar Tiro
    Join Date
    Mar 2005
    Location
    London
    Posts
    292

    Default

    If you use the my_mod system you must have the export_VnVs file in the text folder of your my_mod folder. Not doing so results in a CTD on invoking the generals scroll. I've only tested this in B.I 1.6. It seems we can't redirect the exe to the vanilla...

    TFT 's Fall of the Republic - Rise of the Empire (FRRE) Mod Project
    A collection of Post-Marian Reform mods for B.I

  15. #15
    Artifex
    Join Date
    Sep 2004
    Location
    St. Louis, MO, USA
    Posts
    1,491

    Default

    I would ask for a volunteer to update this. I am no longer able to, I can barely keep up with other things, much less remember this, and I think it is important enough to have someone keep it up to date.
    Ignoranti, quem portum petat, nullus suus ventus est. - Seneca


  16. #16
    AngryTitusPullo's Avatar Comes Limitis
    Join Date
    Jan 2006
    Location
    Kuala Lumpur
    Posts
    13,018

    Default

    I got CTD while loading screen (during splash screen) but my name files are all in order. Any idea how else can I trace the bug ?

    Anyway this is on personal project to port RTR 6.0 gold to RTW 1.5 platform.

    Thanks for any help. The main thread is here


    CIVITATVS CVM AVGVSTVS XVI, MMVI
    IN PATROCINIVM SVB Dromikaites SVB MareNostrum SVB Quintus Maximus
    Want to know more about Rome II Total Realism ? Follow us on Twitter & Facebook

  17. #17

    Default Re: A modder's guide to errors

    Leave the dds ending off textures or the game crashes without telling you why when loading a battle with your unit.


    Believe in Hegemonia... Or the Megarian will get you.

  18. #18

    Default Re: A modder's guide to errors

    Here's one i finally figured out, If you get a CTD when you click on the Senate Tab then check if the Roman Faction your playing with says "superfaction romans_senate" under the faction name in the descr_strat file without this line the game will CTD everytime you click on the Senate tab, Also then Senate will not give you missions & will be very agressive against you

  19. #19
    Marcellus Trajanus's Avatar Civis
    Join Date
    Jul 2006
    Location
    Germania Superior
    Posts
    111

    Default Re: A modder's guide to errors

    I just figured out that adding a script - like a 4tpy - via
    "script
    [script_name.txt]"

    at the end of the descr_strat.txt may cause your game to disable saving and loading your campaign though the campaign starts without complaining and even the script works out properly. Quick save/load button combinations won't work, resulting in a load-to-menu when trying to quick load.

    Would be great if anyone could confirm that or give further information concerning that.

  20. #20
    AngryTitusPullo's Avatar Comes Limitis
    Join Date
    Jan 2006
    Location
    Kuala Lumpur
    Posts
    13,018

    Default Re: A modder's guide to errors

    Campaign Map Loading Kick to Main Menu:
    - Typographical error in descr_strat.txt
    - Overwriting rather than deleting and then copying an update of map tga files
    - Resource not defined in EDB
    - Typo in building capabilities in EDB
    I Have the error as above , but the difference is there's no error reported when quitting the game. Anyone have any ideas as to why ? It's a BI base mod though.


    CIVITATVS CVM AVGVSTVS XVI, MMVI
    IN PATROCINIVM SVB Dromikaites SVB MareNostrum SVB Quintus Maximus
    Want to know more about Rome II Total Realism ? Follow us on Twitter & Facebook

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