Introducing FAF Analysis Tool created by Raging_Squirrel

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Introducing FAF Analysis Tool created by Raging_Squirrel

Postby FunkOff » 10 Mar 2012, 05:50

At my request, Raging_Squirrel was nice enough to add a function to the units database called the FAF Analysis Tool, or FAT.

FAT will appear when view the information for any unit or group of units. To use FAT, you just need specify the types of information, from the unit blueprint files, and how you want them to be calculated. You need to specify the field that contains the value you want, and the arithmetic function that you want to perform on it.

For example, if you wanted to compare the Mass Cost per Build Rate of tech 1, tech 2, and tech 3 engineers, you'd check all three, click on one of them, then type, in the FAT Query text box, the equation to perform this analysis:
Code: Select all
Economy.BuildRate/Economy.BuildCostMass

Then hit "Enter" (or "submit") and FAT will perform the analysis on all selected units and display the original values and calculated value at the bottom of the DB entry. For T1, T2, and T3 engineers, the results are as follows:
FAT Result: 5/52 = 0.096153846153846
FAT Result: 10/160 = 0.0625
FAT Result: 20/490 = 0.040816326530612

No more doing these calculations by hand for each unit individually!

Also, to pull stats from weapons for units, you need to specify which weapon you want, because many units have more than one weapon. Specify which weapon you want like so:
Weapons.0.MaxRadius for the max radius of the primary weapon. Weapons.1.MaxRadius will retrieve the data from the first secondary weapons, Weapons.2.MaxRadius for the second secondary weapon and etc. Further, because the database already performed the calculation of DPS (based upon interpreting all the values that contribute to DPS) you can use this by just typing Weapons.0.DPS.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: Introducing FAF Analysis Tool

Postby SpinDrah » 10 Mar 2012, 07:06

Yes typing this "Economy.BuildRate/Economy.BuildCostMass" Is MUCH easier than typing this "5/52"

I like it!!!!!!
SpinDrah
Avatar-of-War
 
Posts: 78
Joined: 26 Sep 2011, 23:57
Has liked: 0 time
Been liked: 0 time

Re: Introducing FAF Analysis Tool created by Raging_Squirrel

Postby Raging_Squirrel » 10 Mar 2012, 15:31

there is no list of functions :D
you look inside the bp and write values you want to be calculated as xx.yy.zz

here is example
Code: Select all
    Intel = {
        VisionRadius = 20,
    },
    Interface = {
        HelpText = '<LOC urb4206_help>Shield Generator',
    },
    LifeBarHeight = 0.075,
    LifeBarOffset = 1.25,
    LifeBarSize = 3.5,
    Physics = {
        BankingSlope = 0,
        BuildOnLayerCaps = {
            LAYER_Air = false,
            LAYER_Land = true,
            LAYER_Orbit = false,
            LAYER_Seabed = false,
            LAYER_Sub = false,
            LAYER_Water = false,
        },
        DragCoefficient = 0.2,
        FlattenSkirt = true,
        MaxSteerForce = 0,
        MinSpeedPercent = 0,
        MotionType = 'RULEUMT_None',
        SkirtOffsetX = -2.5,
        SkirtOffsetZ = -2.5,
        SkirtSizeX = 6,
        SkirtSizeZ = 6,
        TurnRate = 0,
    },
    SelectionSizeX = 2.2,
    SelectionSizeZ = 2.2,
    SelectionThickness = 0.32,
    SizeX = 2,
    SizeY = 5,
    SizeZ = 2,
    StrategicIconName = 'icon_structure2_shield',
    StrategicIconSortPriority = 200,
    Wreckage = {

you write something like: Intel.VisionRadius*Physics.SkirtSizeX/2
and it will calculate this string for each bp you selected if it has such and they are proper (not text, array etc.)

But there is one moment: names are case sensitive.
And also FunkOff was wrong about DPS.
Weapon.0.DPS - this won't work
Weapon.0.dps - this is how it works
Never argue with an idiot. He will bring you down to his level and beat with experience.
User avatar
Raging_Squirrel
Priest
 
Posts: 494
Joined: 26 Aug 2011, 16:53
Location: Russia
Has liked: 1 time
Been liked: 4 times
FAF User Name: Raging_Squirrel

Re: Introducing FAF Analysis Tool

Postby Armmagedon » 11 Mar 2012, 23:56

SpinDrah wrote:Yes typing this "Economy.BuildRate/Economy.BuildCostMass" Is MUCH easier than typing this "5/52"

I like it!!!!!!

+100000
Armmagedon
Avatar-of-War
 
Posts: 135
Joined: 06 Sep 2011, 14:52
Has liked: 3 times
Been liked: 5 times
FAF User Name: ARMMAGEDON


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest