User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Unit and Model auto-upgrade

Sat Mar 22, 2008 1:29 pm

I've inferred the use of these by playtest and examining AACW and BoA databases.
For design, I'm a little confused how these work and interact with each other:

In Models:
[INDENT]TechUpg
TrainUpg
UnitAutoUpg[/INDENT]

In Units:
[INDENT]TechAutoUpg
TrainAutoUpg
UnitAutoUpg[/INDENT]

In the 'old' BoA:
Units only have UnitAutoUpg
Models have PrimUpg, SecUpg

What are differences? I want to be sure the right upgrades are happening. [Example: Models: Militia -> Reg Inf, but when/how does the Unit convert from Militia to Infantry so the correct AutoRaise rule is applied?]

Thanks ahead of time.... :king:
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Mar 25, 2008 11:01 am

UnitAutoUpg is deprecated and has been replaced by TechAutoUpg and TrainAutoUpg in the Unit file.

In models, UnitAutoUpg, PrimUpg and SecUpg are deprecated.

TrainUpg can happen if the element has some experience or is trained by a leader. Once 50% or more of the unit are in the model corresponding to TrainUpg, then the unit itself switch to TrainAutoUpg.

TechUpg is only done by event. Same principle though.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Tue Mar 25, 2008 1:06 pm

Pocus wrote:TechUpg is only done by event. Same principle though.


Thank you for all of your answers!

I'm not sure I've seen this...

What kind of event would use this?
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]

[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]



[CENTER]Rules for new members[/CENTER]

[CENTER]Forum Rules[/CENTER]



[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Mar 25, 2008 2:33 pm

In AACW, you have some events which switch some models to another, using the TechUpg data and not the TrainUpg data.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Tue Mar 25, 2008 2:42 pm

Pocus wrote:In AACW, you have some events which switch some models to another, using the TechUpg data and not the TrainUpg data.


Aha! :sourcil:
Do you mean the 'infamous' 7% Militia Training series of events? :siffle:
If so, Do events like these require the TechUpg data to be set correctlly?
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]

[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]



[CENTER]Rules for new members[/CENTER]

[CENTER]Forum Rules[/CENTER]



[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Mar 25, 2008 4:23 pm

Actually, it will use what you give, ie the event can look at the TrainUpg or TechUpg, depending of what you prefer. Bottom line, there are 2 upgrade pathes, one TrainUpg can be used spontaneously (experience > training) but both can be used for what you want (TechUpg can be used in an event which morph your militia into demons if they walk into region 666, if it pleases you ... the meaning is up to you, as the usage) :king:
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Rafiki
Posts: 5811
Joined: Thu Aug 24, 2006 9:19 am
Location: Oslo, Norway

Tue Mar 25, 2008 5:18 pm

Oooo, I see the potential for a "Invasion of the Body Snatchers" alternative scenario :D
[CENTER]Latest patches: AACW :: NCP :: WIA :: ROP :: RUS :: PON :: AJE
Visit AGEWiki - your increasingly comprehensive source for information about AGE games
[SIGPIC][/SIGPIC]
[/CENTER]

User avatar
arclight
Private
Posts: 25
Joined: Sun Feb 18, 2007 9:28 pm
Location: MD, USA (you're not cleared for specifics)

Tue Mar 25, 2008 9:20 pm

Rafiki wrote:Oooo, I see the potential for a "Invasion of the Body Snatchers" alternative scenario :D

I see you're a Max Brooks fan.... :niark:

Can't wait until they bring out the WWZ in a movie... it will be a hoot! :dada:
"Who IS John Galt?"

Veritas Vos Liberabit

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Sat Jan 17, 2009 12:42 am

I've searched all thru the various AACW event files for the use of TechUpg and have not been able to find an example of its use anywhere. Could someone please point me in the right direction?

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Sat Jan 17, 2009 12:44 am

deleted

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Sat Jan 17, 2009 1:19 am

Gray_Lensman wrote:I've searched all thru the various AACW event files for the use of TechUpg and have not been able to find an example of its use anywhere. Would you please clarify this?


Actually, there is example in WIA:

Diplo Options for 1775:
SelectFaction = $USA
StartEvent = evt_nam_USA_TechUpgrade_Check|999|0|NULL|NULL|NULL|NULL

Conditions
CheckOption = $gmaOptionDip;USA_TechUpgrade;=;1
EvalEngagementPts = >=;10

Actions
ChgFacEngagementPts = -10
SelectSubUnits = Models $mdl_USA_Inf;factiontags USA
[color="Red"]AlterCuSubUnit = ApplyToList;convert techupg;Attempts 3[/color]
SetEvtOccurs = evt_nam_USA_Techdown;MaxOccurs;1
SetEvtOccurs = evt_nam_USA_Techdown;CuOccurs;0

SelectFaction = $GBR
GenTextMsg = opt_notify_USA_GBR_TechUpgrade;1;NULL;NULL;NULL

SelectFaction = $USA
GenTextMsg = opt_notify_USA_TechUpgrade;1;NULL;NULL;NULL
ChangeActorPool = $gmaOptionDip;MaxUse;0;ResetFreq;0;ImageID;Opt_SYW_Sainte-Foy.png;Title;opt_title_USA_TechUpgrade;MsgString;opt_desc_USA_TechUpgrade;ToolString;opt_hint_USA_TechUpgrade;SubType;USA_TechUpgrade;SParam1;USA

EndEvent


The $mdl_USA_Inf has tech upgrade to $mdl_USA_Inf2

Interestingly, there is an associated event [evt_nam_USA_Techdown] that has 60% probability to reduce an Inf2 back to Inf the next year...
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]

[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]



[CENTER]Rules for new members[/CENTER]

[CENTER]Forum Rules[/CENTER]



[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Sat Jan 17, 2009 3:29 am

deleted

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Sat Jan 17, 2009 9:56 am

Just replied in another thread. TrainUpg does that.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Coregonas
AGEod Guard of Honor
Posts: 1072
Joined: Sun Nov 25, 2007 9:34 pm
Location: Barcelona-Catalunya

Sat Jan 17, 2009 1:33 pm

Following this thread... 2 questions.

1.- there is some limit regarding the number of units than can be upgraded EACH TURN due to the Trainupg event...

I ve found only a maximum of 2 units per turn do upgrade in my games due to EXP.

Perhaps some time 3 or more units do upgrade, but I can´t remember me have never this. :blink:

The code posted previously is then the limit ??:
[color="Red"]AlterCuSubUnit = ApplyToList;convert techupg;Attempts 3[/color]

And...
2.- The message "The soldiers of 2nd South caroline... have been trained with success" is due to this upgrade happening?

I ve found Soldiers trained by Cooper receive also this msg (ok, following your explanation before)...

but I remember some unit trained with this msg with NO EXP nor any general training it. I should found for it, I dont remember now exactly when I saw this.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 10 guests