Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

SCM Variable Usage Analyzer


goodidea82
 Share

Recommended Posts

This is rather a quick and dirty pyhon script than a tool, but it gets the job done.

 

SCM Variable Usage Analyzer 0.1
by GoodIdea82, 2015

This is a quick and dirty python script. It analyzes in which sections of main.scm (main, missions, external scripts) local and global variables are used. It requires that the main.scm has been decompiled with SannyBuilder. It should work with any main.scm, e.g. SA, VC, LC.

Usage. Edit the script and change the dir variable so that it contains the path to your main.txt. Generate main.txt by decompiling main.scm using SannyBuilder. This script reads the decompiled code and creates the files variableUsage.txt and sideEffectFreeVariables.txt. The file variableUsage.txt finds for all sections (main, missions, external scripts) which variables are used. After each variable it lists in which other section the variable is also used. The file sideEffectFreeVariables.txt finds all variables which occur only in one section and do not occur in main, mission 1, or mission 2. Hence, the side-effect free variables are used only locally in a one section. Actually not variables are analyzed but variable expressions. For example the array access $123($45,i4) and $123(3,i4) may refer to the same variable if $45=3.

For example:
- An excerpt from variableUsage.txt

 

 

Output from SCM Variable Usage Analyzer 0.1 by GoodIdea82Number of sections: 214Number of variables expressions: 9219Number of side-effect-free variable expressions: 4432-----------------------------Found section: MAIN   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: Mission 0   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: Mission 1   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: Mission 2   Biggest local variable (ignoring [email protected] and [email protected]): 182Found section: Mission 3   Biggest local variable (ignoring [email protected] and [email protected]): 693Found section: Mission 4   Biggest local variable (ignoring [email protected] and [email protected]): 438Found section: Mission 5   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: Mission 6   Biggest local variable (ignoring [email protected] and [email protected]): 678Found section: Mission 7   Biggest local variable (ignoring [email protected] and [email protected]): 588Found section: Mission 8   Biggest local variable (ignoring [email protected] and [email protected]): 650Found section: Mission 9   Biggest local variable (ignoring [email protected] and [email protected]): 283Found section: Mission 10   Biggest local variable (ignoring [email protected] and [email protected]): 74Found section: Mission 11   Biggest local variable (ignoring [email protected] and [email protected]): 127Found section: Mission 12   Biggest local variable (ignoring [email protected] and [email protected]): 93Found section: Mission 13   Biggest local variable (ignoring [email protected] and [email protected]): 100Found section: Mission 14   Biggest local variable (ignoring [email protected] and [email protected]): 110Found section: Mission 15   Biggest local variable (ignoring [email protected] and [email protected]): 109Found section: Mission 16   Biggest local variable (ignoring [email protected] and [email protected]): 103Found section: Mission 17   Biggest local variable (ignoring [email protected] and [email protected]): 548Found section: Mission 18   Biggest local variable (ignoring [email protected] and [email protected]): 408Found section: Mission 19   Biggest local variable (ignoring [email protected] and [email protected]): 296Found section: Mission 20   Biggest local variable (ignoring [email protected] and [email protected]): 550Found section: Mission 21   Biggest local variable (ignoring [email protected] and [email protected]): 75Found section: Mission 22   Biggest local variable (ignoring [email protected] and [email protected]): 361Found section: Mission 23   Biggest local variable (ignoring [email protected] and [email protected]): 187Found section: Mission 24   Biggest local variable (ignoring [email protected] and [email protected]): 279Found section: Mission 25   Biggest local variable (ignoring [email protected] and [email protected]): 183Found section: Mission 26   Biggest local variable (ignoring [email protected] and [email protected]): 477Found section: Mission 27   Biggest local variable (ignoring [email protected] and [email protected]): 149Found section: Mission 28   Biggest local variable (ignoring [email protected] and [email protected]): 203Found section: Mission 29   Biggest local variable (ignoring [email protected] and [email protected]): 131Found section: Mission 30   Biggest local variable (ignoring [email protected] and [email protected]): 290Found section: Mission 31   Biggest local variable (ignoring [email protected] and [email protected]): 330Found section: Mission 32   Biggest local variable (ignoring [email protected] and [email protected]): 97Found section: Mission 33   Biggest local variable (ignoring [email protected] and [email protected]): 234Found section: Mission 34   Biggest local variable (ignoring [email protected] and [email protected]): 151Found section: Mission 35   Biggest local variable (ignoring [email protected] and [email protected]): 742Found section: Mission 36   Biggest local variable (ignoring [email protected] and [email protected]): 157Found section: Mission 37   Biggest local variable (ignoring [email protected] and [email protected]): 331Found section: Mission 38   Biggest local variable (ignoring [email protected] and [email protected]): 494Found section: Mission 39   Biggest local variable (ignoring [email protected] and [email protected]): 333Found section: Mission 40   Biggest local variable (ignoring [email protected] and [email protected]): 248Found section: Mission 41   Biggest local variable (ignoring [email protected] and [email protected]): 171Found section: Mission 42   Biggest local variable (ignoring [email protected] and [email protected]): 639Found section: Mission 43   Biggest local variable (ignoring [email protected] and [email protected]): 356Found section: Mission 44   Biggest local variable (ignoring [email protected] and [email protected]): 281Found section: Mission 45   Biggest local variable (ignoring [email protected] and [email protected]): 46Found section: Mission 46   Biggest local variable (ignoring [email protected] and [email protected]): 146Found section: Mission 47   Biggest local variable (ignoring [email protected] and [email protected]): 216Found section: Mission 48   Biggest local variable (ignoring [email protected] and [email protected]): 41Found section: Mission 49   Biggest local variable (ignoring [email protected] and [email protected]): 350Found section: Mission 50   Biggest local variable (ignoring [email protected] and [email protected]): 190Found section: Mission 51   Biggest local variable (ignoring [email protected] and [email protected]): 338Found section: Mission 52   Biggest local variable (ignoring [email protected] and [email protected]): 170Found section: Mission 53   Biggest local variable (ignoring [email protected] and [email protected]): 755Found section: Mission 54   Biggest local variable (ignoring [email protected] and [email protected]): 186Found section: Mission 55   Biggest local variable (ignoring [email protected] and [email protected]): 269Found section: Mission 56   Biggest local variable (ignoring [email protected] and [email protected]): 576Found section: Mission 57   Biggest local variable (ignoring [email protected] and [email protected]): 160Found section: Mission 58   Biggest local variable (ignoring [email protected] and [email protected]): 449Found section: Mission 59   Biggest local variable (ignoring [email protected] and [email protected]): 285Found section: Mission 60   Biggest local variable (ignoring [email protected] and [email protected]): 272Found section: Mission 61   Biggest local variable (ignoring [email protected] and [email protected]): 136Found section: Mission 62   Biggest local variable (ignoring [email protected] and [email protected]): 152Found section: Mission 63   Biggest local variable (ignoring [email protected] and [email protected]): 142Found section: Mission 64   Biggest local variable (ignoring [email protected] and [email protected]): 200Found section: Mission 65   Biggest local variable (ignoring [email protected] and [email protected]): 197Found section: Mission 66   Biggest local variable (ignoring [email protected] and [email protected]): 178Found section: Mission 67   Biggest local variable (ignoring [email protected] and [email protected]): 462Found section: Mission 68   Biggest local variable (ignoring [email protected] and [email protected]): 171Found section: Mission 69   Biggest local variable (ignoring [email protected] and [email protected]): 194Found section: Mission 70   Biggest local variable (ignoring [email protected] and [email protected]): 89Found section: Mission 71   Biggest local variable (ignoring [email protected] and [email protected]): 91Found section: Mission 72   Biggest local variable (ignoring [email protected] and [email protected]): 369Found section: Mission 73   Biggest local variable (ignoring [email protected] and [email protected]): 129Found section: Mission 74   Biggest local variable (ignoring [email protected] and [email protected]): 557Found section: Mission 75   Biggest local variable (ignoring [email protected] and [email protected]): 233Found section: Mission 76   Biggest local variable (ignoring [email protected] and [email protected]): 126Found section: Mission 77   Biggest local variable (ignoring [email protected] and [email protected]): 286Found section: Mission 78   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: Mission 79   Biggest local variable (ignoring [email protected] and [email protected]): 183Found section: Mission 80   Biggest local variable (ignoring [email protected] and [email protected]): 684Found section: Mission 81   Biggest local variable (ignoring [email protected] and [email protected]): 229Found section: Mission 82   Biggest local variable (ignoring [email protected] and [email protected]): 112Found section: Mission 83   Biggest local variable (ignoring [email protected] and [email protected]): 271Found section: Mission 84   Biggest local variable (ignoring [email protected] and [email protected]): 340Found section: Mission 85   Biggest local variable (ignoring [email protected] and [email protected]): 270Found section: Mission 86   Biggest local variable (ignoring [email protected] and [email protected]): 284Found section: Mission 87   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: Mission 88   Biggest local variable (ignoring [email protected] and [email protected]): 303Found section: Mission 89   Biggest local variable (ignoring [email protected] and [email protected]): 174Found section: Mission 90   Biggest local variable (ignoring [email protected] and [email protected]): 408Found section: Mission 91   Biggest local variable (ignoring [email protected] and [email protected]): 236Found section: Mission 92   Biggest local variable (ignoring [email protected] and [email protected]): 174Found section: Mission 93   Biggest local variable (ignoring [email protected] and [email protected]): 129Found section: Mission 94   Biggest local variable (ignoring [email protected] and [email protected]): 118Found section: Mission 95   Biggest local variable (ignoring [email protected] and [email protected]): 143Found section: Mission 96   Biggest local variable (ignoring [email protected] and [email protected]): 324Found section: Mission 97   Biggest local variable (ignoring [email protected] and [email protected]): 150Found section: Mission 98   Biggest local variable (ignoring [email protected] and [email protected]): 228Found section: Mission 99   Biggest local variable (ignoring [email protected] and [email protected]): 286Found section: Mission 100   Biggest local variable (ignoring [email protected] and [email protected]): 166Found section: Mission 101   Biggest local variable (ignoring [email protected] and [email protected]): 388Found section: Mission 102   Biggest local variable (ignoring [email protected] and [email protected]): 532Found section: Mission 103   Biggest local variable (ignoring [email protected] and [email protected]): 297Found section: Mission 104   Biggest local variable (ignoring [email protected] and [email protected]): 89Found section: Mission 105   Biggest local variable (ignoring [email protected] and [email protected]): 214Found section: Mission 106   Biggest local variable (ignoring [email protected] and [email protected]): 136Found section: Mission 107   Biggest local variable (ignoring [email protected] and [email protected]): 59Found section: Mission 108   Biggest local variable (ignoring [email protected] and [email protected]): 95Found section: Mission 109   Biggest local variable (ignoring [email protected] and [email protected]): 270Found section: Mission 110   Biggest local variable (ignoring [email protected] and [email protected]): 201Found section: Mission 111   Biggest local variable (ignoring [email protected] and [email protected]): 183Found section: Mission 112   Biggest local variable (ignoring [email protected] and [email protected]): 298Found section: Mission 113   Biggest local variable (ignoring [email protected] and [email protected]): 64Found section: Mission 114   Biggest local variable (ignoring [email protected] and [email protected]): 65Found section: Mission 115   Biggest local variable (ignoring [email protected] and [email protected]): 63Found section: Mission 116   Biggest local variable (ignoring [email protected] and [email protected]): 65Found section: Mission 117   Biggest local variable (ignoring [email protected] and [email protected]): 114Found section: Mission 118   Biggest local variable (ignoring [email protected] and [email protected]): 295Found section: Mission 119   Biggest local variable (ignoring [email protected] and [email protected]): 252Found section: Mission 120   Biggest local variable (ignoring [email protected] and [email protected]): 70Found section: Mission 121   Biggest local variable (ignoring [email protected] and [email protected]): 148Found section: Mission 122   Biggest local variable (ignoring [email protected] and [email protected]): 240Found section: Mission 123   Biggest local variable (ignoring [email protected] and [email protected]): 165Found section: Mission 124   Biggest local variable (ignoring [email protected] and [email protected]): 276Found section: Mission 125   Biggest local variable (ignoring [email protected] and [email protected]): 112Found section: Mission 126   Biggest local variable (ignoring [email protected] and [email protected]): 137Found section: Mission 127   Biggest local variable (ignoring [email protected] and [email protected]): 541Found section: Mission 128   Biggest local variable (ignoring [email protected] and [email protected]): 185Found section: Mission 129   Biggest local variable (ignoring [email protected] and [email protected]): 258Found section: Mission 130   Biggest local variable (ignoring [email protected] and [email protected]): 963Found section: Mission 131   Biggest local variable (ignoring [email protected] and [email protected]): 882Found section: Mission 132   Biggest local variable (ignoring [email protected] and [email protected]): 780Found section: Mission 133   Biggest local variable (ignoring [email protected] and [email protected]): 193Found section: Mission 134   Biggest local variable (ignoring [email protected] and [email protected]): 34Found section: External script 0 (PLAYER_PARACHUTE)   Biggest local variable (ignoring [email protected] and [email protected]): 27Found section: External script 1 (PARACHUTE)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 2 (BCESAR2)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 3 (BCESAR3)   Biggest local variable (ignoring [email protected] and [email protected]): 29Found section: External script 4 (SLOT_MACHINE)   Biggest local variable (ignoring [email protected] and [email protected]): 17Found section: External script 5 (ROULETTE)   Biggest local variable (ignoring [email protected] and [email protected]): 28Found section: External script 6 (OTB_SCRIPT)   Biggest local variable (ignoring [email protected] and [email protected]): 1Found section: External script 7 (ARCADE)   Biggest local variable (ignoring [email protected] and [email protected]): 1Found section: External script 8 (VENDING_MACHINE)   Biggest local variable (ignoring [email protected] and [email protected]): 3Found section: External script 9 (FOOD_VENDOR)   Biggest local variable (ignoring [email protected] and [email protected]): 3Found section: External script 10 (GATES_SCRIPT)   Biggest local variable (ignoring [email protected] and [email protected]): 9Found section: External script 11 (GYMBIKE)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 12 (GYMBENCH)   Biggest local variable (ignoring [email protected] and [email protected]): 30Found section: External script 13 (GYMTREAD)   Biggest local variable (ignoring [email protected] and [email protected]): 29Found section: External script 14 (GYMDUMB)   Biggest local variable (ignoring [email protected] and [email protected]): 27Found section: External script 15 (BASKETB)   Biggest local variable (ignoring [email protected] and [email protected]): 30Found section: External script 16 (VIDPOK)   Biggest local variable (ignoring [email protected] and [email protected]): 26Found section: External script 17 (BLACKJ)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 18 (WHEELO)   Biggest local variable (ignoring [email protected] and [email protected]): 27Found section: External script 19 (DEALER)   Biggest local variable (ignoring [email protected] and [email protected]): 17Found section: External script 20 (HOME_BRAINS)   Biggest local variable (ignoring [email protected] and [email protected]): 19Found section: External script 21 (POOL_SCRIPT)   Biggest local variable (ignoring [email protected] and [email protected]): 7Found section: External script 22 (LOWR_CONT)   Biggest local variable (ignoring [email protected] and [email protected]): 4Found section: External script 23 (BURG_BRAINS)   Biggest local variable (ignoring [email protected] and [email protected]): 15Found section: External script 24 (GF_MEETING)   Biggest local variable (ignoring [email protected] and [email protected]): 23Found section: External script 25 (GF_DATE)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 26 (GF_SEX)   Biggest local variable (ignoring [email protected] and [email protected]): 25Found section: External script 27 (CASINO_AMBIENCE)   Biggest local variable (ignoring [email protected] and [email protected]): 29Found section: External script 28 (BAR_AMBIENCE)   Biggest local variable (ignoring [email protected] and [email protected]): 16Found section: External script 29 (FOODBRAINS)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 30 (OTB_AMBIENCE)   Biggest local variable (ignoring [email protected] and [email protected]): 13Found section: External script 31 (STRIP_AMBIENCE)   Biggest local variable (ignoring [email protected] and [email protected]): 28Found section: External script 32 (PLANES)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 33 (TRAINS)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 34 (ZERO_AMBIENCE)   Biggest local variable (ignoring [email protected] and [email protected]): 10Found section: External script 35 (DANCE)   Biggest local variable (ignoring [email protected] and [email protected]): 31Found section: External script 36 (SHOPKEEPER)   Biggest local variable (ignoring [email protected] and [email protected]): 15Found section: External script 37 (CUSTOMER_PANIC)   Biggest local variable (ignoring [email protected] and [email protected]): 3Found section: External script 38 (BAR_STAFF)   Biggest local variable (ignoring [email protected] and [email protected]): 16Found section: External script 39 (BOUNCER)   Biggest local variable (ignoring [email protected] and [email protected]): 6Found section: External script 40 (OTB_STAFF)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 41 (PCHAIR)   Biggest local variable (ignoring [email protected] and [email protected]): 21Found section: External script 42 (PCUSTOM)   Biggest local variable (ignoring [email protected] and [email protected]): 12Found section: External script 43 (OTBWTCH)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 44 (OTBSLP)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 45 (OTBTILL)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 46 (FBOOTHR)   Biggest local variable (ignoring [email protected] and [email protected]): 21Found section: External script 47 (FBOOTHL)   Biggest local variable (ignoring [email protected] and [email protected]): 21Found section: External script 48 (BARGUY)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 49 (PEDROUL)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 50 (PEDCARD)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 51 (PEDSLOT)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 52 (DANCER)   Biggest local variable (ignoring [email protected] and [email protected]): 9Found section: External script 53 (STRIPW)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 54 (STRIPM)   Biggest local variable (ignoring [email protected] and [email protected]): 11Found section: External script 55 (BROWSE)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 56 (COPSIT)   Biggest local variable (ignoring [email protected] and [email protected]): 21Found section: External script 57 (COPLOOK)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 58 (TICKET)   Biggest local variable (ignoring [email protected] and [email protected]): 4Found section: External script 59 (SHOPPER)   Biggest local variable (ignoring [email protected] and [email protected]): 5Found section: External script 60 (AMMU)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 61 (TATTOO)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 62 (BARBER)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 63 (WARDROBE)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 64 (CLOTHES)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 65 (JUNKFUD)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 66 (CARMOD1)   Biggest local variable (ignoring [email protected] and [email protected]): 0Found section: External script 67 (CRANE1)   Biggest local variable (ignoring [email protected] and [email protected]): 24Found section: External script 68 (CRANE2)   Biggest local variable (ignoring [email protected] and [email protected]): 29Found section: External script 69 (CRANE3)   Biggest local variable (ignoring [email protected] and [email protected]): 16Found section: External script 70 (CARPARK1)   Biggest local variable (ignoring [email protected] and [email protected]): 9Found section: External script 71 (IMPOUND)   Biggest local variable (ignoring [email protected] and [email protected]): 28Found section: External script 72 (VALET)   Biggest local variable (ignoring [email protected] and [email protected]): 30Found section: External script 73 (PHOTO)   Biggest local variable (ignoring [email protected] and [email protected]): 10Found section: External script 74 (PRISONR)   Biggest local variable (ignoring [email protected] and [email protected]): 13Found section: External script 75 (CAMERA)   Biggest local variable (ignoring [email protected] and [email protected]): 21Found section: External script 76 (DEBT)   Biggest local variable (ignoring [email protected] and [email protected]): 20Found section: External script 77 (HOTDOG)   Biggest local variable (ignoring [email protected] and [email protected]): 3SECTION: MAIN ##########################################  Biggest local variable: 31  Local vars: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], @s, [email protected], [email protected], [email protected], @, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],  Var: $1912   Mission 0, MAIN, External script 68 (CRANE2), Mission 69, Var: $46   Mission 0, MAIN, Var: $696   MAIN, Var: $Help_Trucker_MIssions_Shown   Mission 0, MAIN, Var: $1371   MAIN, Var: $X_Property_To_Buy[7]   Mission 0, MAIN, Mission 134, Var: $X_Property_To_Buy[28]   Mission 0, MAIN, Mission 134, Var: $Girl_Desired_Progress_To_Invite[5]   MAIN, Var: $2743   Mission 0, MAIN, Var: $Current_Month_Day   Mission 1, Mission 115, External script 12 (GYMBENCH), External script 13 (GYMTREAD), Mission 114, External script 11 (GYMBIKE), Mission 116, MAIN, External script 14 (GYMDUMB), Var: $Pickup_Info_Hospital   MAIN, Var: $1264[0]   MAIN, Var: $1359   MAIN, Var: $166   MAIN, Var: $2717   Mission 0, MAIN, Mission 109, Var: $Z_Race_Tournament_Point[3]   Mission 0, MAIN, Var: $X_Madd_Dogg_Crib   Mission 0, MAIN, Var: $Garage_Total_Passed_Missions   MAIN, Mission 50, Mission 49, Var: $Truth_Total_Passed_Missions   External script 60 (AMMU), Mission 47, MAIN, Mission 46, Var: $371[5]   MAIN, Var: $HJ_Stunt_Flips   MAIN, Var: $X_STUNT_Mission_NRG500   Mission 0, MAIN, Var: $CRASH_LS_Total_Passed_Missions   MAIN, Mission 23, Mission 2, Mission 22, Var: $1342   MAIN, Var: $Save_Pickups_Y[5]   Mission 0, MAIN, Var: $623   MAIN, Mission 107, Mission 104, Mission 106, Var: $Gambles_CashWin   MAIN, External script 5 (ROULETTE), External script 4 (SLOT_MACHINE), Mission 8, Var: $Save_Pickups_Y[15]   Mission 0, Mission 47, MAIN, Var: $170   MAIN, Var: $2644   MAIN, Var: $622   Mission 112, MAIN, Mission 108, Mission 105, Var: $1185   MAIN, Mission 69, Var: $161   Mission 126, MAIN, Var: $STAT_Progress_With_Millie   MAIN, Var: $Buy_Asset_Pickups[1]   Mission 0, MAIN, Var: $Z_SF_Garage_3   Mission 0, MAIN, Var: $Help_Busted_Shown   MAIN, Var: $Save_Pickups[1]   Mission 0, MAIN, Var: $1677   Mission 0, MAIN, Mission 134, Var: $Unlocked_Import_Cars[8]   MAIN, Var: $icon_Airyard   MAIN, Mission 78, Mission 83, Var: $Help_INTRO_Shown   Mission 0, MAIN, Var: $Buy_Asset_Pickups[9]   Mission 0, MAIN, Var: $377[4]   MAIN, Var: $Mission_Intro_Passed   Mission 0, MAIN, Mission 2, Var: $GirlMarker[4]   MAIN, Var: s$Import_Car_Names[0]   MAIN, Var: $Marker_Pilot_School   MAIN, Mission 134, Mission 83, Var: $Help_Valet_Shown   Mission 0, MAIN, Var: $Property_Bought_Flags($BUY_Index,32i)   MAIN, Var: $Special_Axis_X   External script 15 (BASKETB), External script 67 (CRANE1), External script 65 (JUNKFUD), Mission 8, Mission 6, Mission 101, Mission 119, External script 32 (PLANES), Mission 120, External script 69 (CRANE3), External script 18 (WHEELO), Mission 83, Mission 71, MAIN, Mission 91, External script 68 (CRANE2), Mission 5, External script 16 (VIDPOK), Var: $Weekday   External script 3 (BCESAR3), MAIN, External script 2 (BCESAR2), Var: $1407   MAIN, Var: $2645   MAIN, Var: s$1281   Mission 90, Mission 2, Mission 105, Mission 56, Mission 102, MAIN, Mission 91, Mission 89, Var: $2351   Mission 0, MAIN, Var: $10045   MAIN, External script 65 (JUNKFUD), Var: $X_STUNT_Mission_BMX   Mission 0, MAIN, Var: $Save_Pickups[13]   MAIN, Mission 38, Var: $Save_Pickups_Z[12]   Mission 0, MAIN, Var: $Buy_Asset_Pickups($BUY_Index,32i)   MAIN, Var: $Crane_Magnet   Mission 0, MAIN, External script 68 (CRANE2), Mission 69, Var: $Save_Pickups_Index   Mission 0, MAIN, Var: $Girl_Progress[4]   MAIN, Var: v$Active_Interior_Name   External script 48 (BARGUY), External script 28 (BAR_AMBIENCE), MAIN, External script 27 (CASINO_AMBIENCE), Var: $Z_Race_Tournament_Point[1]   Mission 0, MAIN, Var: $383[2]   MAIN, Var: $1266[0]   MAIN, Var: $Z_Ryder_house   Mission 0, MAIN, Mission 17, Var: $Y_Property_To_Buy[11]   Mission 0, MAIN, Mission 134, Var: $1343   MAIN, Var: $1366   MAIN, Var: $532   MAIN, Mission 52, Mission 59, Mission 51, Var: $Save_Pickups_Z[14]   Mission 0, MAIN, Mission 45, Var: $2722   Mission 0, MAIN, Var: $1353   MAIN, Var: $Dialog_WAV[1]   MAIN, Var: $HJ_Wheelie_Time   MAIN, Var: $Export_Price_Health_Multiplier   MAIN, Var: $Save_Pickups[17]   MAIN, Var: $Script_Status   MAIN, Mission 97, Mission 51, Var: $1675   Mission 0, MAIN, Mission 134, Var: $Unlocked_Import_Cars[2]   MAIN, Var: $GirlMarker[2]   MAIN, Var: $2718   Mission 0, MAIN, Mission 109, Var: $BCESAR3_Script_Launched   MAIN, Var: $Z_STUNT_Mission_NRG500   Mission 0, MAIN, Var: $X_Property_To_Buy[1]   Mission 0, MAIN, Var: $1277($1288,2s)   MAIN, Var: s$Dialog_Subtitles[11]   MAIN, Var: $Save_Pickups_X[6]   Mission 0, MAIN, Var: $1046   MAIN, Var: $Z_Race_Tournament_Point[0]   Mission 0, MAIN, Var: $Current_Time_in_ms2   Mission 132, External script 9 (FOOD_VENDOR), Mission 133, Mission 4, Mission 130, Mission 124, Mission 123, Mission 35, External script 76 (DEBT), Mission 7, Mission 93, Mission 94, External script 77 (HOTDOG), External script 4 (SLOT_MACHINE), External script 8 (VENDING_MACHINE), Mission 40, Mission 82, Mission 42, Mission 62, External script 10 (GATES_SCRIPT), Mission 3, MAIN, External script 5 (ROULETTE), Var: $1681   Mission 0, MAIN, Mission 134, Var: $parked_IMPEXPM_cars([email protected],30i)   MAIN, Var: $X_Property_To_Buy[31]   Mission 0, MAIN, Mission 134, Var: $STAT_Lung_Capacity   MAIN, Var: $Import_Car_Handles[4]   MAIN, Var: v$1225   MAIN, Var: $396   MAIN, Var: $Import_Days([email protected],7s)   MAIN, Var: $1285[1]   Mission 90, Mission 105, Mission 102, MAIN, Mission 91, Mission 89, Var: $390   External script 7 (ARCADE), External script 26 (GF_SEX), External script 24 (GF_MEETING), External script 25 (GF_DATE), External script 75 (CAMERA), Mission 97, External script 21 (POOL_SCRIPT), External script 28 (BAR_AMBIENCE), MAIN, External script 6 (OTB_SCRIPT), Var: $Car_Models_To_Export[8]   MAIN, Var: $Y_The_Four_Dragons_Casino_2   Mission 0, MAIN, Mission 85, Var: $1210   MAIN, External script 25 (GF_DATE), Var: s$Dialog_Subtitles[10]   MAIN, Var: $X_Truth_Farm   Mission 0, MAIN, Var: $Interior_Decision_Maker_B   External script 40 (OTB_STAFF), MAIN, External script 36 (SHOPKEEPER), External script 38 (BAR_STAFF), Var: $1655   MAIN, Mission 134, Var: $Help_TRI_Cycling_Shown   MAIN, Var: $Unlocked_Import_Cars[7]   MAIN, Var: $2634   MAIN,...

 

 

 

