Log in

View Full Version : Milites Ilergetum



Khazar_Dahvos
04-14-2008, 14:35
I have a question on how to add Milites Ilergetum to the casse roster of recruitment if it is not too hard to do? :help:

Khazar_Dahvos
04-14-2008, 16:59
bump

Disciple of Tacitus
04-14-2008, 19:34
Can't help you out there. No idea. If you get no response here, try the Tavern.

Xehh II
04-14-2008, 19:58
What are Milites Ilergetum?

General Appo
04-14-2008, 20:19
A new unit for 1.1, I don´t know exactly (or have time to look up) where they´re recuitable, but their descriptions says they´re from northwestern Iberia, so Cantabria and possibly some other regions would be an educated guess.

Watchman
04-14-2008, 21:10
The province around Emporion, IIRC. Anyway, here's a quick-and-dirty how-to:
- give the unit the appropriate faction ownership in the EDU
- give it the appropriate skin and model in the DMB
- find and copy-paste the recruitement code to the desired barracks (and change the faction data) in the EDB
- copy-paste the appropriate UI cards from the appropriate parts of \Data\UI\UNIT_INFO and \Data\UI\UNITS to the appropriate factional folders (so you don't get grey-peasant cards)

General Appo
04-14-2008, 21:44
Damn, I don´t know what I was thinking. Cantabria is northwest, and I know that. Stupid, stupid me.

Khazar_Dahvos
04-15-2008, 00:25
Looks fairly simple kinda. I was wondering if you could show me what to change in the DMB for Dacian infantry - Galathraikes / Ilergeta. Do I have to put Britons just into the texture area and for the Model_ sprite or is there something else since I believe the galathraikes and the Ilergeta share the same model. Also I am a bit unclear of what to do in the EDB I just want it the same as the Adeui and the Avernci recruitment. Otherwise I get what to do just not about the middle parts. A visual half ass walkthrough would help so I don't f up 25 times. Thank you in advance anybody who is willing to help!!!!!

I want a walkthrough also so that I can tinker with other units in the future.

(give a man a fish you feed him for a day, but to teach a man to fish you feed him for life)

Watchman
04-15-2008, 08:45
Just copy-paste a suitable line and change the faction ownership at the start:
type dacian_infantry_galathraikes_ilergeta
skeleton fs_fast_javelinman, fs_fast_swordsman_barb
indiv_range 40
---
texture gauls, eb/data/models_unit/textures/iberian/ebiberian_infantry_ilergeta_aymar_regional.TGA
texture scythia, eb/data/models_unit/textures/iberian/ebiberian_infantry_ilergeta_aymar_regional.TGA
texture slave, eb/data/models_unit/textures/iberian/ebiberian_infantry_ilergeta_aymar_slave.TGA
texture britons, eb/data/models_unit/textures/iberian/ebiberian_infantry_ilergeta_aymar_slave.TGA
---
model_sprite gauls, 60.0, eb/data/sprites/iberian/ebsprite_iberian_infantry_ilergeta_all.spr
model_sprite scythia, 60.0, eb/data/sprites/iberian/ebsprite_iberian_infantry_ilergeta_all.spr
model_sprite britons, 60.0, eb/data/sprites/iberian/ebsprite_iberian_infantry_ilergeta_all.spr
...Since the Casse don't get the Galathraikes (unless it is as the "merc" slot regional/mercenary one, but that doesn't conflict) there's no model-sharing issues.

Khazar_Dahvos
04-15-2008, 13:06
Thanks I really appreciate the help but what about the EDB that is the most confusing thing. I am having trouble just locating the ilergetum just for the 2 gaulic tribes any help is appreciated. And If and when I find it do I just add the britons to a new line under the 2....Sorry Watchman for my ineptitude.

Watchman
04-15-2008, 13:21
Look up the unit's "internal" name in the EDU (in this case, iberian infantry ilergeta) and search for that in the EDB. IIRC the Casse share "regional" barracks with the Gauls (and for that matter all the other "barbarians"), so you just need to add the faction code to the recruitement line:
recruit "iberian infantry ilergeta" 0 requires factions { gauls, scythia, spain, britons, } and hidden_resource NW and hidden_resource A and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8'Course, you gotta remember to make the change to all the upper levels of the barracks complex too.

Khazar_Dahvos
04-15-2008, 13:32
ok by using the edit find option for finding the iberian infantry ilergeta do I just add briton in the script every time I see the other barb factions spain, gaul, sythia when ilergeta is found. Is that a good thorough way to find and change all the upper level baracks so that it is able to be recruited for Casse. Well I did every thing but the game crashes to desktop on startup...

allright a quick rundown of what I have done.
1 gave the unit the appropriate faction ownership in the EDU(just added briton)
2 gave appropriate skin and model via the DMB (did exactly as you have shown above)
3 look up the unit's "internal" name in the EDU (in this case, iberian infantry ilergeta) and search for that in the EDB. IIRC the Casse share "regional" barracks with the Gauls (and for that matter all the other "barbarians"), so you just need to add the faction code to the recruitement line.

