Coding

 Reply to this postStart new topic

San Andreas Script Debugging Reimplementation

Deji
post Jun 22 2011, 01:21 AM
Post #1


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



San Andreas Script Debugging Reimplementation
Seriously, think me a better title.



Download


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Jun 22 2011, 01:53 AM
Post #2


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Anyway... The real reason I made this topic (since the old one is a tad too stuffed to go posting comfortably). To post information about some of the stuff you may be able to do when I'm finished making this thing.



Another use of 0736 in action. When you press the "A" key during a pool game, control of CJ will be taken over by the script. CJ will play exactly like the opponent. In short, the game is playing for you.

Pressing "D" shows "OUTPUT_TEXT_ON" or "OUTPUT_TEXT_OFF" (depending on whether it's already on, course). This toggles the writing of debug text to the mysterious, inexistant debug file. All those opcodes are currently NOP'd at the moment (I plan to change that, though)...


In Cesar Vialpando, pressing X toggles a debug mode. When it's on you can press P, which shows a "LEVEL_PAUSED" message. However, the game crashes shortly after that. Happy days.


However, in the Taxi submissions, level pausing seems to work fine. The timer doesn't freeze but the tip bar does. And while the level is "paused", your customer won't get in the taxi or get out of it if they're already in.


So there's some of the stuff I've unlocked. Next time I might actually let you have it tongue.gif


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Jun 22 2011, 02:13 AM
Post #3


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Heh.. In Video Poker, I can edit stuff. Fun times.


--------------------
Go to the top of the page
 
+Quote Post
Spider-Vice
post Jun 22 2011, 01:29 PM
Post #4


In motus...

Group Icon

Posts: 361
From: Portugal
Joined: 28-May 09



Shit last time I remember talking about this with you you had no idea what was what xD Nice finds, this looks fun.

/me wants internal beta ninja.gif
Go to the top of the page
 
+Quote Post
LINK/2012
post Jun 22 2011, 02:45 PM
Post #5


I will kill you

Posts: 126
Joined: 13-May 11



You're the best SCM scripter that I have even seen!

This post has been edited by LINK2012: Jun 22 2011, 02:45 PM
Go to the top of the page
 
+Quote Post
Silent
post Jun 22 2011, 06:00 PM
Post #6


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



QUOTE (LINK2012 @ Jun 22 2011, 03:45 PM) *
You're the best SCM scripter that I have even seen!


Screw you biggrin.gif
Go to the top of the page
 
+Quote Post
Deji
post Jun 23 2011, 07:29 AM
Post #7


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Sucessfully finished reimplementing the following:
SANNY
03A7: write_integer_to_debug_file $CURRENT_WANTED_LIST
03A8: write_float_to_debug_file 208@
03A9: write_newline_to_debug_file
05B6: write_string_to_debug_file 1   // (05B6: 1 // CURRENT_WANTED_LIST = )
0662: printstring "AAAAAAAAA"
0663: printint "IGFIDX" $GIRLFRIEND
0664: printfloat "CHIP_SET_Z" $9387
0735:   is_keyboard_key_pressed
0736:   is_keyboard_key_just_pressed


Note that only 03A7, 03A8, 03A9, 05B6, 0735 and 0736 are definitely the same (or similar) functions. The rest are close guesses.


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Jun 23 2011, 12:48 PM
Post #8


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Pretty much finished the opcode reimplementation and am just cleaning things up (not at the moment, but I will).

I played a short game of Pool (short because the dumb opponent potted the black). Read the Pool Debug Log to have yer mind blown. Yeah, this is pretty much what some Rockstar coding people may have read through to debug the Pool mission. Most of it is to do with determining what the best ball to attempt to pot is for the AI.


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: