Jagger2013
General of the Army
Posts: 641
Joined: Sat Apr 27, 2013 2:14 am

Generic General

Fri Oct 17, 2014 3:17 am

I created a generic general to be used with RUS. The player can purchase this general just like a cavalry regiment or an artillery piece. Everything works fine except the game refuses to use the flavor names. The game also refuses to use the flavor names for the generic generals within the scenario setup files. Basically each general has the title, "Polish Division General" which is acceptable. However it would be much better if the game would use the flavor names. Anyone have any suggestions why the game won't use flavor names for the General unit?

I am beginning to wonder if there is some sort of hard coding preventing the use of flavor names for leader unit/models. I guess I could try converting the model/unit files from leader type to model type and see if they would then accept flavor names. I think the units would still provide leadership values as non-leader units can provide some leader values. Might work.

So any ideas about why the generic general unit does not accept custom/flavor names?


Here is the model file:

UID = 1765
NationTag = POL
Name = Polish Division General
Alias = ldr_Pol_LeaderGen1
ShortName = Polish Divisional General
Text = $ldr_txt_POL_LeaderGen
To&E = Pistol
Family = $famLeader
ImageID = symbol_general_1.png
Color = $colPOLRegular
Sound_FactionTag = FRA
Portrait = Unit_POL_Generic.png
OffFire = 1
DefFire = 1
Initiative = 10
Range = 1
ROF = 1
Protection = 4
TQ = 10
Assault = 2
Hits = 1
MenPerHit = 1
HorsesPerHit = 0
VehiclesPerHit = 0
GunsPerHit = 0
PlanesPerHit = 0
ArmouredPerHit = 0
HitsPerShip = 0
Cohesion = 80
DmgDone = 0
CohDone = 0
AsltDmgDone = 0
AsltCohDone = 0
Move Type = $Ranger
Move Ratio = 100
CohMove = 50
AtrMove = 100
BaseCohLoss = 10
BaseAttrition = 10
DetectLand = 1
DetectSea = 1
Blockade = 0
HideValue = 3
Weight = 0
ProgRate = 10
Police = 0
Patrol = 1
Evasion = 30
CapturePerc = 0
IsSupport = 1
SupplyUsage = 0
SupplyStore = 0
AmmoUsage = 0
AmmoStore = 0
ShareSupply = 1
SupHitPen = 0
SupMovePen = 0
SupCbtPen = 0
VPValue = 3
POLValue = 1
Money = 8
Conscript = 0
WarSupply = 0
Days = 14
Morale = 0
LeaderRank = 1
Seniority = 125
MaxRank = 1
Title = General
LandLeader = 1
Promotable = No
Strategic = 4
Offensive = 1
Defensive = 1
CombatDeathChance = 100
CustomNames = General Wroblewski|General Pogorzelski

And here is the unit file:

UID = 1779
NationTag = POL
Name = Polish Division General
Alias = uni_POL_LeaderGen1
ForcePool = 10
ShortName = Polish Division General
Text = $uni_POL_LeaderGen1_txt
Color = $colPOLRegular
ModelType0 = $ldr_Pol_LeaderGen1|1
FamilyType0 = $famLeader|1
CmdCost = 0
Pillage = 0
BuildRule = $recCity
BuildWeight = 1
Area = $Recruit_Poles
AltArea = $Area_Galicia
Flavor Commander = General Wroblewski|General Pogorzelski

User avatar
Leibst
Posts: 2504
Joined: Wed Sep 27, 2006 6:06 am
Location: Madrid, Spain

Tue Nov 04, 2014 12:57 pm

Use in the unit file customnames instead of Flavor Commander

CustomNames = Wroblewski|Pogorzelski .

I have removed the word general as it could happen to see in the game 'general General Wroblewski', i'm not sure.
Image
Headquarter game designer of España:1936 and Thirty Years War
http://headquarter.es/wp/

Jagger2013
General of the Army
Posts: 641
Joined: Sat Apr 27, 2013 2:14 am

Tue Nov 04, 2014 4:12 pm

Thanks, I will give it a shot.

Jagger2013
General of the Army
Posts: 641
Joined: Sat Apr 27, 2013 2:14 am

Wed Nov 05, 2014 1:26 am

No luck. I think there is something hardcoded about the leader models since none of the various methods of giving a subunit a custom name is working. Turning the leader into a model might work but I suspect then some of the leader characteristics would probably stop working.

They are useable as is and division commander as a name is acceptable.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 1 guest