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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
yair1221

No-gravity

Recommended Posts

yair1221

I used a gravity memory address

to make the game lose its gravity

i was in a plane, and as soon as the opcode worked

the plane fell down

that shouldnt happened, because planes have ignitions

is that a problem in the engine? or a problem with the memory address?

Share this post


Link to post
Share on other sites
yair1221

can anyone help me with that?

i want to be able to land upside down and all these stuff...

Share this post


Link to post
Share on other sites
Deji

Okay.. even I know that planes actually rely on gravity.

 

And if the plane fell down.. you've applied MORE gravity.

 

NO gravity would be stupid. Gravity keeps us on earth and although this is a game, I'd bet everything would still fly upwards into space... even though there is no space (thus you may experience some freaky colours fading over the screen).

 

Planes are given just enough power in thrust to be able to fly while in the current amount of gravity or something.. so changing the gravity would rely a change to the power of the plane.

 

 

Same thing with real life, by the way...

Share this post


Link to post
Share on other sites
yair1221

im talking about a space-mod im trying to create, i did the normal stuff, you know, made the sky black, changed the clouds into star-systems,

but then i got to the gravity, i used 0.0 gravity with the right memory address, it worked, but cars and planes cant move forward, its more like you said, as if there is too MUCH gravity

they just fall down, not all planes rely on gravity, some planes rely on air, too improve the pressure in the fuel-burning process and by doing so they get extra power

some planes just use normal engines(not propellers), which means they do not require air

bottom line, i dont plane to fall down, or move up, actually(the more acceleration you give them in handling.cfg, they just start to fly upwards instead of forward)

i just dont want there to be up and down in the game, i want the planes to move in a straight line, and if they stop their engines, i dont want them to fall down

and it too be the same if i land upside down, or normal...

Share this post


Link to post
Share on other sites
Deji

Ugh.. why don't you just read the current amount of gravity.. reduce the value A LITTLE (0.01 a time, perhaps) and then write it.

 

Like with the other topic... reduce it to see what difference it makes and then decide whether you need more or less. You're not taking much of this in, maybe I should give you some homework.

 

And as I said.. no gravity would mean things would fly everywhere without stopping. Even space has gravity, just less than on Earth.

Share this post


Link to post
Share on other sites
jtr007

What about MTA?

They have gravity settings too.

Share this post


Link to post
Share on other sites
yair1221

what does int32 means regarding to memory addresses?

it says in gtamodding

0x863984 - [int32] Gravity

i thought that obviously gravity would mean float...but what if it doesnt?

thats a new memory address

the last one i used is something i found here in gtaf, and at least it made a change, but this one doesnt

Share this post


Link to post
Share on other sites
yair1221

yeah, thats where i got it from

but what is int32?

Share this post


Link to post
Share on other sites
jtr007

hmm...

 

well are you on MSN?

Share this post


Link to post
Share on other sites
yair1221

messenger? yeah...

Share this post


Link to post
Share on other sites
yair1221

that didnt help alot, memory addresses should not go to C# and stuff like that, they should be just float, integer, char, and string, its just scm, not C#

im looking for a simple example of the usage of this memory address

 

0x863984 - [int32] Gravity

Share this post


Link to post
Share on other sites
TheSiggi
that didnt help alot, memory addresses should not go to C# and stuff like that, they should be just float, integer, char, and string, its just scm, not C#

im looking for a simple example of the usage of this memory address

 

0x863984 - [int32] Gravity

Are you fuvking joking? Do you think a Int32 in C# is something differnt as in ANSI C++??? suicidal.gif

 

geee....

 

 

Share this post


Link to post
Share on other sites
yair1221

have no idea what you just said

i was just asking him to make it simple for scm coding, not c#

i mean, what should i write in the memory address?

0A8C: write_memory 0x863984 size 1 value ?? virtual_protect 1

what should be the value?

Share this post


Link to post
Share on other sites
TheSiggi
have no idea what you just said

i was just asking him to make it simple for scm coding, not c#

i mean, what should i write in the memory address?

0A8C: write_memory 0x863984 size 1 value ?? virtual_protect 1

what should be the value?

a f*cking Int32!!!

Share this post


Link to post
Share on other sites
yair1221

what the heck does that mean!!! suicidal.gif

Share this post


Link to post
Share on other sites
TheSiggi
what the heck does that mean!!! suicidal.gif

mhhh... doesn't int sounds like integer? Doesn't an integer looks like 1, 2, 3 ....?

I don't get whats so hard about figuiring out what an integer means besides you even agrued you expected a float confused.gif

Share this post


Link to post
Share on other sites
yair1221

later i said the float might actually be the problem

i could understand the int but not the 32

if it didnt mean anything they would have said "int" or "integer"

like they did in other cases

Share this post


Link to post
Share on other sites
TheSiggi

no, an Int32 is 32 bits long = 4 bytes

means it can store 10 decimals (signed/usigned)

 

an Int64 is 64 bits long = 8 bytes

can stor 19 decimals

 

thats the differnce so if you pass 10.000.000.000 to the gravity address you'll make the game throw an overflow exception

Share this post


Link to post
Share on other sites
Silent

 

what the heck does that mean!!! suicidal.gif

Shoot, shoot, please!

 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

Share this post


Link to post
Share on other sites
yair1221

10.000.000.000

but its a float, shouldnt it be an integer?

 

 

Shoot, shoot, please! 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

 

hhh, would make your life easier, wouldnt it?

anyway, so i use it like that?

 

0A8C: write_memory 0x863984 size 4 value 0.1 virtual_protect 1

Share this post


Link to post
Share on other sites
Deji

Why don't you test it an frickin see? When you go out somewhere, do you have to call your mother to ask if it's okay to cross the road?

 

Yes.. but as I said, the value is not as simple as you may think. So do what I said in my last post and use read_memory, subtract float, write_memory to adjust the gravity according to the current value.

Share this post


Link to post
Share on other sites
TheSiggi
10.000.000.000

but its a float, shouldnt it be an integer?

 

 

Shoot, shoot, please! 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

 

hhh, would make your life easier, wouldnt it?

anyway, so i use it like that?

 

0A8C: write_memory 0x863984 size 4 value 0.1 virtual_protect 1

 

10.000.000.000

but its a float, shouldnt it be an integer?

 

your actually right tounge.gif I always mixx up european and english usage of comma and point

 

Share this post


Link to post
Share on other sites
Wesser

 

If int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

I think, saying that it's like making the comparison from u32 and int32, unsigned and signed integers. The farmer must be positive unlike the latter which doesn't take care about this limit. Both types reach 4 bytes (0xFFFFFFFF) but the last one takes only 4 bytes / 2 (0x7FFFFFF).

 

Gravity should be higher than or equal to 0. smile.gif

Edited by Wesser

Share this post


Link to post
Share on other sites
Deji

Okay.. let me freshen this topic.

 

Default Gravity: 0.008

 

Hopefully now you see how just "setting" the gravity value is a bad idea. It's better to add/take from it's default value.

 

Half Gravity: 0.004

Double Gravity: 0.016

Very High: 1.0

Very Low: 0.0001

 

Try not to goo too far from the actual value, or as I said.. the space time continuum will perform a gastric implosion.

Share this post


Link to post
Share on other sites
yair1221

well, thanks Deji, works good, except for one problem:

when the gravity is less than the original one, i cant accelerate with the plane, it moves so slow...maybe if i add to the handling...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

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