Results 1 to 6 of 6

Thread: How do you completely 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

    Default How do you completely delete a unit?

    What files do I need to change to delete a unit from RTW. I tried but the game crashed, I must have missed some files.
    Join the AMC. Down with rappers!

  2. #2
    Don't worry, I don't exist Member King of Atlantis's Avatar
    Join Date
    May 2005
    Location
    Ruins of Atlantis a.k.a Florida
    Posts
    1,658

    Default Re: How do you completely delete a unit?

    Just completely erase all history off it


    This means, expot unit-in the text folder

    eport unit and unit enums.

    Also descr buildings


    Sorry, those arent all the proper names, but im in a hurry. As a modder you should know all those files, and if not read a tutorial...

  3. #3

    Default Re: How do you completely delete a unit?

    Most important, as far as I know, is the export_unit in the data folder, the enums refer to that and the export unit in the text folder refers to the enums. You´ll also want to make sure to delete it from the building-something file (where is defined which building is neded to train which unit), I think those are the most important ones. You can keep the model_battle entry, that´s only the individual soldier model.

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

    Default Re: How do you completely delete a unit?

    As it have been said, you must eliminate the entries of that unit in:
    export_descr_unit
    export_descr_buildings

    Problems with CTD in campaign can come from the presence of that eliminated unit in:
    descr_strat
    descr_rebel_factions (if it is also assigned to slave faction)
    descr_mercenaries (if it is a mercenary unit)

    Why do you want to eliminate that unit?
    The answer would help to guide you. Perhaps it is not necessary to eliminate completely the unit. Examples:
    - You don't want it in custom battles: put no_custom as an attribute of the unit in export_descr_unit (it won't be usable in custom battles)
    - You don't want it in campaigns: simply, delete the unit in export_descr_buildings (it won't be recruitable)

    Good luck!

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

    Default Re: How do you completely delete a unit?

    You will also need to check to see if the unit is referenced in any of the advice files - many are, and when a call is made to those files and the unit no longer exists, CTD.
    Cogita tute


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

    Default Re: How do you completely delete a unit?

    Quote Originally Posted by khelvan
    You will also need to check to see if the unit is referenced in any of the advice files - many are, and when a call is made to those files and the unit no longer exists, CTD.
    Thanks for this information.

    Is the possibility of CTD linked to the level of advisor you are playing?
    I've eliminated a large amount of units but this don't cause me CTD, probably because I play without advisor.

    Would the same happen with the buildings? I got CTD due to the presence of the gone buildings in the ancilliaries triggers, but never because of the advise.

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