PDA

View Full Version : How to Change the Recruitment Area?



Centurio Nixalsverdrus
07-27-2008, 18:33
Hi,

I'd like to change the recruitment area for my Makedonian Klerouchoi Phalangitai to something more like the Seleukids have. I wouldn't mind if they were just plain everywhere recruitable, I could easily restrict myself to recruit them only where I have built Katatoikiai and the respective lvl3 local MIC.

What do I have to do? Which file to change? Thank you. :smiley:

LorDBulA
07-27-2008, 19:01
I wouldn't mind if they were just plain everywhere recruitable,

This is simple. Open export_descr_buildings.txt file. Now look for unit you are interested in, make sure you only change lines that have your faction mentioned between brackets {} and delete all hidden resources requirements.
Delete all other entries in the same building. They are not necessary anymore.

If there are more factions then yours mentioned between brackets {}, copy the whole line and paste it below original.
Delete your faction name from original line and delete all but your faction from new line. Now delete all resources requirements from new line.
In all other lines in the same building for chosen unit delete your faction from brackets {} (if there is more then one faction mentioned or whole line if its only your faction ).

Always make backup a file before you start to change it!

Edited:

Example:
Before:


recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource A and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8


After:


recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { gauls, }
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource A and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource NW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
recruit "celtic infantry botroas" 0 requires factions { scythia, britons, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8

Centurio Nixalsverdrus
07-28-2008, 18:03
Thank you, LorDBulA. I'll try that and may ask again when I encounter problems. :smiley:

For what do all these lines stand? For every province where this specific unit is recruitable? Or are these all the possible combinations of hidden_resources which enable recruitment of that unit?

And if I want to add recruitment in a specific province, I have to find out the hidden_resources of that province (in that "province file" I think, seen it somewhere) and add them in a line?

LorDBulA
07-28-2008, 18:25
For what do all these lines stand? For every province where this specific unit is recruitable?

Yes each combination of resources uniquely identifies a province.

Example:

hidden_resource NW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8

I have posted list of hidden resources for each province not so long ago you should easily find it using forum search option.


And if I want to add recruitment in a specific province, I have to find out the hidden_resources of that province (in that "province file" I think, seen it somewhere) and add them in a line?

Yes. You have to create new line and add proper hidden resources to it.
And if you want to delete recruitment for specific province you have to delete proper line.

Be careful with editing recruitment by hand. We had a lot of troubles doing so. Its easy to produce CTD. I would recommend baby steps approach.

Centurio Nixalsverdrus
07-29-2008, 01:20
Thank you LorDBulA. :smiley:

Tellos Athenaios
07-29-2008, 21:38
Also: be sure to save the file in "ANSI" or "Windows1252". (a real good tool likely calls it Windows 1252, as strictly speaking it's not ANSI...)

http://en.wikipedia.org/wiki/Code_page#Windows_.28ANSI.29_code_pages

Centurio Nixalsverdrus
07-29-2008, 23:57
Are these Text Editors?

Tellos Athenaios
07-30-2008, 00:42
Why not?

Centurio Nixalsverdrus
07-30-2008, 01:28
Sorry it wasn't clear for a text editor noob like me. ~:0 :smiley:

||Lz3||
07-30-2008, 03:26
so I must save the file as Windows1252 else it wont work?

cause I did some moddifications to my EDB and saved it as ANSI :book2:

Tellos Athenaios
07-30-2008, 11:16
Windows 1252 is more popularly (albeit erroneously) known as ANSI. Therefore some editors choose to call it ANSI instead of Windows 1252.

Rest assured, that subtle nomencalture thingy won't crash your game. ~;)

LorDBulA
07-30-2008, 11:56
While Tellos Athenaios remarks are totally valid they can bring a lot of unnecessary confusion to the topic of editing EDB.
Truth is that its very unlikely that you will have to manually select proper encoding for this file so you really should not bother with it.
I may be wrong but I dont think any editor will have problems with editing this file as far as encoding is concerned.

Liberator
02-03-2012, 23:32
Also: be sure to save the file in "ANSI" or "Windows1252". (a real good tool likely calls it Windows 1252, as strictly speaking it's not ANSI...)

http://en.wikipedia.org/wiki/Code_page#Windows_.28ANSI.29_code_pages

Doesn't the standard Windows text editor do this anyway?

Andres
02-05-2012, 22:22
Doesn't the standard Windows text editor do this anyway?

Maybe it does now; don't know if it did three and a half years ago...


Please, be careful with thread necromancy; the ritual might go wrong and before you know it, we have zombie threads running around all over the place and I have only one shotgun and one box with 50 shells.