IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

This section is for any editing topics that don't fit into any of the other forums, any questions on how to mod belong in Editing Discussion

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (56) 1 [2] 3 4 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 Documenting GTA3/VC memory adresses

 Vice *and* GTA3
 
DexX  
Posted: Sunday, Dec 7 2003, 00:37
Quote Post


Black Hat
Group Icon
Group: Retired Staff
Joined: May 16, 2002

Member Award




gta3.ini - gta3 actually uses this, i just copied it to my vice root folder.
Data/SPECIAL.TXT
Data/Views.txt
it lists some view variables..
CODE
View #i assume the views.txt format...
%0.6f %0.6f %0.6f %0.6f %0.6f %0.6f %0.6f %s%d


Interesting messages...
"Cannot Write to preset view file"
"Cannot Open preset View file"
"Out of memory - not all preset views loaded"

and elsewhere in the exe it lists this...
CODE
CamX: %f CamY: %f CamZ:  %f
Frontx: %f, Fronty: %f, Frontz: %f
Look@: %f, Look@: %f, Look@: %f


Yea, looks like alot of stuff was left out for the final release. others, like your "press start to reload carcols data" is probably left over form the ps2 version, where the controller actually HAS a start button, lol.

yay, hex edit my .set file, that will be fun. could be useful though...
PM
  Top
 

 
steve-m  
Posted: Sunday, Dec 7 2003, 11:58
Quote Post



Group Icon
Group: Members
Joined: Jul 26, 2002

gr.gif

Member Award




QUOTE (ashdexx @ Dec 7 2003, 01:37)
Data/SPECIAL.TXT
Data/Views.txt

VC doesn't even attempt to open these or other files (in its current configuration), I checked it.
But it looks for a directory "movies\subtitles\" for example. Strange stuff.

BTW, I extracted the whole data segment to an extra file for easier reading.

@Ash: Hope you reply to my PM...
Users WebsitePM
  Top
 

 
AJH  
Posted: Sunday, Dec 7 2003, 12:26
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 7, 2003

XXXXX



Cool stuff ashdexx.
Here is what I found:
If your in that menu and change the value of A10B39 to 1 it creates a new actor like this.
Maybe it has something to do with that New Actor button.

Another thing I found is if you change A10B39 to 0 it hides all hud display's like radar etc.. smile.gif
PM
  Top
 

 
JernejL  
Posted: Sunday, Dec 7 2003, 18:00
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




QUOTE (ST.MU @ Dec 7 2003, 12:58)
QUOTE (ashdexx @ Dec 7 2003, 01:37)
Data/SPECIAL.TXT
Data/Views.txt

VC doesn't even attempt to open these or other files (in its current configuration), I checked it.
But it looks for a directory "movies\subtitles\" for example. Strange stuff.

BTW, I extracted the whole data segment to an extra file for easier reading.

@Ash: Hope you reply to my PM...

yes it loads them, use sysinternals file monitor..

btw, about data segments, i made a tool for exporting / importing this stuff
for GTA1, quite old program..

http://www.infofeast.com/delfi/will_be_del...sap/exeedit.zip

it also renames the section and does some other sh*t..
Users WebsitePMMSN
  Top
 

 
steve-m  
Posted: Sunday, Dec 7 2003, 19:01
Quote Post



Group Icon
Group: Members
Joined: Jul 26, 2002

gr.gif

Member Award




QUOTE (Delfi @ Dec 7 2003, 19:00)
yes it loads them, use sysinternals file monitor..

That's what I did!? notify.gif

That tool is great, exactly what I'm looking for. Could you give me the source? I wanted to update my MenuEditor to read the offset of the data segment from the exe, because most users have problems finding the offset of menu data themselves.
Users WebsitePM
  Top
 

 
JernejL  
Posted: Sunday, Dec 7 2003, 21:07
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




QUOTE (ST.MU @ Dec 7 2003, 20:01)
QUOTE (Delfi @ Dec 7 2003, 19:00)
yes it loads them, use sysinternals file monitor..

That's what I did!? notify.gif

That tool is great, exactly what I'm looking for. Could you give me the source? I wanted to update my MenuEditor to read the offset of the data segment from the exe, because most users have problems finding the offset of menu data themselves.

new offsets:

10554188 > mouse controller enabled
10554184 > Freeze world - freezes everything that is usualy doing something
the player freezes (even with a plane mid-air), cars freeze, pedesterians freeze etc..
but the trash and rain drops on camera are still doing "their stuff", the clock is still working..
you can safely unfreeze this mode later, everything works like nothing happened..
this might be used for replay feature as some stuff disappears after it is turned off again..
heh - try this with a scene with thousands of cars onscreen, then use "bigbang" cheat so
everything explodes but stays on place, after that disable the cheat, and everything exploded will start
fliying around smile.gif

it is also interesting to turn this on in middle of replay, everything visual will halt,
but the player and car shadows will still follow the movement smile.gif

interesting thing is that debug menu doesn't activate the funky cam mode setting..

ashdexx: the things around your offsets are gold mine i tell you..

@ST.MU:
sure, the program is a edit of something i got from borlands website, but i added the
section importer / exporter myself..

http://www.infofeast.com/delfi/will_be_del...xe%20editor.zip

feel free to do anything with it, it is very crap and old code, so don't expect to see
anything fancy..

also, Steve - you'll need my component pack if you don't want to fix the form and unit
by hand to use standard vcl - it is from my components page on my website..
Users WebsitePMMSN
  Top
 

 
Stretchnutter  
Posted: Sunday, Dec 21 2003, 18:46
Quote Post


Also known as Racer_S
Group Icon
Group: Members
Joined: Jun 15, 2002

us.gif

Member Award




QUOTE (Squidd @ Dec 21 2003, 10:21)
Hi everyone,

my first reply here at gtaforums. biggrin.gif
I tried to modify the camera, with the offsets given at the beginning of that thread.
But nothing happens.

When I set the Currently Selected View (Car) to 4, it works. Is there no other way to change the camera when you're on foot, for example?

Excuse me for my english. Hope you'll understand me.

Greets
Squiddy


Welcome to GTAForums!!!

ive already made a tool to do this.

http://toca.game-editing.net/dl?f=fpstest.zip

VC Camera Hack v2.1 Final


v2.2 is in progress...

This post has been edited by Stretchnutter on Sunday, Dec 21 2003, 18:47
Users WebsitePM
  Top
 

 
JernejL  
Posted: Monday, Dec 22 2003, 12:16
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




QUOTE (Stretchnutter @ Dec 22 2003, 12:12)
QUOTE (Delfi @ Dec 22 2003, 10:32)
QUOTE (Stretchnutter @ Dec 21 2003, 19:46)
v2.2 is in progress...

2.1 never worked for me.. crashed game instantly.

the readme suggeststhat if it crashes, use the no cd and even a link in there.


Its a bit of dodgy code injection which can really only be fixed by distributing a pre-made gta-vc.exe


check the readme if you still want to try it.

i tried nocd and it didn't have ANY sounds ingame (not even sound effects)
if i ran it with the cd it froze on loading..

can you distribute the modified exe? do it or find better camera memory data tounge.gif

find the cameradistance and cameratarget..

This post has been edited by Delfi on Monday, Dec 22 2003, 12:16
Users WebsitePMMSN
  Top
 

 
Squidd  
Posted: Monday, Dec 22 2003, 16:26
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 11, 2003

XXXXX



Sorry, but i've got another question.

Somebody found out something about velocity or gravity? Don't know the right word. I mean that you can jump higher for example.
I'm searching a long time, but found nothing yet.

Before i continue searching, is it possible that this could be modified through an offset? I mean that it stands somewhere in the memory.


And for another time, sry for my english. colgate.gif
Think i'm going to improve it by posting here.

Squiddy

This post has been edited by Squidd on Tuesday, Dec 23 2003, 09:32
PMMSNICQ
  Top
 

 
Squidd  
Posted: Tuesday, Dec 23 2003, 09:32
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 11, 2003

XXXXX



QUOTE (ashdexx @ Dec 23 2003, 04:45)
i understand your english is bad, so maybe you got your terms mixed up, everything is at an offset, all the data exists somewhere, the trick is in finding that offset, and exploiting it to its fullest.

I thought Delfi modded the player attributes for how high you could jump didnt he?

Sorry for my english, i try to improve it, so you could understand me. confused.gif


About the player attributes, thats why i am asking. I tryed the search, but found nothing. You've maybe got a link or something else for me?

Thx
Squiddy
PMMSNICQ
  Top
 

 
JernejL  
Posted: Tuesday, Dec 23 2003, 14:20
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




the player data is at same active block pointer as for car - if you are not in a car..
Users WebsitePMMSN
  Top
 

 
JernejL  
Posted: Thursday, Dec 25 2003, 23:50
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




more:

note: all decimal.

ashdexx posted only the hours for game time, here are the minutes:
10554258 > longword (4 byte unsigned integer)

carpointer + 581
1 byte switch > alternate siren
works on any car, specials like ambulance will have the siren and lights,
but on ordinary cars the car will have double horn biggrin.gif
Users WebsitePMMSN
  Top
 

 
Stretchnutter  
Posted: Thursday, Feb 26 2004, 20:15
Quote Post


Also known as Racer_S
Group Icon
Group: Members
Joined: Jun 15, 2002

us.gif

Member Award




68f5f0 - Gravity (Float)
Users WebsitePM
  Top
 

 
DexX  
Posted: Friday, Feb 27 2004, 20:41
Quote Post


Black Hat
Group Icon
Group: Retired Staff
Joined: May 16, 2002

Member Award




lmfao, you can set it to whatever you want, set it to zero and make tommy jump. he doesnt come down, ever tounge.gif

here'e a pic (brightness raised for clarity)
user posted image

Side effects-
peds are stuck in the sidewalk, and cant walk, even when they get out of the car
if you accelerate too fast, you do wheelies, even in that idaho, which is exactly how that happened
also, if you exit the car midair, the player stays in that spot, he doesnt fall down

Edit: i clicked start new game by accident, with no grav on, and decided to let it play out. this is a BAD thing to do, when ken drives you to the office, he cant stop! the car flys into, and through the camera, and the cutscene doesnt end, i needed to close vice via the task manager to get out of the game. just a warning...

Edit 2: as odd as it may sound, you can make tommy swim with this! seriously. i failed at a jump on the docks with my pcj, and tommy plummeted to the water, except he didnt drown, he just keeps doing the falling animation and never goes into the water, and while he's falling i can control which direction he falls, so i steered him back to the shore. damn.

@stretchnutter - damn good find here with that address! thanks you!

More stuff to do with it...
-hit bikes, the people fly much farther
-get into more fights with cops, and use weapons that make bodies fly, like grenades or rockets, the bodies get mad air
-stay by bridges and piss cars off by shooting at them
-do pretty much anything that onvoles an object leaving the area and travelling vertically...

here's my gravity settings
orig -
6f 12 01 3c
change 3c, to 3b, to keep the game playable, but much more interesting.

This post has been edited by ashdexx on Friday, Feb 27 2004, 21:27
PM
  Top
 

 
steve-m  
Posted: Saturday, Feb 28 2004, 01:20
Quote Post



Group Icon
Group: Members
Joined: Jul 26, 2002

gr.gif

Member Award




Congrats Stretchnutter, an awesome discovery!

What happens, when you set the gravity to a very high value like 1? This: wink.gif
user posted image

With this value it is impossible to jump, you will land the same moment you jumped off. Running and then jumping results in immediate death. And the best of all: If peds are spawned higher than ground level (e.g. when paths aren't set exactly), they don't survive the few centimeters falling distance! devil.gif
The same happens to .scm-placed cars, they fly through the air burning and exploding.

Another nice effect is setting the gravity to a negative value, jumping results in infinite rising, and not only for the player. If you let some people take off and then set the gravity back positive again, they fall down and crash into the ground, another way to kill peds... devil.gif²

Some common values:
Hex BytesFloatDescription
6F 12 03 3C0.008default gravity
6F 12 83 3B0.004half gravity
6F 12 03 3B0.002quater gravity
6F 12 83 3C0.016double gravity
6F 12 03 3D0.032fourfold gravity
6F 12 03 BC-0.008negative gravity
00 00 80 3F1.0very high gravity
17 B7 D1 380.0001very low gravity


Low gravity (1/2 or 1/4) makes you jump wider, higher and longer and makes doing wheelies damn easy.

I've no idea what a gravity value of 0.008 could stand for. Normally it is defined as m/s² with values like 9.8 (Earth) or 1.62 (Moon). Either the hundredth of the slightly changed original gravity or an undefined invention by R*.
Users WebsitePM
  Top
 

 
DexX  
Posted: Saturday, Feb 28 2004, 13:40
Quote Post


Black Hat
Group Icon
Group: Retired Staff
Joined: May 16, 2002

Member Award




man oh man....i do the oddest things. im not even sure of *exactly* what it was this time, but ill give my instrucstions nonethless, vague though they are. from 69b1c0 to 69b21f, fill it with zeros. this will have 2 effects ingame, one, all the parked cars will be facing one direction, the other is every time you press a key on the keyboard, it will spawn a blooding, i sh*t you not. pic -
user posted image

im unable to narrow down the address(es?) any more, because im about to pass out. if anyone wants too, have at it. btw, DO NOT hold down a key, it WILL start raining bloodrings, and drop your fps to less than 1. and i literally mean "rain", there will be that many if you press a key for too long. i made the mistake of holding a key down for a solid 5 seconds. 2 minutes later, when my game resumed, i had about 1/4 of a frame per second, before vice crashed. oops tounge2.gif

time for sleepy.gif
PM
  Top
 

 
AJH  
Posted: Saturday, Feb 28 2004, 17:45
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 7, 2003

XXXXX



Thats is cool smile.gif

Here's the adres: 69B1D8
PM
  Top
 

 
Stretchnutter  
Posted: Thursday, Mar 4 2004, 16:16
Quote Post


Also known as Racer_S
Group Icon
Group: Members
Joined: Jun 15, 2002

us.gif

Member Award




7838D1 - Current Gear (Byte)

apparently you can force it to change gears, but the sound type relies on switches... the offsets around that one contain nothing but 1's and 0's interesting.


changing the gear doesn't have an effect on the vehicle speed, but the sound definately changes (you have to do some ASM hacking to disable the instructions that are updating the gear offset, or you can just FREEZE the value)

This works perfectly next to a speedometer rah.gif

Ill have to play around with this a bit more later devil.gif

EDIT: Ok, more is now known.

7838E0 (dword) - Timer for when sound starts playing, gear changed?
Compare to global timer @ 974B2C

7838D8 (dword) - frequency of sound when in 'overdrive' (just increases with time if above certain speed until it reaches 800(dec) then it starts decreasing if over)

7838DD (byte?) - some kinda 'overdrive' switch


CODE
_text:005F1625 080                 mov     ds:dword_0_7838D8, 0
_text:005F162F 080                 jmp     loc_0_5F1D9A  ; Jump
_text:005F1634    ; ---------------------------------------------------------------------------


if you NOP out the Jump @ 005F162F by setting it to hex 9090909090 (size?) you can have overdrive on all the time and control the frequency.

I used the speed to control the frequency and it sounded like it had one gear tounge.gif

This post has been edited by Stretchnutter on Friday, Mar 5 2004, 09:34
Users WebsitePM
  Top
 

 
DexX  
Posted: Monday, Mar 8 2004, 13:21
Quote Post


Black Hat
Group Icon
Group: Retired Staff
Joined: May 16, 2002

Member Award




more info, these change the text thats entered to activte a cheat, kinda. like some kind of cheat identifer keypad-thingy tounge.gif
Example, if you type in TRAVELINSTYLE, you spawn a bloodring, soo..

[carname] [address] [cheat text]
Bloodring - 69B1D8, thats the offset for TRAVELINSTYLE
Romero's Hearse - 69b1e8 - THELASTRIDE
Love Fist Limo - 69b1f4 - ROCKANDROLLCAR
Trashmaster - 69b204 - RUBBISHCAR
Sabre Turbo - 69b210 - GETTHEREFAST

Now, if you swap around the values of say romero's hearse, and the bloodring, then typing in TRAVELINSTYLE, will spawn a hearse, instead of a bloodring, ive tested this.
If you fill the value with zero, as mentioned before, it will spawn that car when you press ANY a-z key

thanks to AJH for narrowing it down mate smile.gif

This is one i'm still exploring, but if you mess with it, there is no door animation, the door (driver side, front door) is EITHER open or closed, but when tommy gets in / out of a vehicle, it skips the animation and all the frames, and just becomes open / closed.
69b34a
PM
  Top
 

 
JernejL  
Posted: Tuesday, Mar 9 2004, 13:01
Quote Post


Big Homie
Group Icon
Group: Retired Staff
Joined: Mar 11, 2002

se.gif

Member Award




in the ped control block:

start +
#256 = your speed force
Users WebsitePMMSN
  Top
 

 

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

0 Members:

Pages: (56) 1 [2] 3 4 ... Last »

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG