If anyone know how to change that all factions have dismounted general's i would really appreciate help.. I just want to remove cavaltry general unit from generals..
If anyone know how to change that all factions have dismounted general's i would really appreciate help.. I just want to remove cavaltry general unit from generals..
In the data folder of your game (or mod) you will find the file export_descr_unit.txt.
This file declares many of the attributes of the units in the game.
Choose the infantry unit you want to be the general's bodyguard, then go to the line that starts with the word "attributes" and in that line add the designation general_unit.
You may also need to find the cavalry unit that used to be the general's bodyguard until then and remove the designation general_unit, or eliminate the unit altogether, though that may require modifications in other files as well.
Yeah i tried right now, and general bodyguard still staying cavalry, in scotland border horse stay as general bodyguard.. i went to dismounted feudal knights and added general_unit in attributes..
Post up the EDU entries of the current bodyguard, and the unit you want to replace them with.
And also, the unit you want to be bodyguard has to be over other ones in the EDU. I mean if you code a cavalry and an infantry unit for the same faction (the two of them having general_unit), the game will affect the first one (so the one closest to the top of the list) as the standart bodyguard unit for this faction. All the Coming of Age generals will have this unit as bodyguards. But you can still make both recruitable if you set them into the recruitment pool of any building.
Ok guys thank you so much, i will try today to do that
Gig, does the unit in the EDU need to have the general_unit if you want to give a unit to a character in the descr_strat ? I mean, if you code a unit in the EDU without the general_unit and code this unit in first under the character name in the descr_strat, what will it do ?
Nope, the general_unit simply indicates that it will be automatically used on CoA and MofH events - the lack of such a unit for a faction will mean everybody dies immediately upon that event (I call it the 'Harakiri' bug). In descr_strat you can use any unit provided the faction has ownership - else you end up with a silver surfer.
Yeah i have no luck with changing bodyguards, i tried and still no changes at all, bodyguards remain the same.. can someone show me over teamviewer?
Let me guess - you are trying to mod the main game? If so, then you might have omitted some stuff. Can I suggest that you install my Bare Geomod basic mod set up and try modding there?
You can use any unit you like in the descr_strat, doesn't matter whether or not it has general_unit. Of course that's the only time they'll appear thus, as soon as a new character appears, they will get the first unit in the EDU for their faction with general_unit.
Or exactly what Gig said...
Yeah i know, it would be awesome to make that all factions have dismounted knights, i tried everything to make this but no success, can anyone connect with team viewer to help me?
Post the EDU entries for the two units here.
You're using Notepad++ right?
Yeah im using notepad++, i think you need export_descr_unit, descr_strat and campaign script to make fully working script..
Here is my export_descr_unit btw...
You've got two of the same unit for the same set of factions:
As it stands, the first unit is the only one they'll ever use. The second is entirely redundant.Code:type Spear Militia dictionary Spear_Militia ; General's Bodyguard category infantry class spearmen voice_type Light banner faction main_spear banner holy crusade soldier Spear_Militia, 60, 0, 1 attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit, general_unit formation 1.2, 1.2, 2.4, 2.4, 5, square, schiltrom stat_health 1, 0 stat_pri 5, 2, no, 0, 0, melee, melee_blade, piercing, spear, 25, 0.6 ;stat_pri_ex 0, 0, 0 stat_pri_attr spear, spear_bonus_8 stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1 ;stat_sec_ex 0, 0, 0 stat_sec_attr no stat_pri_armour 0, 1, 6, flesh ;stat_armour_ex 0, 4, 5, 7, 1, 6, 6, flesh stat_sec_armour 0, 0, flesh stat_heat 2 stat_ground 1, -2, 3, 2 stat_mental 3, normal, trained stat_charge_dist 20 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 310, 125, 75, 60, 310, 4, 70 armour_ug_levels 0, 1, 2, 3 armour_ug_models Spear_Militia, Spear_Militia_ug1, Spear_Militia_ug2, Spear_Militia_ug3 ownership england, scotland, france, hre, denmark, spain, portugal, slave, normans era 0 scotland, spain, portugal era 1 scotland, spain, portugal ;unit_info 5, 0, 7 type Spear Militia dictionary Spear_Militia ; General's Bodyguard category infantry class spearmen voice_type Light banner faction main_spear banner holy crusade soldier Spear_Militia, 60, 0, 1 attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit, general_unit formation 1.2, 1.2, 2.4, 2.4, 5, square, schiltrom stat_health 1, 0 stat_pri 5, 2, no, 0, 0, melee, melee_blade, piercing, spear, 25, 0.6 ;stat_pri_ex 0, 0, 0 stat_pri_attr spear, spear_bonus_8 stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1 ;stat_sec_ex 0, 0, 0 stat_sec_attr no stat_pri_armour 0, 1, 6, flesh ;stat_armour_ex 0, 4, 5, 7, 1, 6, 6, flesh stat_sec_armour 0, 0, flesh stat_heat 2 stat_ground 1, -2, 3, 2 stat_mental 3, normal, trained stat_charge_dist 20 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 310, 125, 75, 60, 310, 4, 70 armour_ug_levels 0, 1, 2, 3 armour_ug_models Spear_Militia, Spear_Militia_ug1, Spear_Militia_ug2, Spear_Militia_ug3 ownership england, scotland, france, hre, denmark, spain, portugal, slave, normans era 0 scotland, spain, portugal era 1 scotland, spain, portugal ;unit_info 5, 0, 7
Is this the unit you want to use instead?
If all you're doing is replacing one bodyguard with another, and you don't care about the unit cards or text, you don't need to change anything else (except descr_strat for starting bodyguards).Code:type Dismounted Feudal Knights dictionary Dismounted_Feudal_Knights ; Dismounted Feudal Knights category infantry class heavy voice_type Heavy banner faction main_infantry banner holy crusade soldier Dismounted_Feudal_Knights, 80, 0, 1.2 attributes sea_faring, hide_forest, hardy, can_withdraw formation 1.2, 1.2, 2.4, 2.4, 3, square stat_health 1, 0 stat_pri 13, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 ;stat_pri_ex 0, 0, 0 stat_pri_attr no stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1 ;stat_sec_ex 0, 0, 0 stat_sec_attr no stat_pri_armour 7, 8, 6, metal ;stat_armour_ex 7, 8, 0, 0, 8, 6, 6, metal stat_sec_armour 0, 0, flesh stat_heat 5 stat_ground 1, -2, 3, 2 stat_mental 9, normal, trained stat_charge_dist 30 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 570, 225, 90, 70, 570, 4, 140 armour_ug_levels 3, 4 armour_ug_models Dismounted_Feudal_Knights, Dismounted_Feudal_Knights_ug1 ownership england, scotland, france, hre, denmark, spain, portugal, milan, venice, papal_states, hungary era 0 england, france, hre, denmark, spain, portugal, milan, venice, papal_states, hungary era 1 scotland ;unit_info 13, 0, 21
Yeah i want to use dismounted feudal knights for general's bodyguards, can you rename it for me export_descr_unit so i can see what you did in EDU?
Delete both entries you have for Spear Militia bodyguards.
Add this instead:
Make sure it's higher up in the EDU than any other bodyguard unit those factions might have available to them.Code:type Spear Militia dictionary Dismounted_Feudal_Knights ; Dismounted Feudal Knights category infantry class heavy voice_type Heavy banner faction main_infantry banner holy crusade soldier Dismounted_Feudal_Knights, 80, 0, 1.2 attributes sea_faring, hide_forest, hardy, can_withdraw, general_unit formation 1.2, 1.2, 2.4, 2.4, 3, square stat_health 1, 0 stat_pri 13, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 ;stat_pri_ex 0, 0, 0 stat_pri_attr no stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1 ;stat_sec_ex 0, 0, 0 stat_sec_attr no stat_pri_armour 7, 8, 6, metal ;stat_armour_ex 7, 8, 0, 0, 8, 6, 6, metal stat_sec_armour 0, 0, flesh stat_heat 5 stat_ground 1, -2, 3, 2 stat_mental 9, normal, trained stat_charge_dist 30 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 570, 225, 90, 70, 570, 4, 140 armour_ug_levels 3, 4 armour_ug_models Dismounted_Feudal_Knights, Dismounted_Feudal_Knights_ug1 ownership england, scotland, france, hre, denmark, spain, portugal, milan, venice, papal_states, hungary era 0 england, france, hre, denmark, spain, portugal, milan, venice, papal_states, hungary era 1 scotland ;unit_info 13, 0, 21