Results 1 to 15 of 15

Thread: What do I have to do to delete a unit?!!!

  1. #1
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Angry What do I have to do to delete a unit?!!!

    I'm getting really frustrated!!! I'm trying to completely delete Roman Peasants. So I deleted them in:

    export_descr_unit
    export_descr_unit_enums
    descr_model_battle
    export_units.txt
    export_descr_buildings

    I'm pretty sure I've made no mistakes. So what am I doing wrong. Please help!!!!!
    Join the AMC. Down with rappers!

  2. #2

    Default Re: What do I have to do to delete a unit?!!!

    What problems are you experiencing?

    If the game is crashing with an error message that might give some clue. Also at what point the game chokes.

    Also...one thing which CAN kill a game is if you have the peasant unit in a starting city or army. I would check the files in descr_strat just to make sure your campaign doesn't try and create the unit you just deleted.
    Careless Orc Costs Lives!

  3. #3
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: What do I have to do to delete a unit?!!!

    Delete them also from descr_rebel_factions.txt
    This causes instant CTD when a rebel roman faction appears.

  4. #4
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    But RTW crashes as soon as I start it up.
    Join the AMC. Down with rappers!

  5. #5
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: What do I have to do to delete a unit?!!!

    I must insist: what's the objective, campaign or battles?

    I think you should keep the model for roman_peasant in descr_model_battle, as it is also used for the civilians and perhaps this is the problem.

    Is there no error message after CTD? Are you using -show_err?

  6. #6
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    Added peasants back to descr_model_battle. Still no joy.

    And I want to completely erase Roman Peasants from EVERY aspect of RTW
    Join the AMC. Down with rappers!

  7. #7
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    Could the problem be historical battles? How would I erase all Roman peasants from those (if there even are any peasants in them)
    Join the AMC. Down with rappers!

  8. #8

    Default Re: What do I have to do to delete a unit?!!!

    No...I doubt it's historical battles. Make sure you have show_err enabled, and see what message it gives.

    Any error in descr_model_battle would give an error when the game crashes. If th egame is crashing immediately, and never gets to the first menu, it will be choking on one of the basic text files that are read on startup. Crashing when you start a campaign would point to building an invalid unit.

    May be that peasants are used for too many things other than just a basic cannon-fodder annoying unit!
    Careless Orc Costs Lives!

  9. #9
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    This is really annoying I wanted to make a mod to simplify RTW units, by giving about just 5-8 for each team. Well, I'm just about ready to give up on it. BTW, whats show-err, and how do I use it?
    Join the AMC. Down with rappers!

  10. #10
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    OK I changed all files back to normal, start up RTW and it works perfectly. Then exit, go to export_descr_unit, and remove Roman ownership of peasants. So the ownership line used to say:

    ownership...................Roman

    Sorry about dots but can't have lots of spaces when posting for some reason. Anyway, changed that to:

    ownership.................

    and the game crashes. Why? What if I set ownership to slave?
    Join the AMC. Down with rappers!

  11. #11
    Savior of Peasant Phill Member Silver Rusher's Avatar
    Join Date
    Aug 2004
    Location
    Get off mah propertay!
    Posts
    2,072

    Default Re: What do I have to do to delete a unit?!!!

    I think there are references to peasants in descr_strat: delete from there as well.
    THE GODFATHER, PART 2
    The Thread

  12. #12
    EB insanity coordinator Senior Member khelvan's Avatar
    Join Date
    Sep 2002
    Location
    Oakland, CA
    Posts
    8,449

    Default Re: What do I have to do to delete a unit?!!!

    Quote Originally Posted by RTW King
    export_descr_unit
    export_descr_unit_enums
    descr_model_battle
    export_units.txt
    You also need to check the rebels file, the mercenaries file, all advice files, and numerous others. This is NOT a simple process.

    You can make things a LOT easier on yourself by doing a text search for the unit name you are referencing and just looking at each file that pops up in the search. You'll get your answers a lot quicker there than here.
    Cogita tute


  13. #13

    Default Re: What do I have to do to delete a unit?!!!

    I don't think you should have ANY unit with no faction owning it. Why don't you just delete the whole entry in the file, rather than just removing the ownership. What you are creating is a piece of data which the game engine WILL read, only missing a key piece of data.

    Also, if you remove part of a reference, in one file, show_err should help to tell you wher it got upset.


    To use show_err, go to your RTW shortcut, and add show_err at the end of the command line.
    Careless Orc Costs Lives!

  14. #14
    Member Member blindfaithnogod's Avatar
    Join Date
    Jan 2005
    Location
    Lawrence, KS USA
    Posts
    175

    Default Re: What do I have to do to delete a unit?!!!

    make that -show_err

    Blue Lotus Total War
    --------------------------------------------------------------------------------------
    Byzantium Total War

  15. #15
    Proud Knight of the AMC Member RTW King's Avatar
    Join Date
    Jul 2005
    Location
    Dal Riada, Scotland
    Posts
    327

    Default Re: What do I have to do to delete a unit?!!!

    Its OK fixed the problem everyone. I gave units the no_custom attribute in export_descr_units, removing them from custom battles. I then went to export_descr_buildings and took the unwanted units of the buildings recruitment lists. I then went to strat in the campaign bit and removed unwanted units from starting armies. So now I've totally removed units from RTW!
    Join the AMC. Down with rappers!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO