View Full Version : How do you completely delete a unit?
RTW King
08-28-2005, 20:20
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.
King of Atlantis
08-28-2005, 20:24
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...
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.
Monkwarrior
08-29-2005, 12:51
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!
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.
Monkwarrior
08-30-2005, 08:43
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. :bow:
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.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.