Results 1 to 6 of 6

Thread: Question about export_desc_buildings

  1. #1

    Default Question about export_desc_buildings

    I want to remove a unit from the ownership of a faction in the edu. For example, I want to remove Latin Handgunners from Byzantine ownership in the edu so that I can use it for another faction. If I don't also remove that unit (in this case Latin Handgunners) from the Byzantine faction in the export_desc_buildings file, could that cause a crash during gameplay?
    Last edited by Kilgore Trout; August 20, 2019 at 01:36 AM.
    Pleasant it is, when over a great sea the winds trouble the waters, to gaze from shore upon another's tribulation: not because any man's troubles are a delectable joy, but because to perceive from what ills you are free yourself is pleasant - Lucretius

  2. #2
    Gigantus's Avatar The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it
    Patrician Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    47,084
    Blog Entries
    24

    Default Re: Question about export_desc_buildings

    It will create an error.

    But if you want to assign that unit to another faction as well then you do not need to remove other ownership first. There is a tutorial about 'adding a unit to another faction' if memory serves.

    Edit: yup, here it is.



  3. #3

    Default Re: Question about export_desc_buildings

    Thanks Gigantus, but I already well know how to do all of that in the tutorial above - I've done it all literally hundreds of times.

    But you say there will be an error if I don't remove the unit from faction x in the descr_buildings file if I have already removed it from ownership for faction X in the edu file. And by "error", you mean the game will play, but there could be a crash later? Are you sure, because I don't think I've always gone to that extra step, and I don't think my game has crashed. I've always wanted to ask and be sure about that though as at times I have gone to the extra step as well.

    The reason I ask is not that it is so difficult to remove the unit from faction X in the descr_buildings file; it is not. But only because I often make changes like this and then change things back to their original state later, and could over time easily lose track of what I have and haven't done in the descr_buildings file. And so if it wouldn't cause a crash if I don't remove the unit from faction X in the descr_buildings file, then I simply wouldn't worry about dong that.
    Last edited by Kilgore Trout; August 20, 2019 at 11:14 AM.
    Pleasant it is, when over a great sea the winds trouble the waters, to gaze from shore upon another's tribulation: not because any man's troubles are a delectable joy, but because to perceive from what ills you are free yourself is pleasant - Lucretius

  4. #4
    Gigantus's Avatar The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it
    Patrician Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    47,084
    Blog Entries
    24

    Default

    I do know there will be an error message in the log pertaining to it, I am however not sure if it will cause a crash, eg when the unit is being trained or created.

    I can understand your issue with back and forth editing, you may however run into the very same problem if you do not completely reverse edits. The best way to avoid this is to simply copy the pertaining recruitment line and comment it. Then remove the faction (in case of multiple faction) from the uncommented line.
    Adding comments to the top of the EDB (any text file you work with) as reminders will help as well.
    Last edited by Gigantus; August 20, 2019 at 11:45 PM.



  5. #5

    Default Re: Question about export_desc_buildings

    Yes, comments must be the safest way to go. Thanks again!
    Pleasant it is, when over a great sea the winds trouble the waters, to gaze from shore upon another's tribulation: not because any man's troubles are a delectable joy, but because to perceive from what ills you are free yourself is pleasant - Lucretius

  6. #6
    Gigantus's Avatar The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it
    Patrician Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    47,084
    Blog Entries
    24

    Default Re: Question about export_desc_buildings




Posting Permissions

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