View Full Version : expanding a units AoR
Hooahguy
12-25-2007, 20:32
i want to expand the AoR for the Klerouchoi Phalangitai from just Baktra to all 3 of my starting provinces(for Baktria, or course).
so anyone know how to do this?
i thought at first it was the barracks level, but they all have the same type of barracks, and it cant be the gov level, b/c they are all level 1, so it must be something else.......
anyone know?
Tellos Athenaios
12-26-2007, 00:45
Yes. You've got to edit the ownership in EDB code: "requires factions" or sth. Don't forget to abide the laws of RTW syntax lest bad things may happen.
Hooahguy
12-26-2007, 01:12
would you mind giving me instructions how to do it? i dont want to screw things up...... thanks!
Tellos Athenaios
12-26-2007, 01:36
recruit "name" 0 requires factions { fr_list, } and HR_prereq
name => <internal unitname with breakspaces, instead of underscores>
fr_list => <internal names of recruitment capable factions that use this MIC separated by ',' and ' ' without any quotation marks>
HR_prereq => <hidden resources that need to be available (which together specify a specific region per EDB recruitment entry) separated by 'and' operators (i.e SW and y4 and n8)>
The HR_prereq statement can be deleted altogether; provided that you delete the preceding 'and' operator as well. This will make the unit specified recruitable everywhere on the map, if the right MIC structure has been sufficiently upgraded.
Note that MIC structures come tagged-with-a-character format: _A through _W or sth. Since there are quite a few samples of the underscore+random character patterns; it is better to search for _A1, _B1, _J1 etc. The latter are exclusive to levels of the sames MIC structure beyond muster_field size.
Finally it's worth considering looking up the thread about a HR map: IIRC LorDBula posted the HR map in spreadsheet form in code-blocks. Should be of great help when you want to add/remove the unit for your faction within specific regions only.
Hooahguy
12-26-2007, 01:41
ugh... i didnt read through it but it looks complicated......
so ill look at the EDB soon and ill see if i can find it....
Hooahguy
12-26-2007, 02:08
ok- i think i found it....... seeing that Baktrias internal name is romans_brutii, i found the "greek infantry kleruchoi hoplitai" in the "city_barracks_K1" section.....
heres what it said for the klruchoi section, there were 5 lines, but all said the same thing:
recruit "greek infantry kleruchoi hoplitai" 0 requires factions { romans_brutii, } and hidden_resource EA and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
so what do i need to change if i just want to expand their recruitment to the 3 original provinces for baktria?
Tellos Athenaios
12-26-2007, 02:35
You will need to add entirely new lines. You can copy over everything of the code you posted and modify the HR section to match the regions you want. And that's where the HR map in spreadsheet form will come in handy.
Hooahguy
12-26-2007, 02:45
where can i find the HR map?
am i even in the right area of the EDB?
https://forums.totalwar.org/vb/showthread.php?t=96454
check honourable LorDBula post
and...
welcome to the EB DMB decipherer club ~D
Hooahguy
12-26-2007, 03:22
ya, thanks. i already found it and trying to figure it out now as we speak......
Hooahguy
12-26-2007, 03:38
so if i wanted to recruit them in sogdiane, would it be:
recruit "greek infantry kleruchoi hoplitai" 0 requires factions { romans_brutii, } and hidden_resource EA and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
?:shrug:
im a little lost...... ~:(
Seems Ok to me...
We'll never know for sure as long as you dont have province of sogdiane in your possesion ;-)
Have fun with your experiments, mate =)
Hooahguy
12-26-2007, 04:06
ya i do..... but i just tried it out and it didnt work......
Hooahguy
12-26-2007, 04:29
VICTORY! i deciphered the EDB! its quite simple: just go into the spreadsheet that LorDBulA provided, find the province, then record the four y or n numbers into it and the province division (for me it was either B or D- it depends).
here is how i made the klerouchois available in Sogdiane:
recruit "greek infantry kleruchoi hoplitai" 0 requires factions { romans_brutii, } and hidden_resource EA and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
but remember to put it in the correct barracks entry! hope that helped!
Congrats! :laugh4:
BTW, where did you managed to put that string before you put it in barracks section? :laugh4:
Tellos Athenaios
12-26-2007, 06:15
If he forgot to make sure all consecutive barracks levels got that string... (and he was already past lucky-level-L in test-city...) .
Nothing as rewarding as squashing a bug generated by your own code:
1) It works!
2) It's always good to see your intellect prevails (even if it is over your own intellect itself)
3) While de-facto it is very much like trial/error correction of your own Math test; it is not quite as depressing somehow.
And I should know. I've spent the last 2 and a half hours or sth. to kill a bug in a Java app of mine. :smash:
Hooahguy
12-26-2007, 16:02
i first accidentaly put it in the army barracks level instead of the royal barracks level, ah well, and somehow kophen also got the ability to recruit them. ah well.
it was annoying b/c every time i wanted to test it i had to get back on the game, which took 5 minutes, then get almost immediately off it again to change something......
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.