what I did was use the edit find button in the EDB for iberian infantry illergeta and every time I saw it listed with the barb factions spain, gaul, scythia I added britons to the line(should of been for 3 different barracks levels)

4 copy-paste the appropriate UI cards from the appropriate parts of \Data\UI\UNIT_INFO and \Data\UI\UNITS to the appropriate factional folders (so you don't get grey-peasant cards)
I did both I gave britons the copied UI cards from the slave folders since I saw that you in the DMB gave them the slave tga.

But alas I know not what I have done wrong!!!!!

Watchman
04-15-2008, 15:31
Could be some sort of syntax error; the parser needs the entries to be exactly right (eg. "britons"). Doesn't show_err give anything to go by ?

Could be something related to the trivialscript too, of course.

Tellos Athenaios
04-15-2008, 15:39
If you talk about the game crashing, most likely you made a syntax error. If you talk about your changes not appearing in game, you may have edited the wrong EDU (since you had to assign ownership in the EDU as well...), in that case try editing the edu found in sp game edu backup folder; but make sure to back up that edu first. :wink:

Khazar_Dahvos
04-15-2008, 15:44
nope It crashed right when EB goes to its first screen on startup. So it is probably a syntax error.
I am going to replace the files with the originals and start over.

Tellos Athenaios
04-15-2008, 15:51
Make sure the alignment (layout) of the code is exactly as all the other code. It could be worth the effort to manually copy the indentation of other unit entries; and paste it before your own.

Also, make sure that the comma-separated list which lists the factions matches up to this pattern:

{_[name],_[name],_[name],_}

With the underscores (_) being a whitespace. [name], [name2] etc. are the factions names (obviously :grin:), e.g.: romans_julii ; romans_scipii. Note the additional comment after the last name; and note the closing and opening whitespace! The EDB is extremely sensitive to layout, and won't parse correctly (thereby causing a fatal error, thus resulting in a CTD) unless its strict layout is preserved.

So a correct piece of faction code in the EDB could be:


{ gaul, scythia, britons, spain, }

Khazar_Dahvos
04-15-2008, 16:15
yep the game does not crash now it was the end commas in { gaul, scythia, britons, spain, } the edb. thanks Watchman and Tellos Athenaios.

I have one more question though I was wanting to change the Casse bodyguard units to the Iberi Lanceari since I am going to start in that area with the casse anyway. I was wondering if this is the correct layout for it in the EDU (mind you I have fiddled with the armour and weapons a bit and I used the original chariot bodyguard stat_cost)

;18
type celtic chariot cidainh bodyguards
dictionary iberian_cavalry_heavy_lancearii ; Iberi Lanceari
category cavalry
class heavy
voice_type General_1
soldier iberian_cavalry_lancearii, 10, 0, 1
officer ebofficer_lusitanian_carthaginian_officer
mount hellenistic kataphraktoi 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 8, 43, no, 0, 0, melee, simple, piercing, spear, 160 ,0.33
stat_pri_attr ap
stat_sec 12, 28, no, 0, 0, melee, simple, slashing, sword, 0 ,0.225
stat_sec_attr ap
stat_pri_armour 16, 12, 2, metal
stat_sec_armour 0, 0, metal
stat_heat 4
stat_ground 0, 0, -3, -3
stat_mental 16, disciplined, highly_trained
stat_charge_dist 50
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1675, 0, 20, 196, 1675
ownership britons, slave

is there anything else I need to do in anyother file or folders to make this happen? Thanx for the help guys

Tellos Athenaios
04-15-2008, 16:46
Obviously you need to make sure that this pseudo celtic charioteer on horseback of yours, gets the right skin etc. etc. assigned in the DMB ...

And you may want to check if you do not leave holes in the code; for instance: is that officer you have assigned to your unit available to the britons (Casse) as well? And are there references in the other key files (edb, dmb) which rely on the existance of the dicitonary entry you just deleted? That is, does another unit in the EDU exist with the original dictionary entry (my guess is yes) ?

Khazar_Dahvos
04-15-2008, 17:02
yeah I thought it was going to be alittle more difficult than that. I might as well as just change the casse chariot bodyguards to celtic cavalry chieftain brihentin which I have done in the past. I guess in the future I could always change the Lusso bodyguards to the Iberi Lanceari pretty easy since they can recruit them in the first place. Ohh Well:beam: Thanks for helping me out It is very much appreciated:2thumbsup:

Khazar_Dahvos
04-15-2008, 18:16
O.K. I have something weird going on when I changed the casse chariot bodyguard to this
;18
type celtic chariot cidainh bodyguards
dictionary celtic_cavalry_brihentin ; Brihentin
category cavalry
class heavy
voice_type General_1
soldier celtic_cavalry_brihentin_remimairepos_lavotuxri_marhathegnoz, 10, 0, 1
officer ebofficer_celtic_standardbearer
mount heavy horse
mount_effect elephant -4, chariot +2
attributes sea_faring, general_unit, hide_forest, hardy, ;no_custom
formation 1.5, 4, 3, 6, 4, square, wedge
stat_health 1, 0
stat_pri 8, 35, no, 0, 0, melee, simple, piercing, spear, 160 ,0.33
stat_pri_attr ap
stat_sec 13, 15, no, 0, 0, melee, simple, piercing, sword, 0 ,0.225
stat_sec_attr no
stat_pri_armour 16, 12, 2, metal
stat_sec_armour 0, 0, flesh
stat_heat 4
stat_ground 0, 0, -4, -1
stat_mental 16, disciplined, highly_trained
stat_charge_dist 60
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1856, 0, 38, 178, 1856
ownership britons, slave

and go into the casse game nothing has changed they are still chariots with the same description. And when I get out of the game and go back to the EDU it is the old bodyguard description when I have triple checked it to make sure I had saved and everything. could somebody please tell me what is going on. I just want brihentin as my bodyguard which I have done in EB 1.0 and if you know what I have done wrong please post what it is??? I have tested it a half a dozen times now even with the old mod that changes the chariot bodyguard to Rycalawre that was created a little over a year now and still no changes hmmmph.

type celtic chariot cidainh bodyguards
dictionary celtic_infantry_rycalawre ; Rycalawre
category infantry
class spearmen
voice_type General_1
soldier celtic_infantry_arjos_rycalawre_solduros_kuarothoroi, 30, 0, 1.35
officer officer_celtic_standardbearer
officer officer_celtic_officer
mount_effect horse +1, camel +1, elephant -3
attributes sea_faring, hide_improved_forest, very_hardy, command, general_unit
formation 0.7, 1, 1.8, 2.6, 4, square
stat_health 1, 0
stat_pri 12, 6, no, 0, 0, melee, simple, piercing, sword, 0 ,0.225
stat_pri_attr no
stat_sec 13, 4, no, 0, 0, melee, simple, piercing, spear, 0 ,0.13
stat_sec_attr spear
stat_pri_armour 12, 10, 4, metal
stat_sec_armour 0, 0, flesh
stat_heat 5
stat_ground 0, 0, 0, -1
stat_mental 16, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 2720, 0, 80, 130, 2720
ownership britons, slave

Spendios
04-15-2008, 18:50
It seems that we are going to pass all the units.

Khazar_Dahvos
04-15-2008, 19:58
could somebody try that script with the Rycalawre for casse general on their own EB install in the EDU and see if it works(It did in 1.0) in 1.1. (the link for that is https://forums.totalwar.org/vb/showthread.php?t=81687) mind you I really want the Brihentin (which I had in 1.0 with no problem)

Watchman
04-15-2008, 20:16
You sure you're taking the Trivialscript into account there ? That sounds like just the kind of result I'd expect from it overwriting the data-folder EDU with the backup one...

Watchman
04-15-2008, 20:17
Ditto map.rwm.

Khazar_Dahvos
04-15-2008, 20:33
just tried it the second time and deleting map rwm.. still nothing!!!

Watchman
04-15-2008, 20:43
At the risk of repeating myself, did you or did you not account for the way the Trivialscript overwrites data-folder files, should you be using it ?

Khazar_Dahvos
04-15-2008, 20:53
At the risk of repeating myself, did you or did you not account for the way the Trivialscript overwrites data-folder files, should you be using it ?

Sorry I am a bit confused.... Trivialscript? I guess I did not account for the way it overwrites the data-folder files, And I have no clue if I should be using it. Nevermind I think I understan I have to do the same for sp game edu backup folder since it will just overwrite the EDU.

Watchman
04-15-2008, 21:11
Exactly. And probably better replace the map.rwm too.

Khazar_Dahvos
04-15-2008, 21:28
by replace map rwm you mean delete right?????? in the sp game edu backup folder

Watchman
04-15-2008, 21:34
...thinking about it, that may actually not be necessary. I'm guessing the engine just parses descr_strat to see what unit goes where (ID'ing them by the "internal" name), which *should* not have any issues with the "content" of a given unit entry being different from before.
:shifty:
At least, try seeing if it works out with the old map.rwm. If it does, no need to make things more complicated than they have to be.

Khazar_Dahvos
04-15-2008, 22:37
I got it working now I just had to do the same scripting to the sp game edu backup folder. Thank you Watchman and TA for helping me out and just in general sticking in there with me and helping me figure out what I needed to do. For your hard labor I award you each with :balloon2: :balloon2: :balloon2: . Thank you, Thank you, Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tellos Athenaios
04-16-2008, 02:19
It's still worth the effort to do some engine-fooling to obtain a correct, and update map.rwm.

One can do this as follows:
1) Fire up your EB;
2) When you get to the Main menu, hit alt-tab, and open Windows Explorer. Find the folder called EB\data\world\maps\base\ ;
3) Delete the map.rwm you find in that folder;
4) Go back to your EB, load a fresh campaign;
5) When you get to your campaign map (past the (dummy) intro and such), go back to your Windows Explorer in that folder...
6) Copy the map.rwm file which should've been re-generated into the sp edu game folder (overwrite the existing file)

7) Presto.

Khazar_Dahvos
04-16-2008, 04:38
Thanks alot Tellos Athenaios that is quite useful :beam: