Jump to content

Generic SA SCM Documentation


Opius

Recommended Posts

Since I've seen a fair bit of confusion about these things, I just thought I'd try to document some of the things that have been neglected with regards to specific opcode commands. You might recognise some of these things being included in text files with Barton's VC builder.

 

Weapon IDs

Used almost exclusively when dealing with weapons. Examples of opcodes that use these IDs:

 

01B2: give_actor $player_actor weapon 'ID#' ammo 5001B9: set_actor $player_actor armed_weapon_to  'ID#'

 

 

A few notes, before the big list. You must load weapons using the standard REQUEST_MODEL opcode (0247) and refer to these weapons by their default.ide ID number/name.

 

 

0 - Unarmed1 - Brass Knuckles2 - Golf Club3 - Night Stick4 - Knife5 - Baseball Bat6 - Shovel7 - Pool cue8 - Katana9 - Chainsaw10 - Purple Dildo11 - White Dildo12 - Long White Dildo13 - White Dildo 214 - Flowers15 - Cane16 - Grenades17 - Tear Gas18 - Molotovs19 - Missile (crashes if you try to fire)20 - Missile (crashes if you try to fire)21 - Missile (crashes if you try to fire)22 - Pistol23 - Silenced Pistol24 - Desert Eagle25 - Shotgun26 - Sawn Off Shotgun27 - Combat Shotgun28 - Micro Uzi (Mac 10)29 - MP530 - AK4731 - M432 - Tec933 - Rifle34 - Sniper Rifle35 - RPG36 - Missile Launcher37 - Flame Thrower38 - Minigun39 - Sachet Charges40 - Detonator41 - Spray Paint42 - Fire Extinguisher43 - Camera44 - Nightvision Goggles45 - Thermal Goggles46 - Parachute47 - Pistol (Unusable)(Unskilled animations)48 - Silenced Pistol (Unusable)(Unskilled animations)49 - Desert Eagle (Unusable)(Unskilled animations)50 - Shotgun (Unusable)(Unskilled animations)51 - Sawn Off Shotgun (Unusable)(Unskilled animations)52 - Combat Shotgun (Unusable)(Unskilled animations)53 - Micro Uzi (Mac 10)(Unusable)(Unskilled animations)54 - MP5 (Unusable)(Unskilled animations)55 - AK47 (Unusable)(Unskilled animations)56 - M4 (Unusable)(Unskilled animations)57 - Tec9 (Unusable)(Unskilled animations)58 - Pistol (Unusable)(Hitman animations)59 - Silenced Pistol (Unusable)(Hitman animations)60 - Desert Eagle (Unusable)(Hitman animations)61 - Shotgun (Unusable)(Hitman animations)62 - Sawn Off Shotgun (Unusable)(Hitman animations)63 - Combat Shotgun (Unusable)(Hitman animations)64 - Micro Uzi (Mac 10)(Unusable)(Hitman animations)65 - MP5 (Unusable)(Hitman animations)66 - AK47 (Unusable)(Hitman animations)67 - M4 (Unusable)(Hitman animations)68 - Tec9 (Unusable)(Hitman animations)69 - Pistol (Unusable)(Gangster animations)70+ - Crashes the game

 

Using weapon IDs above 46 will result in the actor making all the nessecary motions, but the weapon not actually firing.

 

Keypress IDs

Used to check whether a certain key associated with an action is being pressed. You cannot use keys that are not assigned to actions. This is used with opcode 00E1. Example:

00D6: if  000E1:   key pressed  0  'ID#'004D: jump_if_false ££Label

 

 

Seperate IDs are used for when the player is on foot than when the player is in a vehicle.

 

On foot:

 

0 = Turn Left/Right1 = Move forward/backward2 = Special Control Left/Right (Even on foot!)3 = Unused4 = Action5 = Previous weapon/target6 = Target/Aim weapon7 = Next weapon/target8 = Group control forward9 = Group control backward     10 = Conversation 'no'11 = Conversation 'yes'12 = Not technically usable (cutscene escape) 13 = Camera14 = Jump15 = Enter Vehicle 16 = Sprint17 = Attack18 = Crouch 19 = Look behind

 

 

Feel free to contribute any of your own.

Link to comment
Share on other sites

These were found by ocram if I aint wrong:

 

 

---------------------------------- on foot                      ---------------------------------- 0 =  left/right              - 1 =  forward/backward        - 2 =  special ctrl left/right  - 3 =  special ctrl up/down    - 4 =  action                  - 5 =  previous weapon/target  - 6 =  aim weapon              - 7 =  next weapon/target  - 8 =  Group CTRL Forward      - 9 =  Group CTRL back          - 10 = conversation - no        - 11 = conversation - yes      - 12 = (do not exist)          - 13 = change camera            - 14 = jump                    - 15 = enter vehicle            - 16 = sprint                  - 17 = fire                    - 18 = crouch                  - 19 = look behind ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ in car                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0 =  left/right  ~ 1 =  steer back/up  ~ 2 =  Special ctrl left/right  ~ 3 =  Special control up/down  ~ 4 =  secondary fire  ~ 5 =  look left  ~ 6 =  hand brake  ~ 7 =  look right  ~ 8 =  next radio station~ 9 =  previous radio station~ 10 = No  ~ 11 = trip skip~ 12 = (do not exist)  ~ 13 = camera  ~ 14 = brake/reserve  ~ 15 = enter+exit  ~ 16 = accelerate  ~ 17 = fire  ~ 18 = horn  ~ 19 = submission  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

Props for the documentation. What about that missile? Bettah test it.

Link to comment
Share on other sites

Has anyone figured out if the 2nd player controls are still in the settings/readable by the opcode? I'm not interested in a 2P mod, just some extra buttons to use for activating my sh*t. lol

 

Link to comment
Share on other sites

They are still readable by the SCM, but not by the game so they can't be pased to the SCM to be read. So basically no.
Link to comment
Share on other sites

Craig Kostelecky

Thanks for doing this Opius. Do you mind if I create text files and include them in my hosted version of MB 0.33?

Link to comment
Share on other sites

That could've been done as two column, but otherwise, excellent work. Sharp site layout too colgate.gif
Link to comment
Share on other sites

They are still readable by the SCM, but not by the game so they can't be pased to the SCM to be read. So basically no.

I am guessing that possibly, an exe hack, or rather memory hacking could make the game read them?

Link to comment
Share on other sites

You're essentially talking about rewriting the EXE to be made to be 2 player. A lot of effort and only to enable new keypresses? Neo v5 had a LOT of user commands and I made do with keypress combos just fine, as does every coder.
Link to comment
Share on other sites

UPDATED

 

Hi

I've started and finished to note all the stats that are use in the main.scm

i'm not sur for some of them and other i got no idea what they are for.

If someone know more or find what the others are used for.

 

 

