RE: AJE Game Data Bugs
Posted: Tue Nov 06, 2012 3:19 pm
Version: Public Beta Patch 1.01 (released 20121025?)
Bug: Script command syntax/usage warnings.
11 instances of questionable usage of SelectUnqUnit.
WARNING: in Events/2-GreatMithridaticWar75.sct, at (or near) line 2449: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
in event evt_nam_SLV_CrixosJoinsSpartacus:
2440 MinDate = -073/07/01
2441 MaxDate = -068/03/01
2442
2443 SelectFaction = $SLV
2444 EvalEvent = evt_nam_SLV_SpartacusRevolt;=;1
2445 EvalUnqUnit = Spartacus
2446
2447 Actions
2448 DescEvent = evt_desc_ROM_Reinforcement1
2449> SelectUnqUnit = Spartacus
2450 ChangeFacMorale = 1
2451 Replacement = SLV;$famElite;1
2452 Replacement = SLV;$famMilitia;1
2453
2454 SelectFaction = $SLV
2455 CreateGroup
2456 Posture = $Defensive
2457 SetKind = $Land
2458 Entranch = 0
http://www.ageod.net/agewiki/SelUnqUnit
Syntax: SelUnqUnit = Name [;CondSkip][;OnlyUnfixed][;OnlyFixed] [;RestrictFac]
At the AGEWiki, there is a page for SelUnqUnit, but not for SelectUnqUnit.
IIRC, at one time, there was a SelectUnqUnit page that linked to the current SelUnqUnit page. I also recall seeing a comment like "SelUnqUnit is preferred." But maybe my memory deceives me.
In the kwd database, across all games, there are
[root@berto agelint]# ./kwddat SelectUnqUnit | awk '{t+=$1}; END {print t}'
20
20 instances of SelectUnqUnit:
[root@berto agelint]# ./kwddat SelectUnqUnit
1 SelectUnqUnit = 13e Corps d'Arm�e
1 SelectUnqUnit = 7th Scouting Division
1 SelectUnqUnit = Division d'Espagne
1 SelectUnqUnit = Eduard Vogel von Falckenstein
1 SelectUnqUnit = Erie Squadron
1 SelectUnqUnit = Friedrich Franz II. von Mecklenburg
1 SelectUnqUnit = George Pearson
1 SelectUnqUnit = James A. Lindsay
1 SelectUnqUnit = William F. Williams
11 SelectUnqUnit = Spartacus
11 of them are in AJE:
[root@berto agelint]# ./kwddat SelectUnqUnit aje
11 SelectUnqUnit = Spartacus
But clearly SelUnqUnit is preferred, there being
[root@berto agelint]# ./kwddat SelUnqUnit | awk '{t+=$1}; END {print t}'
1281
1281 instances of SelUnqUnit across all the games.
A bug? Or another false positive?
The other 10 instances of SelectUnqUnit usage in AJE:
WARNING: in Events/2-GreatMithridaticWar75.sct, at (or near) line 2495: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2-GreatMithridaticWar75.sct, at (or near) line 2541: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2-GreatMithridaticWar75.sct, at (or near) line 2584: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2-GreatMithridaticWar75.sct, at (or near) line 2626: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 529: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 575: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 621: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 664: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 706: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
WARNING: in Events/2b-Spartacus73.sct, at (or near) line 2139: suspicious, undocumented usage of SelectUnqUnit, SelUnqUnit is preferred
Hope this helps.
More WARNINGs to follow.
[Disclaimer: I make no claim about the significance or insignificance of any discovered bug, problem, glitch, or anomaly. Whether or not it impacts game play, or goes entirely unnoticed. Whether in the larger scheme of things it's important, or unimportant. I just call them as I see them.]