Hetairoi Kataphraktoi for Arche
Hello and welcome I am a longtime forum peeper first time poster. I hit a proverbial brick wall while fiddling with adding units.
I would like to make Hetairoi Kataphraktoi a recruitable unit for Arche. I run into a dead end. In my desperation I hope that some of you veteran modders out there might be able to help me or at least let me know whether it is at all possible to include HK on Seleucid unit roster.
Let me explain what I did:
1. First, the easy part. I copied unit card and unit info picture (EB\Data\UI) from brutii into julii folders. - It works.
2. Created new unit entry in export_descr_unit (the one in sp backup folder):
Code:
;471
type hellenic cavalry hetairoi kataphraktoi 2
dictionary hellenic_cavalry_hetairoi_kataphraktoi ; Hetairoi Kataphraktoi
category cavalry
class heavy
voice_type General_1
soldier hellenistic_cavalry_hetairoi_kataphractoi, 25, 0, 1
mount grivpanvar horse
mount_effect elephant -1, chariot +2
attributes sea_faring, hide_forest
formation 1.5, 4, 3, 6, 4, square
stat_health 1, 1
stat_pri 5, 47, no, 0, 0, melee, blade, piercing, spear, 200 ,0.4
stat_pri_attr ap
stat_sec 11, 28, no, 0, 0, melee, simple, slashing, sword, 0 ,0.11
stat_sec_attr ap
stat_pri_armour 29, 10, 0, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 0, 0, -4, -1
stat_mental 18, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 6000, 1700, 80, 100, 2924
ownership romans_julii
Works - all stats show on unit scroll when I recruit HK on strategic map.
3. Edited export_descr_buildings and enabled recruitment in Antiocheia. This works also, as I am able to recruit the unit in-game.
Now the trouble starts since I do not know where I went awry because I do not know how to check whether changes I make work as intended or not.
4. Two broad categories left are mount and soldier. I made changes to descr_model_battle like so:
Code:
; Hellenistic cavalry - Hetairoi Kataphraktoi
type hellenistic_cavalry_hetairoi_kataphractoi
skeleton fs_thp_m_spearman, fs_hc_swordsman
indiv_range 40
texture romans_brutii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_brutii_stefan25.TGA
texture romans_julii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_julii_stefan25.TGA
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 15
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 30
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 40
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, max
model_sprite romans_brutii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_brutii.spr
model_sprite romans_julii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_julii.spr
model_tri 400, 0.5f, 0.5f, 0.5f
As you see I copied lines and replaced brutii with julii and I also created corresponding files with julii names (spr and tga).
Now when I go to battle map with HK I get CTD.
I do not know what to do with cas files. So I just left them the way they are. Could this be the problem. I see that all units "share" same cas files, but instead of faction name they have "spw" in its place. I do not know what is the significance of this, but it seems to be crucial.
PS. I use Notepad that came with windows for editing could this be the source of trouble?
Any help would be greatly appreciated.
Re: Hetairoi Kataphraktoi for Arche
Hello Arche4Ever, welcome to the .Org and to EB ~:wave: .
Given that the CTD occurs at the battlemap, I don't think the .txt file is the problem. It sounds to me like a model/skin issue. Are you sure that this unit's model is not in use by another Seleucid unit? You cannot reuse models within a faction unless you employ the mercenary trick. (You can reuse models for units of other factions, but because the R:TW engine has a limited number of model slots available, all EB models are used by as many factions as possible. So it's likely that there already is a Seleucid unit with this particular model.)
Re: Hetairoi Kataphraktoi for Arche
Arche4Ever, try to do this:
no need in hellenic cavalry hetairoi kataphraktoi 2 EDU entry
just find in original EDU type hellenic cavalry hetairoi kataphraktoi and add in the ownership line romans_julii
Code:
type hellenic cavalry hetairoi kataphraktoi
dictionary hellenic_cavalry_hetairoi_kataphraktoi ; Hetairoi Kataphraktoi
category cavalry
class heavy
voice_type General_1
soldier hellenistic_cavalry_hetairoi_kataphractoi, 25, 0, 1
mount grivpanvar horse
mount_effect elephant -1, chariot +2
attributes sea_faring, hide_forest
formation 1.5, 4, 3, 6, 4, square
stat_health 1, 1
stat_pri 5, 47, no, 0, 0, melee, blade, piercing, spear, 200 ,0.4
stat_pri_attr ap
stat_sec 11, 28, no, 0, 0, melee, simple, slashing, sword, 0 ,0.11
stat_sec_attr ap
stat_pri_armour 29, 10, 0, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 0, 0, -4, -1
stat_mental 18, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 6000, 1700, 80, 100, 2924
ownership romans_brutii, romans_julii
DMB
Code:
; Hellenistic cavalry - Hetairoi Kataphraktoi
type hellenistic_cavalry_hetairoi_kataphractoi
skeleton fs_thp_m_spearman, fs_hc_swordsman
indiv_range 40
texture romans_brutii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_brutii_stefan25.TGA
texture romans_julii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_brutii_stefan25.TGA
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 15
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 30
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 40
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, max
model_sprite romans_brutii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_brutii.spr
model_sprite romans_julii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_brutii.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Same DMB, find further Mount - Grivpanvar Horse, change code to this one
Code:
type ebmount_grivpanvar_horse
skeleton fs_cataphract_horse
scale 0.875
indiv_range 40
texture romans_scipii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman&agart_scipii.tga
texture parthia, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman_parthia.tga
texture romans_brutii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_romans_brutii.TGA
texture romans_julii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_romans_brutii.TGA
texture pontus, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_antiochus_pontus.TGA
texture merc, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_merc.TGA
texture slave, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman_parthia.tga
model_flexi_m eb/data/models_unit/ebmount_grivpanvar_horse_arman_high.cas, 25
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_med.cas, 55
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_low.cas, 80
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_lowest.cas, max
model_sprite romans_scipii, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_scipii.spr
model_sprite parthia, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite romans_brutii, 100.0, eb/data/sprites/mounts/ebsprite_ebmount_grivpanvar_horse_romans_brutii.spr
model_sprite romans_julii, 100.0, eb/data/sprites/mounts/ebsprite_ebmount_grivpanvar_horse_romans_brutii.spr
model_sprite pontus, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite merc, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite slave, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_tri 700, 0.3f, 0.3f, 0.3f
And don’t forget to backup all stuff before change something
Re: Hetairoi Kataphraktoi for Arche
Thank you Finn for your detailed solution. I will try it out tomorrow; I have no time to do this today.
Quote:
Originally Posted by
Ludens
Hello Arche4Ever, welcome to the .Org and to EB ~:wave: .
Given that the CTD occurs at the battlemap, I don't think the .txt file is the problem. It sounds to me like a model/skin issue. Are you sure that this unit's model is not in use by another Seleucid unit? You cannot reuse models within a faction unless you employ the mercenary trick. (You can reuse models for units of other factions, but because the R:TW engine has a limited number of model slots available, all EB models are used by as many factions as possible. So it's likely that there already is a Seleucid unit with this particular model.)
Do you mean model of soldier and mount (soldier and mount lines in export_descr_unit) or tectures sprites of soldier/mount in descr_model_battle? Based on what you said I would have to delete an instance of this model from Seleucid or other faction'a rolla in order to make it available for Seleucid HK?
HK shares skeletons of both soldier (multiple units: cats, prodromoi, and so on) and mount (grivpanvar mount and hellenic cats have the same skeleton) with other Seleucid units.
Also, there is a merc unit Sahigan Pahr (Parthian General on grivpanvar horse) that is accessible to AS through the mercenary trick as you called it. This could be the solution to my troubles (copy HK skins over Pahr's). But even if it works it would destroy this unit for the other faction.
Re: Hetairoi Kataphraktoi for Arche
I meant the soldier model. Don't know if mount model can be shared, but then I am not a modder.
Re: Hetairoi Kataphraktoi for Arche
Quote:
Originally Posted by
Finn MacCumhail
Arche4Ever, try to do this:
no need in
hellenic cavalry hetairoi kataphraktoi 2 EDU entry
just find in original EDU
type hellenic cavalry hetairoi kataphraktoi and add in the ownership line
romans_julii
Code:
type hellenic cavalry hetairoi kataphraktoi
dictionary hellenic_cavalry_hetairoi_kataphraktoi ; Hetairoi Kataphraktoi
category cavalry
class heavy
voice_type General_1
soldier hellenistic_cavalry_hetairoi_kataphractoi, 25, 0, 1
mount grivpanvar horse
mount_effect elephant -1, chariot +2
attributes sea_faring, hide_forest
formation 1.5, 4, 3, 6, 4, square
stat_health 1, 1
stat_pri 5, 47, no, 0, 0, melee, blade, piercing, spear, 200 ,0.4
stat_pri_attr ap
stat_sec 11, 28, no, 0, 0, melee, simple, slashing, sword, 0 ,0.11
stat_sec_attr ap
stat_pri_armour 29, 10, 0, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 0, 0, -4, -1
stat_mental 18, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 6000, 1700, 80, 100, 2924
ownership romans_brutii, romans_julii
DMB
Code:
; Hellenistic cavalry - Hetairoi Kataphraktoi
type hellenistic_cavalry_hetairoi_kataphractoi
skeleton fs_thp_m_spearman, fs_hc_swordsman
indiv_range 40
texture romans_brutii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_brutii_stefan25.TGA
texture romans_julii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hetairoi_kataphraktoi_romans_brutii_stefan25.TGA
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 15
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 30
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, 40
model_flexi eb/data/models_unit/ebhellenistic_cavalry_hetairoi_kataphraktoi_stefan25_romans_brutii_HIGH.CAS, max
model_sprite romans_brutii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_brutii.spr
model_sprite romans_julii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hetairoi_kataphractoi_romans_brutii.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Same DMB, find further
Mount - Grivpanvar Horse, change code to this one
Code:
type ebmount_grivpanvar_horse
skeleton fs_cataphract_horse
scale 0.875
indiv_range 40
texture romans_scipii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman&agart_scipii.tga
texture parthia, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman_parthia.tga
texture romans_brutii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_romans_brutii.TGA
texture romans_julii, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_romans_brutii.TGA
texture pontus, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_antiochus_pontus.TGA
texture merc, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_stefan25_merc.TGA
texture slave, eb/data/models_unit/textures/mounts/ebmount_grivpanvar_horse_arman_parthia.tga
model_flexi_m eb/data/models_unit/ebmount_grivpanvar_horse_arman_high.cas, 25
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_med.cas, 55
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_low.cas, 80
model_flexi eb/data/models_unit/ebmount_grivpanvar_horse_arman_lowest.cas, max
model_sprite romans_scipii, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_scipii.spr
model_sprite parthia, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite romans_brutii, 100.0, eb/data/sprites/mounts/ebsprite_ebmount_grivpanvar_horse_romans_brutii.spr
model_sprite romans_julii, 100.0, eb/data/sprites/mounts/ebsprite_ebmount_grivpanvar_horse_romans_brutii.spr
model_sprite pontus, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite merc, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_sprite slave, 100.0, eb/data/sprites/mounts/ebsprite_mount_grivpanvar_horse_parthia.spr
model_tri 700, 0.3f, 0.3f, 0.3f
And don’t forget to backup all stuff before change something
Your simple solutions worked like charm. Now I know that it is possible to recruit a playable HK. I will try to find a way to do it without affecting Bactria.
Thank you Finn for taking the time to show me how it is done.
Re: Hetairoi Kataphraktoi for Arche
As long as you follow Finn's explanation but also create a new EDU entry like you did initially (and the corresponding EDB entries) then it should work without affecting Baktria.
The problem with you initial method was that you hadn't specified what texture the mount would use for the AS, this will be what caused the crash. Also you don't need to create a renamed copy of the texture file, you can just copy the path of the Baktrian version.
Re: Hetairoi Kataphraktoi for Arche
That is what I did thank you.
Re: Hetairoi Kataphraktoi for Arche
How would one go about adding this to the Baktrian building list plus have the same aor as the agema?
Re: Hetairoi Kataphraktoi for Arche
How do you add it into the edu?
Re: Hetairoi Kataphraktoi for Arche
Re: Hetairoi Kataphraktoi for Arche
I suspect kingman1337 followed advices but the engine overwrite edited EDU because of multiplayer and singleplayer types of EDU, so no changes happened.
For this case kingman1337, you should edit EDU from sp game edu backup and mp game edu backup. And don't forget about backups.
Re: Hetairoi Kataphraktoi for Arche
Quote:
Originally Posted by
Finn MacCumhail
I suspect kingman1337 followed advices but the engine overwrite edited EDU because of multiplayer and singleplayer types of EDU, so no changes happened.
For this case kingman1337, you should edit EDU from sp game edu backup and mp game edu backup. And don't forget about backups.
I apologize. I meant EDB.
Re: Hetairoi Kataphraktoi for Arche
My suggestion would be to find the entry (or entries) for the standard Hetairoi, make a duplicate, and then change the unit into Hetairoi Kataphraktoi. Make sure you only do this for the Seleucid faction, though (their internal name is Romans_Julii). And, obviously, make a back-up of the EDB file first.