stat  0 Score (x1000)stat  2 Furthest Hoopstat  3 way done on footstat  4 way done by carstat  5 way done by motorbikestat  6 Distance travelled by boatstat  7 Distance travelled by golf cartstat  8 Distance travelled by helicopterstat  9 way done by flying vehiclestat  10 Longest Wheelie distancestat  11 Longest Stoppie distancestat  12 Longest 2 wheels distancestat  13 Weapon Budgetstat  14 Fashion Budgetstat  15 Money spent in propertystat  16 money spent in spray'n paintstat  17 Longest Wheelie timestat  18 Longest Stoppie timestat  19 Longest 2 wheels timestat  20 money spent on foodstat  21 fat only (food in stomach= stat  245)stat  22 staminastat  23 musclestat  24 Health ??stat  25 weird? damage of vehicles (and (maybe) temporary "damage" of cj when he lost energy for example like by swimming under water for too long, it's a bit curious)stat  26 way done by fast (with pressed SHIFT key) swimming, over and under waterstat  27 way done by bike/bicyclestat  28 way done on the gym treadmillstat  29 way done on the gym bikestat  30 money spent at the tattooshopstat  31 money spent at the barbershopstat  32 girlfriend budget (money spent, maybe unused)stat  33 money spent on street whoresstat  34 furniture budget (money spent, maybe unused)stat  35 money spent gamblingstat  36 money made from pimpingstat  37 money won gamblingstat  38 Biggest gambling winstat  39 Biggest gambling lossstat  40 Largest burglary swagstat  41 money made from burglarystat  42 money spent building property (obsolete)stat  44 time spent on the gym treadmillstat  45 time spent on the gym bikestat  46 heavyest weight lifted up on the gym bench big dumbbellstat  47 heavyest weight lifted up on the gym little dumbbellstat  48 Best time in 8-Trackstat  49 BMX race best timestat  50 lightest weightstat  51 Longest chase time with 5 or more stars  stat  52 Last chase time with 5 or more starsstat  53 Wage billstat  54 money spent in strip-teasestat  55 money spent in mod-garagesstat  56 time spent shoppingstat  57 time spent gamblingstat  58 time spent on longest missionstat  59 time spent on quickest missionstat  60 average mission timestat  61 drugs budget (money spent, maybe unused)stat  62 money spent for cj's appearance (barbershop, tattooshop, clothes store)stat  63 time spent underwaterstat  64 total respectstat  65 girlfriend respectstat  66 maybe respect from your gangstat  66 clothes respectstat  67 fitness respectstat  68 respect or hits (by gun shots and by fist fight / close combat) that killed enemies (cops, enemy gangmembers and so on..)stat  69 Weapon skill: pistolstat  70 Weapon skill: SILENCEDstat  71 Weapon skill: DESERT EAGLEstat  72 Weapon skill: SHOTGUNstat  73 Weapon skill: SAWNOFFstat  74 Weapon skill: SPAS12stat  75 Weapon skill: MICRO UZIstat  76 Weapon skill: MP5stat  77 Weapon skill: AK47stat  78 Weapon skill: M4stat  79 Weapon skill: SNIPERRIFLEstat  80 Sex appealstat  81 gambling skillstat  97 distance traveled by car needed to increase driving skill (smaller it is faster you improve your driving skill, default is around a billion)stat  98 distance traveled by flying vehicle needed to increase flying skill (smaller it is faster you improve your flying skill, default is around a billion)stat  99 distance traveled by bicycle needed to increase bicycle skill (smaller it is faster you improve your bicycle skill, default is around a billion)stat  100 distance traveled by bike needed to increase bike skill (smaller it is faster you improve your bike skill, default is around a billion)stat  102 physical effort (distance traveled walking, running, swimming-underwater only- and cycling) needed to decrease your body fat or muscle, and probably the food in your stomach stat_245 (default is around a billion)stat  104 distance traveled underwater needed to increase your lung capacity (default is around a billion)stat  105 physical effort (distance traveled walking, running, swimming-underwater only- and cycling) needed to increase your max health (default is around a billion)stat  120 people (as well as cj himself) killed by othersstat  121 people killed by cjstat  122 destroyed vehiclesstat  123 destroyed boatsstat  124 destroyed helicoptersstat  125 cost of property damagedstat  126 fired bulletsstat  127 kg of explosives usedstat  128 bullets/gunshots that hit their targetstat  129 destroyed tiresstat  130 number/amount of headshotsstat  131 total number/amount of police wanted stars earned/received during gameplaystat  132 total number/amount of police wanted stars you were able to get rid of during gameplaystat  133 number of how many times you were caught/busted by policestat  134 days passed in-gamestat  135 visits at the hospitalstat  136 number of how many times you have saved your gamestat  137 number/amount of used cheatsstat  138 number/amount of paintings/paint jobs (visits at the pay'n'spray)stat  139 maximum insane jump distancestat  140 maximum insane jump heightstat  141 maximum insane jump flipsstat  142 maximum insane jump rotationstat  143 best insanity stunt -> "1" for "insanity stunt" and "0" for "insanity stunt not done yet"stat  144 number of monsterstunts foundstat  145 number of monsterstunts donestat  146 started missions / missions startedstat  147 successfully ended missions / missions done/finishedstat  148 total number of missions in gamestat  149 Cash made in a Taxistat  150 Passengers dropped offstat  151 people saved on paramedic missionsstat  152 criminals killed on Vigilantestat  153 fires extinguishedstat  154 packages delivered (Courier missions)stat  155 Assassinationsstat  156 last dance scorestat  157 Highest Vigilante Mission levelstat  158 Highest Paramedic Mission levelstat  159 Highest Firefighter Mission levelstat  160 driving skillstat  161 Number of Truck missions passedstat  162 Money made in Truckstat  163 recruited gang members killed (according to DeeZire) or Max health (according to me, i can't remember but seems weird because i thought being sure of this one)stat  164 armorstat  165 energystat  166 Photo taken (not only the one to collect, all)stat  167 rampages attemptedstat  168 rampages passedstat  169 flight timestat  170 Number of times drownedstat  171 Number of girls pimpedstat  172 Best position in 8-Trackstat  173 time on Jetpackstat  174 Shooting range levels passedstat  175 Most cars parked on 'Valet Parking'stat  176 Kills since last checkpointstat  177 Total legitimate killsstat  178 bloodring Kills since last checkpointstat  179 something to do with bloodringstat  180 No more hurricanes Flagstat  181 islands unlockedstat  182 Number of Police bribesstat  183 Burgular status (according to DeeZire) or Number of cars stolen (according to me)stat  184 Current number of girlfriendsstat  185 Number of disastrous datesstat  186 Number of girls datedstat  187 Number of times scored with a girlstat  188 Number of successful datesstat  189 Number of girls dumpedstat  190 Number of prostitutes visitedstat  191 Number of houses burgledstat  192 Number of safes crackedstat  194 Number of stolen items soldstat  195 Number of eight balls in poolstat  196 Total number of wins playing poolstat  197 Total number of losses playing poolstat  198 visits at the gymstat  199 body typestat  200 Number of meals eatenstat  201 Money made in Quarrystat  202 Time taken to Complete Quarrystat  203 number of furniture items purchased (obsolete)stat  204 favourite console gamestat  205 Highest civilian peds killed on Rampagestat  206 Highest police peds killed on Rampage  stat  207 Highest civilian vehicles destroyed on Rampagestat  208 Highest police vehicles destroyed on Rampagestat  209 Highest number of tanks destroyed on Rampagestat  210 Pimping level  stat  211 Kickstart best scorestat  212 Best lap time in 8-Trackstat  213 cars exportedstat  214 cars importedstat  215 Highest basketball scorestat  216 Fires startedstat  217 Amount of drugs soldstat  218 Amount of drugs boughtstat  219 Best lap time in dirt trackstat  220 Best time in dirt trackstat  221 Best position in dirt trackstat  222 NRG-500 best timestat  223 FLYING SKILLstat  224 respect missionstat  225 lung capacitystat  226 game gore ratingstat  227 game sex ratingstat  228 respect mission totalstat  229 BIKE SKILLstat  230 CYCLE SKILLstat  231 snapshots taken (the ones to collect)stat  232 Number of snapshots to collectedstat  233 Luckstat  234 Territories taken overstat  235 Territories loststat  236 Territories heldstat  237 Highest number of territories heldstat  238 Gang members recruitedstat  239 Enemy gang members killedstat  240 Friendly gang members killedstat  241 horshoes collectedstat  243 oysters collectedstat  244 Number of oysters to collectedstat  245 calories, food in your stomachstat  246 2Player Rampage best timestat  247 2Player Car Rampage best timestat  248 2Player On Foot Rampage best timestat  249 2Player Chopper Rampage best timestat  250 2Player Bike Rampage best timestat  251 'Keepie Uppy' best time (unused?)stat  252 progress with denisestat  253 progress with michelstat  254 progress with helenstat  255 progress with barbarastat  256 progress with katiestat  257 progress with milliestat  258 Best position in Lowrider Racestat  259 Best time in Lowrider Racestat  260 Best position in Little Loopstat  261 Best time in Little Loopstat  262 Best position in Backroad Wandererstat  263 Best time in Backroad Wanderestat  264 Best position in City Circuitstat  265 Best time in City Circuitstat  266 Best position in Vinewoodstat  267 Best time in Vinewoodstat  268 Best position in Freewaystat  269 Best time in Freewaystat  270 Best position in Into the Countrystat  271 Best time in Into the Countrystat  272 Best position in Badlands Astat  273 Best time in Badlands Astat  274 Best position in Badlands Bstat  275 Best time in Badlands Bstat  276 Best position in Dirtbike Dangerstat  277 Best time in Dirtbike Dangerstat  278 Best position in Bandito Countystat  279 Best time in Bandito Countystat  280 Best position in Go-Go-Kartstat  281 Best time in Go-Go-Kartstat  282 Best position in San Fierro Fastlanestat  283 Best time in San Fierro Fastlanestat  284 Best position in San Fierro Hillsstat  285 Best time in San Fierro Hillsstat  286 Best position in Country Endurancestat  287 Best time in Country Endurancestat  288 Best position in SF to LVstat  289 Best time in SF to LVstat  290 Best position in Dam Riderstat  291 Best time in Dam Riderstat  292 Best position in Desert Tricksstat  293 Best time in Desert Tricksstat  294 Best position in LV Ringroadstat  295 Best time in LV Ringroadstat  296 Best time in World War Acesstat  297 Best time in Barnstormingstat  298 Best time in Military Servicestat  299 Best time in Chopper Checkpointstat  300 Best time in Whirly Bird Waypointstat  301 Best time in Heli Hellstat  302 Sweet's mission accomplishedstat  303 Management Issues mission accomplishedstat  304 maybe 555 WE TIP mission accomplishedstat  305 Yay Ka-Boom-Boom mission accomplishedstat  306 Fish in a Barrel mission accomplishedstat  307 Breaking the Bank at Caligula's mission accomplishedstat  308 A Home In The Hills mission accomplishedstat  309 maybe set riot modestat  310 Ryder's mission Robbing Uncle Sam accomplishedstat  311 Mike Toreno mission accomplishedstat  312 Architectural Espionage mission accomplishedstat  313 Jizzy mission accomplishedstat  314 Reuniting the Families mission accomplishedstat  315 Catalina 3 mission accomplishedstat  316 Photo Opportunity mission accomplishedstat  317 Don Peyote mission accomplishedstat  318 Catalina 2 mission accomplishedstat  319 Badlands mission accomplishedstat  320 Monster mission accomplishedstat  321 Wear Flowers in your Hair mission accomplishedstat  322 maybe Cesar races missions accomplished (Wu Zi Mu / Farewell, my love...)stat  323 maybe The Green Sabre mission accomplished or all first Los Santos missions accomplishedstat  324 Deconstruction mission accomplishedstat  325 Verdant Meadows mission accomplishedstat  326 Highjack mission accomplishedstat  327 maybe Car stealing (wangs car owned) missions accomplishedstat  328 The Meat Business mission accomplishedstat  329 Saint Mark's Bistro mission accomplishedstat  330 Interdiction mission accomplishedstat  331 Learning to Fly (flying school) mission accomplishedstat  332 Black Project mission accomplishedstat  333 Green Goo mission accomplishedstat  334 Home Coming mission accomplishedstat  335 Riot mission accomplished 1stat  336 maybe 555 WE TIP mission accomplished 2stat  337 House Party mission accomplishedstat  338 Are you going to San Fierro? mission accomplishedstat  339 High Noon mission accomplishedstat  340 maybe all first Los Santos missions accomplished or The Green Sabre mission accomplishedstat  341 Catalina 1 mission accomplishedstat  342 maybe Stade and infernal races missions accomplished (Race Tournament / 8-track / Dirt Track

 

 

 

Well hope it will help anyone

have fun

Edited by tomworld10
Link to comment
Share on other sites

 

Hi

I've started and finished to note all the stats that are use in the main.scm

i'm not sur for some of them and other i got no idea what they are for.

If someone know more or find what the others are used for.

 

 

stat  01 (not used in main.scm)tostat  20 (not used in main.scm)stat  21 fatstat  22 staminastat  23 musclestat  24 max healthstat  25 ????stat  26 (not used in main.scm)tostat  45 (not used in main.scm)..

 

 

 

Well hope it will help anyone

have fun

good point with the stats listing.. smile.gif

 

i was looking for the "how many people were killed by cj" stat because i wanted to add a "kill-o-meter" to the hud like in the comedy movie "hot shots 2" (edit: found it .. stat_121)

 

..

 

the stats i know sure of at the moment are:

 

Statistics IDs

the stats listed below have been tested in-game, for more stats look at the post above that was written by tomworld10

 

 

stat_0 - missions donestat_3 - way done on foot stat_4 - way done by carstat_5 - way done by motorbikestat_9 - way done by air vehicle like an airplane (and maybe helicopter and so on but not tested with helicopter yet)stat_16 - money invested in vehicle repairsstat_20 - money invested in foodstat_21 - cj's food "holding" (how much food cj has inside his stomach)stat_23 - musclesstat_25 - damage of vehicles (and (maybe) temporary "damage" of cj when he lost energy for example like by swimming under water for too long, it's a bit curious)stat_26 - way done by fast (with pressed SHIFT key) swimming, over and under waterstat_27 - way done by bike/bicyclestat_30 - money spent at the tattooshopstat_31 - money spent at the barbershopstat_33 - money spent on street whoresstat_44 - has to do with the training at the gym (will fill it out later what it is exactly)stat_45 - has to do with the training at the gym (will fill it out later what it is exactly)stat_46 - has to do with the training at the gym (will fill it out later what it is exactly)stat_47 - has to do with the training at the gym (will fill it out later what it is exactly)stat_62 - money spent for cj's appearance (barbershop, tattooshop, clothes store)stat_64 - respectstat_66 - (not 100% sure what it is exactly) sexiness or player gang (grove street gang) affiliation by wearing their gang colors, gang tattoos and a gang haircut .. also look at stat_80 .. both stats were influenced by cj's appearancestat_68 - hits (by gun shots and by fist fight / close combat) that killed enemies (cops, enemy gangmembers and so on..)stat_69 - weapon skill pistolstat_72 - weapon skill shotgunstat_75 - weapon skill uzistat_80 - (not 100% sure what it is exactly) sexiness or player gang (grove street gang) affiliation by wearing their gang colors, gang tattoos and a gang haircut .. also look at stat_66 .. both stats were influenced by cj's appearancestat_120 - people (as well as cj himself) killed by othersstat_121 - people killed by cjstat_122 - destroyed vehiclesstat_123 - destroyed boatsstat_124 - destroyed helicoptersstat_125 - total value of destroyed thingsstat_126 - fired bulletsstat_127 - explosive weapons used (tested with grenades)stat_128 - bullets/gunshots that hit their targetstat_129 - destroyed tiresstat_130 - number/amount of headshotsstat_131 - total number/amount of police wanted stars earned/received during gameplaystat_132 - total number/amount of police wanted stars you were able to get rid of during gameplaystat_133 - number of how many times you were caught/busted by policestat_134 - days passed in-gamestat_135 - visits at the hospitalstat_136 - number of how many times you have saved your gamestat_137 - number/amount of used cheatsstat_138 - number/amount of paintings/paint jobs (visits at the pay'n'spray)stat_139 - widest insanity jumpstat_140 - highest insanity jumpstat_141 - max. number of somersaults/backflips done during insanity jumpstat_142 - max. rotation during insanity jumpstat_143 - best insanity stunt -> "1" for "insanity stunt" and "0" for "insanity stunt not done yet" (don't know if this can go higher than "1")stat_144 - number of monsterstunts foundstat_145 - number of monsterstunts donestat_146 - started missions / missions startedstat_147 - successfully ended missions / missions done/finished

 

 

(i know my english is bad, if you want to correct me, do it blush.gif)

 

here is a pic how it looks in-game:

 

user posted image

 

greetings

 

ps.: when i get more stats tested in-game i will add it here by using the edit button

Edited by [enforcA]
Link to comment
Share on other sites

1 = Move forward/backward2 = Special Control Left/Right (Even on foot!)

 

Are you telling me there's no way to differentiate between forward and backwards or left and right? cryani.gif

Link to comment
Share on other sites

so using them stats that show how many kills youve made and stuff would it be possible to show the text on screen?

cuz i was thinking of maybe making a kill counter or summin

Link to comment
Share on other sites

Would depend on if there's opcodes for reading the stats instead of setting them. If so, sure it's possible.
Link to comment
Share on other sites

 

so using them stats that show how many kills youve made and stuff would it be possible to show the text on screen?

cuz i was thinking of maybe making a kill counter or summin

 

yes and it's easy.. i've already made one, it's the 'body count' on the left upper corner of the pictures there: http://www.gtaforums.com/index.php?showtop...dpost&p=3093087

 

if you scroll a bit down in this thread you will find the post where i said how it works (like the body count in the comedy movie 'hot shots 2')

 

would be cool if someone would know how many people you have to kill in other games to win the game so that you could add these values to the counter and if you reach these values a message appears on screen, for example 'EQUAL TO: RESIDENT EVIL' .. but i don't know how many kills are done in other games so i only have the values that were used in the movie.. but adding games would be cool

 

 

