#1 23-03-2008 09:38

areppon
Registered: 23-03-2008
Posts: 4

Please help newbie with memory addresses

I have spent the better part of the weekend searching the internet for information about how to manipulate (or use) the things in the memory addresses, but all I've found so far are lists of addresses and what they do. What I need to know is how to access these addresses for manipulation, how they relate (if they do) to opcodes and/or what the relationship is (if any) to hex offsets, and can I use these as a way of filtering which opcodes I may want. I guess I'm asking for a short tutorial. e.g., I want to adjust the speed of time flow in game. since it's an integral part of a mod I'm writing, I want it a part of the mod instead of making the user have 15 different trainers running at the same time (with god only knows which one is crashing the game for god only knows why).
I know that I need to manipulate this ->0xB70158 - Timer related to weather and time in ms [dword]
And/or this ->0xB7015C - Defines how many ms = 1 second... default 1000, set to 1 for a headache (number of ms per sec) [dword]
But how? Can Sanny help me do this kind of thing? Are the opcodes attached to these addresses? Do I have to use a hex editor? Do I need to learn how to make a DLL? Am I stuck with having to use 20 different trainers? Sorry, I know it's big question but please help me. The people at gtaforums are too stuck up and lazy to help newbies (and can't even spell it right either!:lol:).

Offline

#2 23-03-2008 10:40

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Please help newbie with memory addresses

0A8C: write_memory 0xB7015C size 4 value 60000 virtual_protect 0

changes the ms per second value

Offline

#3 24-03-2008 04:17

areppon
Registered: 23-03-2008
Posts: 4

Re: Please help newbie with memory addresses

THANKYOUTHANKYOUTHANKYOU!!!!!:^

So this is the opcode I use whenever I need to trigger something from any memory address? Then insert the correct address and  what ever values I need. Correct?

Edit: Incorrect:/ I tried to figure it out for myself but blush how do I make it work? Right now I'm using a blank SCM and the only things in it at this point are a few parked cars. I've got a gas code which i'll insert when it's not inconvenient to worry about gas.
I'm very new to Sanny and coding.., and coding for SA is very different from X3 Reunion (which is where I started learning and is my only other coding experience).
I understand CLEO can probably help me with a lot of things but I'm just now getting to know Sanny. You've got some powerful stuff here and I am eager to learn how to take advantage of it.

BTW, can you check my reply to the topic directly below this one (the one about the car doors). I have the same question but it doesn't seem logical to make a new topic about something some one else already asked about (even if their question sounded more like gibbering). Hopefully I restated the question in a more grokkable form.

Last edited by areppon (24-03-2008 08:34)

Offline

#4 24-03-2008 15:11

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Please help newbie with memory addresses

0A8C requires CLEO to be installed. You can use this opcode in a blank SCM if you want, but the CLEO files must be installed anyway.

Sorry, but I'm busy these days. I reply only if have some free time.

Offline

#5 24-03-2008 17:19

areppon
Registered: 23-03-2008
Posts: 4

Re: Please help newbie with memory addresses

Cool, simple enough. Thanks, but no need to be rude, I'm busy too. I have 2 jobs and I'm going to university. I am smart enough to understand the answer "Make sure you have cleo installed or install a new copy an then try again" without all the curt remarks attached to it. But thank you for your help. I won't bother you here ever again.

[5 min. later...] Hey look at that, what do you know. Turns out that the cleo3 that's auto installed with sanny was missing half of the files. replaced with stand alone and it works beautifully. So I guess it wasn't because I was stupid and needed you to hold my hand. Your simple answer works just fine. Stop assuming people are too stupid to be worthy of your time. After all it's your program. If you don't want to support it then just say so. Usually simple answers will do. But yappari you're just like the rest of the arrogant dicks at gta forums.

Last edited by areppon (24-03-2008 17:46)

Offline

#6 24-03-2008 17:27

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Please help newbie with memory addresses

{
  use macro (Ctrl+J) "headsa"
  to insert a file header      
}
{$VERSION 3.0.0000}
var
 $PLAYER_CHAR: Player
end // var 
03A4: name_thread 'MAIN' 
01F0: set_max_wanted_level_to 6 
0111: toggle_wasted_busted_check 0 
00C0: set_current_time_hours_to 8 minutes_to 0 
04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 
03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 
0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 
01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 
0373: set_camera_directly_behind_player 
01B6: set_weather 0 
0001: wait 0 ms 
087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 
087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 
087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 
087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 
070D: rebuild_player $PLAYER_CHAR 
01B4: toggle_player $PLAYER_CHAR can_move 1 
016A: fade 1 time 0 
04BB: select_interior 0 
0629: change_integer_stat 181 to 4 
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 
016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 
0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 
0004: $DEFAULT_WAIT_TIME = 250
03E6: remove_text_box 

// put your create_thread commands here

:MAIN_LOOP
0001: wait $DEFAULT_WAIT_TIME ms
00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes

0A8C: write_memory 0xB7015C size 4 value 60000 virtual_protect 0 //NEW
0002: jump @MAIN_LOOP 


// put your mods (threads) here


//-------------Mission 0---------------
// put your missions here



//-------------External script 0---------------
// put your external scripts here

simple enough, eh? wink

Offline

Board footer

Powered by FluxBB