Results 1 to 8 of 8

Thread: Can you make citizens trainable

  1. #1

    Default Can you make citizens trainable

    I found in export_descr_units.txt that the civilians that wander around in cities have a soldier count of 300. Which would make them have 1200 soldiers in the game in a single unit. I tried to make them trainable, the game starts but when I end my first turn the game crashes and returns to desktop.
    Does anyone have ideas how to make this work?
    Thanks

  2. #2

    Default Re: Can you make citizens trainable

    The game only crashes at the end of your first turn? Have you therefore seen this 1,200 man unit on the battlefield?

    Could you post the changes you've made to their entry in export_descr_unit so we can see what you've done?
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  3. #3
    Magister Vitae Senior Member Kraxis's Avatar
    Join Date
    Feb 2002
    Location
    Frederiksberg, Denmark
    Posts
    7,129

    Default Re: Can you make citizens trainable

    The max of any unit has been incresed from 255 to 500 in the patch, so 1200 citizens are way beyond the capabilities. Mod them to be smaller then you should be able to do it.
    You may not care about war, but war cares about you!


  4. #4

    Default Re: Can you make citizens trainable

    Errr... 500 is the max. number of units in the game in v1.2. I believe it has been determined that 60 is the max. number of soldiers in a unit in export_descr_unit.

    But I would have expected a 300 unit size to CTD on start-up, not get to the end of the first turn.

    Something like this:
    Code:
    type             barbarian civ peasant
    dictionary       barbarian_civ_peasant      ; Barbarian Tribesmen
    category         infantry
    class            light
    voice_type       Medium_1
    soldier          barb_peasant, 60, 0, 0.7
    attributes       sea_faring, hide_forest, can_sap, no_custom
    formation        1.2, 1.8, 2.4, 2.4, 3, horde
    stat_health      1, 0
    stat_pri         1, 0, no, 0, 0, melee, simple, piercing, knife, 25 ,1
    stat_pri_attr    no
    stat_sec         0, 0, no, 0, 0, no, no, no, none, 25 ,1
    stat_sec_attr    no
    stat_pri_armour  0, 1, 0, flesh
    stat_sec_armour  0, 0, flesh
    stat_heat        2
    stat_ground      2, -2, 3, 2
    stat_mental      0, low, untrained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 250, 510, 30, 40, 250
    ownership        barbarian
    should work, but lowering their soldier count makes them near-indistinguishable from peasant units and even more pointless.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  5. #5

    Default Re: Can you make citizens trainable

    I didn't change anything in export_descr_units.txt, I just allowed them to be built by all barracks. When I start a game I can build them and the information card says that there are 1200 soldiers in it. The game just crashes as soon as I end my turn.

  6. #6

    Default Re: Can you make citizens trainable

    So you added an entry for them to the barracks in export_descr_buildings? If so, did you actually try to build one before it crashed?

    Or did you do something else?
    Last edited by Epistolary Richard; 03-02-2005 at 16:40.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  7. #7

    Default Re: Can you make citizens trainable

    I trained one unit and then I ended my turn to see if it would work. When I clicked on the End Turn-button the game crashes to Desktop.

  8. #8

    Default Re: Can you make citizens trainable

    Yeah, there are a number of things that the game could have had a problem with. The citizens unit is marked as non-combatant (which is probably what allows it to have the 300 unit size), and the game probably objected when it was told to build a non-combatant unit.

    You could try changing the entry to infantry instead of non-combatant but then it would probably fall foul of the 60 unit size hard-coded limit and CTD on start-up.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

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