Results 1 to 22 of 22

Thread: Changing weapons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Changing weapons

    Right, got all the textures sorted! Now im onto the weapons, i have a feeling i know what im doing as im using a tutorial, but i am going to import the model with the weapon i want, delete the model, then assign the weapon to the current model, i think it will work but i guess we will have to wait and see, thanks for all your help. :)
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

  2. #2

    Default Re: Changing weapons

    Rather than deleting everything but the model, just select the weapon you want, click on File, go down to Save Selected. That allows you to save only the item you have selected.
    There are never enough hours in the days of a Queen, and her nights have too many...

    ATW Version 2.5 is now out!

  3. #3

    Default Re: Changing weapons

    Ah great, that was so much simpler than what i was trying to do , my thanks to everyone for all your help! :)
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

  4. #4

    Default Re: Changing weapons

    GAH! I have run into a problem, I have made a new legionary spearman unit, however the game crashes when one of them dies in melee combat, I really don't know what the problem is as the spartans i made previously work fine, and i did a test where i killed the spearmen from range, and that didn't cause a crash. I will post all the code i have used incase anyone spots an error or if there is something i have missed that i need to do.

    descr_model_battle

    type roman_legionary_spearman
    skeleton fs_spearman ; combat spear
    indiv_range 40
    texture romans_julii, data/models_unit/textures/unit_roman_legionary_II_julii.tga
    texture romans_brutii, data/models_unit/textures/unit_roman_legionary_II_brutii.tga
    texture romans_scipii, data/models_unit/textures/unit_roman_legionary_II_scipii.tga
    texture romans_senate, data/models_unit/textures/unit_roman_legionary_II_senate.tga
    model_flexi_m data/models_unit/AAA_LEGIONARY_SPEARMAN.cas, 15
    model_flexi_m data/models_unit/AAA_LEGIONARY_SPEARMAN.cas, 30
    model_flexi_m data/models_unit/AAA_LEGIONARY_SPEARMAN.cas, 40
    model_flexi data/models_unit/AAA_LEGIONARY_SPEARMAN.cas, max
    model_sprite seleucid, 60.0, data/sprites/seleucid_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_legionary_cohort_ii_sprite.spr
    model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_legionary_cohort_ii_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

    export_descr_unit

    type roman legionary spearman
    dictionary roman_legionary_spearman ; Legionary Spearman Cohort
    category infantry
    class spearmen
    voice_type Heavy_1
    soldier roman_legionary_spearman, 40, 0, 1.3
    officer roman_centurion
    attributes sea_faring, hide_forest, can_sap, hardy
    formation 1, 2, 2, 3, 4, square,
    stat_health 1, 0
    stat_pri 11, 15, no, 0, 0, melee, blade, piercing, spear, 25 ,1
    stat_pri_attr ap
    stat_sec 9, 11, no, 0, 0, melee, blade, piercing, sword, 25 ,1
    stat_sec_attr ap
    stat_pri_armour 7, 5, 5, metal
    stat_sec_armour 0, 1, flesh
    stat_heat 4
    stat_ground 2, 0, 0, 0
    stat_mental 10, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 850, 310, 70, 160, 1010
    ownership romans julii,romans brutii,romans scipii,romans senate

    export_descr_unit_enums

    roman_legionary_spearman
    roman_legionary_spearman_descr
    roman_legionary_spearman_descr_short

    export_units

    ¬----------------

    {roman_legionary_spearman} Legionary Spearman Cohort

    {roman_legionary_spearman_descr}
    These Legionaries are trained with spears in order to assist their bladed comrades against cavalry attacks.

    {roman_legionary_spearman_descr_short}
    A great counterpart to the standard Legionary, able to fend off the most devastating of cavalry charges

    ¬----------------

    CAS file, it is just called AAA_LEGIONARY_SPEARMAN

    I think the problem lies with one of the death animations, although i have no idea how to go about fixing this. thanks
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

  5. #5
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Changing weapons

    it's probably not the dieing bit - its probably when it tries to switch to secondary weapon in melee, you've got primary and secondary weapon in EDU
    stat_health 1, 0
    stat_pri 11, 15, no, 0, 0, melee, blade, piercing, spear, 25 ,1
    stat_pri_attr ap
    stat_sec 9, 11, no, 0, 0, melee, blade, piercing, sword, 25 ,1
    stat_sec_attr ap
    but only one skeleton type in DMB - if you meant it to have primary and secondary weapons DMB should say
    Code:
    skeleton			fs_spearman, fs_swordsman
    or similar

    if its meant to only have spear then the bold line in EDU is wrong

    what has the model actually got in terms of weapons now?
    Not used mods before? Looking for something small and fun?!
    Download the:

  6. #6

    Default Re: Changing weapons

    AHHH! that would make sense :), he currently has the triarii spear as primary instead of the standard pila, pilum (?), and the standard gladius that comes with the legionary model, great, i will go and change that now, see if it works. THANKS!!!!!
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

  7. #7

    Default Re: Changing weapons

    Right, you guys have been more than helpful :), however i have run into yet another problem, although this is unrelated to the new units i have made. The Legionary First Cohort and Legionary First Early Cohort are the problem, i didnt know how to train them at all, until recently, then i found out that Rome was needed, well, i conquered Rome, and still couldnt train them, so i decided to look in the descr_buildings file, as i am getting used to all those things, and the "hidden_resource rome" wasn't on either of them, and rome wasnt listed as a hidden resource at the top of the file, so i added rome to the top of the file, and "and hidden_resource rome" after the cohorts, AND "rome" in the resources section of what each province contains, and i am still unable to train them. I really dont know what to do, as i have looked at the "adding resources" thread and followed everything that it said but to no avail. I dont know if its because the latest patch is needed or anything else, but i know i can count on you guys ;)
    The modelling swordsman? - slaughtered
    The textures legionary? - died randomly
    The resource-and-region adding demon? - eviscerated
    The faction name editing man? - ran away in fear
    The faction symbol editing woman? - with the help of Makanyane, devised a mod folder of deadly efficiency _____
    The alpha-daemon of many unit card based things? - locked in a room

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