PDA

View Full Version : create mercenary unit?



fomalhaut
03-23-2011, 21:23
I know how to create regular units, but for RP'ng purposes as AS i want a mercenary company of Baktrioi Agema who have recently been put out of a job as Baktria is now under rightful rule.

I see that they have a merc texture and just trying to create a regular unit crashes the game when I go to battle since i don't have the baktrian texture for my faction. (i don't want to mess anymore with the EDU/DMB/)

I tried putting misthophoroi before and after the "hellenestic infantry baktrioi agema" but it does not recognize that.

vollorix
03-23-2011, 22:38
Are those units on the ownership list of AS in the EDU? If not, this might perhaps cause those problems. Concerning EDU you simply have to add the Seleucids ( their internal name is "romans julii" ) in that list, which you can see on the bottom of each unit entry containing internal faction names.

fomalhaut
03-23-2011, 22:48
No they are not by default. but I already changed ownership in the EDU and switched some names in the DMB but there was still a texture crash in battle. It had the correct unit card instead of the peasant default but it still wasn't reading a texture somewhere (i switched the brutii to julii, since brutii is baktria and julii is AS). I didn't want to mess around anymore with it, so i just want the mercenary skin instead of the actual unit Baktria would train.

this is just for RP purposes, i don't want to be able to train them or anything, which is why i didn't change anything in the EDB. Just need one or two units of Agema who i give amnesty to since their skills are worth more than the actions of their former masters.

vollorix
03-23-2011, 23:01
Bactria is dead in your campaign, but there is no need to "switch" the ownership, actually, but add another one, separated by ",".
The actual name of a merc unit beginning with "mistophoroi.." is not the point here, i´d say. Did you add "mercenary_unit" in the "attribute" line in the EDU as well?
Try both: adding AS ownership + merc attribute. If it still won´t work, may be the solution lies then somewhere else, and some one might read this and help you out.

fomalhaut
03-23-2011, 23:05
Wow thanks never thought of adding that attribute, i just did now. so with that how do i add the unit? just add mercenary_unit to the create unit line?

the unit is already ownership of Romans_Julii, me, so that's not the issue. The issue was with a .tga file, but i don't want the baktrian unit par se anyway, but whatever the merc skin is for it. seems more fitting and i don't have to mess with the DMB

vollorix
03-23-2011, 23:13
That attribute was for "EDU" entry, actually. You said you have been able to create that unit allready, but the game crashed afterwards, right? That attribute might prevent this, or it might not, if there are other factors i´m probably not aware of.

type hellenistic infantry baktrioi agema
dictionary hellenistic_infantry_baktrioi_agema ; Baktrioi Agema
category infantry
class spearmen
voice_type General_1
soldier hellenistic_infantry_baktrioiagema_hellenikon_indogreeknoblehoplite, 30, 0, 1.22
officer ebofficer_hellenic_officer
officer ebofficer_hellenic_standardbearer
mount_effect elephant -1
attributes sea_faring, hide_forest, hardy, mercenary_unit
formation 1.2, 1.5, 2.4, 3, 4, square
stat_health 1, 1
stat_pri 12, 8, no, 0, 0, melee, blade, slashing, sword, 0 ,0.225
stat_pri_attr no
stat_sec 13, 8, no, 0, 0, melee, simple, piercing, spear, 0 ,0.13
stat_sec_attr light_spear
stat_pri_armour 13, 11, 4, metal
stat_sec_armour 0, 0, flesh
stat_heat 4
stat_ground 0, 0, -2, -1
stat_mental 16, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 3221, 805, 90, 120, 3221
ownership romans_brutii, romans_julii

Edit: enter those manually, because my edu is BI based ( allready took "shildwall" away, but the spacing might be wrong too, etc )

fomalhaut
03-23-2011, 23:17
Yes i did the ownership earlier and the merc trait per your suggestion.

it crashed when going into battle, as a texture had not been assigned to it i guess. I changed the name from brutii to julii in the sprite and model of the DMB, but that did not work so i switched back.

what i just did was create another line for textures and sprite and just added julii, copied the texture from brutii, but did not delete brutii. lets hope it works!

Ludens
03-24-2011, 15:10
Please don't repost your question in multiple threads.

I am moving this to the submod forum.

Rahl
03-26-2011, 22:42
what i just did was create another line for textures and sprite and just added julii, copied the texture from brutii, but did not delete brutii. lets hope it works!
That was the problem at the beginning, but since you now added the mercenary_unit attribute the skins for mercs will be used and they've their own lines in the DMB, either you make them mercs or you enable them for the seleucids and delete the merc_unit.
Also units with the merc_unit attribute can be used by every faction without having the ownership for them, they will use the merc-skin. That's why everyone can bribe Rhodian slingers or Arverni Nobles. The ownership will only be needed if you want to recruit them in a MIC.