Log in

View Full Version : Unable to add Pre-BI Unit to BI



Sahran
01-15-2006, 08:37
The unit in question I am trying to add is one of ATG's Spartans.

As a test, I've not attempted to put in descriptions or unit cards, but what I have put in, is as follows:

Export_Descr_Unit

type southron spartan
dictionary southron_spartan ; Bazylian Spartan
category infantry
class heavy
voice_type Heavy_1
soldier southron_spartan, 40, 0, 1.3
attributes sea_faring, hide_forest, can_sap, hardy
formation 1, 1, 2, 2, 4, square, shield_wall
stat_health 1, 0
stat_pri 9, 2, no, 0, 0, melee, blade, piercing, spear, 25 ,0.73
stat_pri_attr spear, spear_bonus_8
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
stat_pri_armour 7, 10, 6, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 1, -2, 3, 2
stat_mental 18, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 2, 513, 220, 60, 90, 570
ownership empire_east_rebels

Model_Battle

type southron_spartan
skeleton fs_spearman
indiv_range 40
texture empire_east_rebels, bi/data/models_unit/textures/unit_greek_atg_spartan_vp.tga
model_flexi_m bi/data/models_unit/unit_greek_atg_spartan_vp_h.cas, 15
model_flexi_m bi/data/models_unit/unit_greek_atg_spartan_vp_m.cas, 30
model_flexi_m bi/data/models_unit/unit_greek_atg_spartan_vp_l.cas, 40
model_flexi bi/data/models_unit/unit_greek_atg_spartan_vp_vl.cas, max
model_sprite 60.0, bi/data/sprites/greek_hoplite_spartan_pylos_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f





Now, Normally this always got me the unit in Vanilla, without a unit card or description, but this causes me to crash the moment the custom battle with the unit attempts to load.

I had heard that units or skeletons had to have a swim animation, or BI would crash. There is no error listed on the "Show_err" armed startup, nor do I have any sign of what is causing this.

Lentonius
01-15-2006, 09:39
that is odd. however also i think you need to add entries in export_descr_unit_enums and other unit files, as like in the BI campaign, maybe files that didnt need changing now do need changing

Also if there is no 'grey peasant' on the custom battle, your problem is probably due to it not recognising the EDU entry

It it crashes while loading the battle your problem may be descr_model battle

hope it helps good luck:2thumbsup:

Sahran
01-15-2006, 09:44
I saw that it crashed even without the unit, my recently having done a combination of two mods that worked in the campaign, but apparently did not during the battle.

I reinstalled and will be giving it a try, thanks anyhow :)

Hans Kloss
01-15-2006, 11:55
two questions:

are all cas and dds files for this unit in the BI folders ?

did you try to change infantry class from : "heavy" to "spearmen" ?

Watchman
01-17-2006, 01:04
If it helps, I've managed to get BI models work in original RTW by the simple expedient of telling model_battle to use the models in the BI folder. The only issue is that they used their original BI faction colors and not the RTW ones, and I found no way to fix the issue. Several attempts merely caused CTDs, so I gave up and stuck with the BI color scheme.

Dunno if it works in reverse though.