yair1221 1 Posted September 27, 2010 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? Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 can anyone help me with that? i want to be able to land upside down and all these stuff... Quote Share this post Link to post Share on other sites
Deji 789 Posted October 1, 2010 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... Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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... Quote Share this post Link to post Share on other sites
Deji 789 Posted October 1, 2010 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. Quote Share this post Link to post Share on other sites
jtr007 1 Posted October 1, 2010 What about MTA? They have gravity settings too. Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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 Quote Share this post Link to post Share on other sites
jtr007 1 Posted October 1, 2010 http://www.gtamodding.com/index.php?title=...resses_%28SA%29 Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 yeah, thats where i got it from but what is int32? Quote Share this post Link to post Share on other sites
jtr007 1 Posted October 1, 2010 hmm... well are you on MSN? Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 messenger? yeah... Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 1, 2010 Definition of Int32 and http://msdn.microsoft.com/en-uk/library/ms173104.aspx for the usage Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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 Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 1, 2010 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++??? geee.... Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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? Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 1, 2010 have no idea what you just saidi 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!!! Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 what the heck does that mean!!! Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 1, 2010 what the heck does that mean!!! 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 Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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 Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 1, 2010 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 Quote Share this post Link to post Share on other sites
Silent 15,335 Posted October 1, 2010 what the heck does that mean!!! Shoot, shoot, please! BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 1, 2010 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 Quote Share this post Link to post Share on other sites
Deji 789 Posted October 2, 2010 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. Quote Share this post Link to post Share on other sites
TheSiggi 8 Posted October 2, 2010 10.000.000.000but 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.000but its a float, shouldnt it be an integer? your actually right I always mixx up european and english usage of comma and point Quote Share this post Link to post Share on other sites
Wesser 345 Posted October 2, 2010 (edited) If int32 == 4 bytes long, then what's a difference between dword and int32? 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. Edited October 2, 2010 by Wesser Quote Share this post Link to post Share on other sites
Deji 789 Posted October 3, 2010 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. Quote Share this post Link to post Share on other sites
yair1221 1 Posted October 3, 2010 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... Quote Share this post Link to post Share on other sites