Results 1 to 2 of 2

Thread: Adding a Unit into Vanilla- CTD

  1. #1
    Sharp/Charismatic/Languorous Member Novellus's Avatar
    Join Date
    Nov 2008
    Posts
    152

    Default Adding a Unit into Vanilla- CTD

    Greetings Modding Community,

    I am Novellus. Today, I have spent several hours attempting to take a Vanilla RTW unit and change it into a unit from another mod (a Thorakitai Hoplitai unit from the Europa Barbarorum mod). It did not work.

    So I then attempted to create a new unit, by modifying the EDU file and following the process that was in "Tutorial: Adding new units for beginners" post, which was very useful.

    In the end, I was able to have a recruitable Thorakite Hoplite, but it was not playable. By this, I mean that there was a CTD whenever it loaded up for a custom battle. Everything else was fine.

    Here are the file names of the Europa Barbarorum models and textures:

    Spoiler Alert, click show to read: 

    MODELS:

    ebhellenic_infantry_basilikon_agema_epikletoi_spw_high.CAS
    ebhellenic_infantry_basilikon_agema_epikletoi_spw_med.CAS
    ebhellenic_infantry_basilikon_agema_epikletoi_spw_low.CAS
    ebhellenic_infantry_basilikon_agema_epikletoi_spw_lowest.CAS

    TEXTURES:

    ebhellenistic_infantry_epikletoi_hoplitai_spw_greek.tga



    As for sprites, these were all I could locate:

    Spoiler Alert, click show to read: 


    ebsprite_greek_infantry_epikletoi_hoplitai_all.spr
    ebsprite_greek_infantry_epikletoi_hoplitai_all_000.tga
    ebsprite_greek_infantry_epikletoi_hoplitai_all_001.tga
    ebsprite_greek_infantry_epikletoi_hoplitai_all_002.tga
    ebsprite_greek_infantry_epikletoi_hoplitai_all_003.tga




    My EDU currently looks like this:

    Spoiler Alert, click show to read: 



    type greek infantry epikletoi hoplitai
    dictionary greek_infantry_epikletoi_hoplitai ; Thorakitai Hoplitai
    category infantry
    class spearmen
    voice_type Medium_1
    soldier hellenistic_infantry_basilikonagema_epikletoihoplitai_easternauxilia, 40, 0, 1.22
    mount_effect elephant -1
    attributes sea_faring, hide_forest
    formation 0.76, 1, 2, 2.4, 4, square, phalanx
    stat_health 1, 1
    stat_pri 15, 6, no, 0, 0, melee, simple, piercing, spear, 0 ,0.13
    stat_pri_attr light_spear
    stat_sec 10, 6, no, 0, 0, melee, simple, slashing, sword, 0 ,0.11
    stat_sec_attr ap
    stat_pri_armour 12, 9, 3, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 5
    stat_ground 0, 0, -3, -3
    stat_mental 15, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 1902, 478, 60, 90, 1902
    ownership greek_cities



    As for my DMB, it looks like this:

    Spoiler Alert, click show to read: 


    type hellenistic_infantry_basilikonagema_epikletoihoplitai_easternauxilia
    skeleton fs_spearman, fs_swordsman ; combat spear
    indiv_range 40
    texture greek_cities, data/models_unit/textures/ebhellenistic_infantry_epikletoi_hoplitai_spw_greek.tga
    model_flexi data/models_unit/ebhellenic_infantry_basilikon_agema_epikletoi_spw_high.cas, 15
    model_flexi data/models_unit/ebhellenic_infantry_basilikon_agema_epikletoi_spw_med.cas, 30
    model_flexi data/models_unit/ebhellenic_infantry_basilikon_agema_epikletoi_spw_low.cas, 40
    model_flexi data/models_unit/ebhellenic_infantry_basilikon_agema_epikletoi_spw_lowest.cas, max
    model_sprite greek_cities, data/sprites/ebsprite_hellenistic_infantry_epikletoi_hoplitai_greek_cities.spr
    model_tri 400, 0.5f, 0.5f, 0.5f



    Anyway, I have browsed the forums, hoping that I wouldn't have to resort to posting and wasting the valuable time of modders who actually know what they're doing. It is just bothering me at the moment how the EB Team is able to have the unit function properly when in the game, and I cannot get it to work outside of it in Vanilla RTW.

    Thank you. I hope I have enough information here for someone to see any errors that can be fixed on the spot.
    My Balloon! -Strategos Alexandros- "What to do with the Epeirotes?"

    Why did the Romans fall?

    Spoiler Alert, click show to read: 
    Because everyone got sick of the Lorica Segmentata!

  2. #2

    Default Re: Adding a Unit into Vanilla- CTD

    Are you using -show_err? If no, use it. If yes, is there an error message and what does it say?

    Norman Invasion - The fate of England lies in your hands...

    Viking Invasion II - Unite Britain in the best TW campaign ever!

    Gods and Fighting Men: Total War - Enter the Mists of Myth in Ancient Ireland

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