Results 1 to 4 of 4

Thread: export_descr_unit Ownership missing from unit type error.

  1. #1

    Default export_descr_unit Ownership missing from unit type error.

    So my error is this but I don't really understand how to fix it.

    09:47:54.885 [script.err] [error] Script Error in mods/KGCM/data/export_descr_unit.txt, at line 12025, column 1
    Ownership missing from unit type 'Elephant Artillery Mercs'. using all.
    09:47:54.885 [data.invalid] [error] DATABASE_TABLE error found : error reading record from file mods/KGCM/data/export_descr_unit.txt.

    What do I need to do to make it not crash?

    The unit in question has it's entry below but I'm not sure what's wrong with it beyond it being related to ownership I guess

    type Elephant Artillery Mercs
    dictionary Elephant_Artillery_Mercs
    category cavalry
    class heavy
    voice_type Heavy
    accent Mongolian
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Elephant_Artillery_Crew, 12, 6, 1
    mounted_engine elephant_serpentine
    mount elephant_cannon
    mount_effect horse +4, camel +2
    attributes sea_faring, hardy, can_withdraw, can_run_amok, frighten_foot, frighten_mounted, gunpowder_unit, mercenary_unit
    formation 7, 11, 13, 16, 2, square
    stat_health 1, 6
    stat_pri 28, 3, elephant_cannon_shot, 350, 20, missile, artillery_gunpowder, piercing, none, 25, 1
    stat_pri_attr ap, bp
    stat_sec 10, 9, no, 0, 0, melee, melee_simple, piercing, none, 25, 1
    stat_sec_attr area, launching, ap
    stat_pri_armour 16, 7, 0, flesh
    stat_sec_armour 13, 3, flesh
    stat_heat 2
    stat_ground 0, 0, -6, 0
    stat_mental 11, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 2750, 350, 400, 400, 2750, 4, 680
    armour_ug_levels 0
    armour_ug_models Elephant_Artillery_Crew
    ownership slave
    recruit_priority_offset 10

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: export_descr_unit Ownership missing from unit type error.

    A mercenary unit only available to slaves doesn't make much sense. If it is used in descr_mercenaries then it will have to give ownership to all factions. Which is achieved by using 'all' in the ownership line.










  3. #3

    Default Re: export_descr_unit Ownership missing from unit type error.

    Doesn't seem like that's the problem as applying ownership to all didn't fix it for what it's worth all the other mercenary units in the file have there ownership listed as slave as well.

    I think that line ownership only affects availability in custom battles but I have no idea why its causing crashes I also found another error listed as

    [error] DATABASE_TABLE error found : error reading record from file mods/KGCM/data/export_descr_unit.txt.

    Is that another error, or just talking about the prior error?

    Edit

    So as it turns out there was nothing wrong with the unit.

    The launcher I used for the mod just decided to stop working for reasons I don't understand and it won't give me any logs for that the game starts fine if I do it through steam and renaming the file though.
    Last edited by Zalanum; February 25, 2021 at 02:34 PM.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: export_descr_unit Ownership missing from unit type error.

    The data base error entry is the same, basically a summary. Ownership is required for the unit to be able to be recruited in the game, a unit is disabled from recruiting in custom battle by the 'no_custom' entry in the abilities line.
    Have you tried my repack of KGCM? Best to manually delete the mods\kgcm directory before installing it.










Posting Permissions

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