Would depend on if there's opcodes for reading the stats instead of setting them. If so, sure it's possible.

 

yes there is an opcode for 'reading' the stats

 

 

0652: $htshts2 = stat  121 () ; integer

 

 

$htshts2 is the integer i used

stat 121 is the stat for how many people you killed

 

greetings

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

More stats to add:

215 - bball challenge

143 - insane stunt bonuses (0-7)

37 - ITB stuff???

158 - Paramedic level

159 - firetruck

157 - vigilante

211 - kickstart

38 - money won from gambling

39 - money lost from gambling

Link to comment
Share on other sites

Bob Ghengis Khan

Is that pretty much everything then that is stored in a saved game? Whats left to prevent creating a mod that saves games differently so that you can use whatever mods you want, and not have to worry about using global variables, etc?

Link to comment
Share on other sites

random_download

The save game stores all global vars and the positions of all running threads and their local vars.

 

creating a mod that saves games differently

You mean as in modifing the exe to run different code when show_save_screen opcode is executed? Possible... but extremly hard.

Link to comment
Share on other sites

Is that pretty much everything then that is stored in a saved game? Whats left to prevent creating a mod that saves games differently so that you can use whatever mods you want, and not have to worry about using global variables, etc?

Not only does Darkpact help to do that, but steps are being researched that may even peel back some of IT's limitations.

Link to comment
Share on other sites

Bob Ghengis Khan

Really awesome what Darkpact manages to do, but what I'm wondering is why take that approach, why not change the way games are actually saved, ignoring the exisiting way of using save icons, by writing a script that saves and loads all of these variables?

 

Saved games could be compatible with a default scm thats changed only with this script, a barebones scm, and a fully modded one

 

Would it not be easier to stop all the hard labor of messing with SA's memory management, and just have a script that saves all the important variables? Thought there was a way to write to files with one of these hooks

 

I don't know all the details, just trying to learn some of them

Edited by Bob Ghengis Khan
Link to comment
Share on other sites

Well if ease is the aim, then a memory dump IS the easiest and that is precisely what the save file is. There was a monster effort at cracking the VC save file once upon a time. Patrick in the end created a tool that could move parked cars by only editing the save file.

 

I'd go in deeper, but this is a pinned topic and this is off-topic, so best left for its own thread.

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
  • 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.