- An excerpt from sideEffectFreeVariables.txt

 

 

 

Output from SCM Variable Usage Analyzer 0.1 by GoodIdea82Number of sections: 214Number of variables expressions: 9219Number of side-effect-free variable expressions: 4432----------------------------- Var: $120   Mission 2 Var: $60   Mission 2 Var: $5353   Mission 2 Var: $61   Mission 2 Var: $5355[5]   Mission 3 Var: $5355[6]   Mission 3 Var: $5354   Mission 3 Var: s$5385[1]   Mission 3 Var: s$5385[5]   Mission 3 Var: s$5405[2]   Mission 3 Var: s$5385[3]   Mission 3 Var: s$5385[6]   Mission 3 Var: s$5365[5]   Mission 3 Var: s$5405[4]   Mission 3 Var: $5355[4]   Mission 3 Var: $5385([email protected],10s)   Mission 3 Var: s$5365[6]   Mission 3 Var: $5405([email protected],10s)   Mission 3 Var: s$5365[4]   Mission 3 Var: s$5405[7]   Mission 3 Var: $5355[3]   Mission 3 Var: s$5405[0]   Mission 3 Var: s$5365[9]   Mission 3 Var: $5355([email protected],10i)   Mission 3 Var: s$5385[7]   Mission 3 Var: s$5405[8]   Mission 3 Var: $5365([email protected],10s)   Mission 3 Var: $5355[1]   Mission 3 Var: $5355[0]   Mission 3 Var: s$5365[8]   Mission 3 Var: $5355([email protected],10i)   Mission 3 Var: $5355[7]   Mission 3 Var: s$5385[9]   Mission 3 Var: s$5405[9]   Mission 3 Var: $5355[8]   Mission 3 Var: s$5365[2]   Mission 3 Var: s$5385[2]   Mission 3 Var: $5355[9]   Mission 3 Var: $5365([email protected],10s)   Mission 3 Var: s$5385[8]   Mission 3 Var: s$5405[3]   Mission 3 Var: s$5405[5]   Mission 3 Var: s$5365[3]   Mission 3 Var: s$5365[0]   Mission 3 Var: $5365([email protected],10s)   Mission 3 Var: $5405([email protected],10s)   Mission 3 Var: s$5365[7]   Mission 3 Var: s$5365[1]   Mission 3 Var: $5405([email protected],10s)   Mission 3 Var: $5385([email protected],10s)   Mission 3 Var: s$5385[4]   Mission 3 Var: $5385([email protected],10s)   Mission 3 Var: s$5385[0]   Mission 3 Var: s$5405[6]   Mission 3 Var: s$5405[1]   Mission 3 Var: $5355[2]   Mission 3 Var: $5436[7]   Mission 4 Var: s$5546[3]   Mission 4 Var: s$5526[4]   Mission 4 Var: s$5506[6]   Mission 4 Var: s$5486[3]   Mission 4 Var: s$5526[5]   Mission 4 Var: s$5526[6]   Mission 4 Var: s$5446[5]   Mission 4 Var: $5426[2]   Mission 4 Var: s$5466[0]   Mission 4 Var: $5426[8]   Mission 4 Var: s$5486[7]   Mission 4 Var: $5526([email protected],10s)   Mission 4 Var: s$5486[4]   Mission 4 Var: $5436[0]   Mission 4 Var: s$5466[7]   Mission 4 Var: s$5506[7]   Mission 4 Var: $5436[5]   Mission 4 Var: $5426[3]   Mission 4 Var: s$5446[7]   Mission 4 Var: $5526([email protected],10s)   Mission 4 Var: s$5446[4]   Mission 4 Var: $5436[4]   Mission 4 Var: s$5446[6]   Mission 4 Var: $5426[5]   Mission 4 Var: s$5446[9]   Mission 4 Var: $5426[9]   Mission 4 Var: s$5546[0]   Mission 4 Var: s$5546[1]   Mission 4 Var: s$5506[5]   Mission 4 Var: s$5506[9]   Mission 4 Var: s$5486[2]   Mission 4 Var: s$5466[9]   Mission 4 Var: s$5526[8]   Mission 4 Var: s$5486[8]   Mission 4 Var: $5426([email protected],10i)   Mission 4 Var: $5426([email protected],10i)   Mission 4 Var: s$5486[1]   Mission 4 Var: $5426[6]   Mission 4 Var: $5436[9]   Mission 4 Var: $5486([email protected],10s)   Mission 4 Var: s$5506[2]   Mission 4 Var: $5506([email protected],10s)   Mission 4 Var: s$5446[8]   Mission 4 Var: s$5466[8]   Mission 4 Var: s$5466[2]   Mission 4 Var: $5466([email protected],10s)   Mission 4 Var: $5446([email protected],10s)   Mission 4 Var: s$5446[1]   Mission 4 Var: $5436[3]   Mission 4 Var: $5436[1]   Mission 4 Var: $5426[0]   Mission 4 Var: s$5546[5]   Mission 4 Var: $5566   Mission 4 Var: $5486([email protected],10s)   Mission 4 Var: s$5546[8]   Mission 4 Var: $5426[4]   Mission 4 Var: s$5466[5]   Mission 4 Var: s$5446[2]   Mission 4 Var: $5446([email protected],10s)   Mission 4 Var: s$5546[9]   Mission 4 Var: s$5506[3]   Mission 4 Var: s$5446[3]   Mission 4 Var: s$5546[6]   Mission 4 Var: s$5526[0]   Mission 4 Var: s$5466[1]   Mission 4 Var: s$5486[5]   Mission 4 Var: s$5466[4]   Mission 4 Var: $5425   Mission 4 Var: s$5506[8]   Mission 4 Var: $5486([email protected],10s)   Mission 4 Var: $5446([email protected],10s)   Mission 4 Var: $5546([email protected],10s)   Mission 4 Var: $5436([email protected],10i)   Mission 4 Var: s$5526[9]   Mission 4 Var: $5426[1]   Mission 4 Var: s$5506[4]   Mission 4 Var: s$5526[7]   Mission 4 Var: s$5446[0]   Mission 4 Var: s$5526[3]   Mission 4 Var: $5526([email protected],10s)   Mission 4 Var: $5436[2]   Mission 4 Var: s$5466[3]   Mission 4 Var: $5466([email protected],10s)   Mission 4 Var: $5506([email protected],10s)   Mission 4 Var: $5426[7]   Mission 4 Var: s$5546[7]   Mission 4 Var: $5546([email protected],10s)   Mission 4 Var: s$5546[4]   Mission 4 Var: s$5546[2]   Mission 4 Var: $5436([email protected],10i)   Mission 4 Var: s$5486[6]   Mission 4 Var: s$5526[2]   Mission 4 Var: $5466([email protected],10s)   Mission 4 Var: $5436[6]   Mission 4 Var: s$5486[9]   Mission 4 Var: s$5526[1]   Mission 4 Var: s$5466[6]   Mission 4 Var: $5436[8]   Mission 4 Var: s$5506[1]   Mission 4 Var: $5506([email protected],10s)   Mission 4 Var: $5567   Mission 4 Var: s$5506[0]   Mission 4 Var: $5546([email protected],10s)   Mission 4 Var: s$5486[0]   Mission 4 Var: $5805($5658,16f)   Mission 5 Var: $5576   Mission 5 Var: $6131[1]   Mission 5 Var: $6141[1]   Mission 5 Var: $6071[1]   Mission 5 Var: $6091[7]   Mission 5 Var: $2062[1]   Mission 5 Var: s$SHTR_characters[18]   Mission 5 Var: $5569   Mission 5 Var: $2022($6154,10s)   Mission 5 Var: s$SHTR_characters[21]   Mission 5 Var: $2072[8]   Mission 5 Var: s$SHTR_characters[0]   Mission 5 Var: $6131[8]   Mission 5 Var: s$SHTR_characters[7]   Mission 5 Var: $5860($5859,16i)   Mission 5 Var: $5659[7]   Mission 5 Var: $5659[4]   Mission 5 Var: $6174   Mission 5 Var: $5580   Mission 5 Var: $6071[6]   Mission 5 Var: $5725($5658,16i)   Mission 5 Var: $6111[9]   Mission 5 Var: $5595   Mission 5 Var: $2062[0]   Mission 5 Var: $6141[8]   Mission 5 Var: $2072[5]   Mission 5 Var: $6170   Mission 5 Var: $6172   Mission 5 Var: $5877[1]   Mission 5 Var: $5789[3]   Mission 5 Var: s$SHTR_characters[28]   Mission 5 Var: $6081($6070,10f)   Mission 5 Var: $6141[6]   Mission 5 Var: $5951   Mission 5 Var: $5860[0]   Mission 5 Var: s$SHTR_characters[19]   Mission 5 Var: $5574   Mission 5 Var: $5877[2]   Mission 5 Var: $2002($6151,10s)   Mission 5 Var: $5724   Mission 5 Var: $5659[1]   Mission 5 Var: $5578   Mission 5 Var: $6121[2]   Mission 5 Var: $6101[5]   Mission 5 Var: $2002($6160,10s)   Mission 5 Var: $5581   Mission 5 Var: $5587   Mission 5 Var: $5582   Mission 5 Var: $6141[9]   Mission 5 Var: $5981[3]   Mission 5 Var: $6131[6]   Mission 5 Var: $6173   Mission 5 Var: $5596   Mission 5 Var: $6101[2]   Mission 5 Var: s$2022[0]   Mission 5 Var: $6161   Mission 5 Var: $5659($5658,16i)   Mission 5 Var: $2042($6151,10s)   Mission 5 Var: s$2002[0]   Mission 5 Var: $6160   Mission 5 Var: $6081[9]   Mission 5 Var: $2072[7]   Mission 5 Var: $5789($5658,16i)   Mission 5 Var: $6121[6]   Mission 5 Var: $5654   Mission 5 Var: $5568   Mission 5 Var: $6071[0]   Mission 5 Var: $5725[3]   Mission 5 Var: $6091[1]   Mission 5 Var: $5570   Mission 5 Var: $2022($6155,10s)   Mission 5 Var: $5789[4]   Mission 5 Var: $5973($5859,8f)   Mission 5 Var: $5960   Mission 5 Var: $5860[2]   Mission 5 Var: $6081($6151,10f)   Mission 5 Var: $2042($6070,10s)   Mission 5 Var: $5588   Mission 5 Var: $5659[6]   Mission 5 Var: $6081[7]   Mission 5 Var: $6153   Mission 5 Var: $6182   Mission 5 Var: $5981[5]   Mission 5 Var: $5856   Mission 5 Var: $5591   Mission 5 Var: $2072[6]   Mission 5 Var: $5805($5657,16f)   Mission 5 Var: $6071[4]   Mission 5 Var: $6141[4]   Mission 5 Var: $5952   Mission 5 Var: $5645   Mission 5 Var: $6111[0]   Mission 5 Var: $5659[2]   Mission 5 Var: $5858   Mission 5...

 

 

 

Download: http://www.gtainside.com/sanandreas/tools/81289-scm-variable-usage-analyzer/

Edited by goodidea82
  • Like 7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.