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

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

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: (16) [1] 2 3 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 Petrol Mod

 Yes Please
 
the_gas  
Posted: Thursday, Feb 12 2009, 09:12
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



I have always enjoyed the petrol mods that come out for gta games. Anything that can add an extra level of realism is good imo.

Anyway, what are the chances of one being created for GTA IV? Once you enter a car it is stored in memory so hopefully it should save the amount of petrol you put in it. This was always a problem with previous petrol mods.
PM
  Top
 

 
a-k-t-w  
Posted: Thursday, Feb 12 2009, 09:32
Quote Post


Wannabe GTA IV Dev
Group Icon
Group: Members
Joined: Sep 30, 2008

au.gif

XXXXX



Yes, I think this is possible. Just make the car stop working after you run out of petrol?
PMXbox Live
  Top
 

 
the_gas  
Posted: Thursday, Feb 12 2009, 09:44
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



Yeah i have no idea how to do it, but it would be a great realism mod. If it is made, hopefully the car you are driving will remember how much petrol you have put in it. Thats been the problem with previous petrol mods, as soon as you put the car in the garage, the amount of petrol put in was lost, and you could go from having a full tank to nothing at all.

Another nice addition would be petrol station icons added to the map.
PM
  Top
 

 
HazardX  
Posted: Thursday, Feb 12 2009, 09:55
Quote Post


pedestrian mangler
Group Icon
Group: Members
Joined: Dec 13, 2008

gr.gif

XXXXX



Doing a petrol mod wouldn't be too hard. But it is not possible to store the amount of petrol in the savegame, as far as i know.
Users WebsitePM
  Top
 

 
the_gas  
Posted: Thursday, Feb 12 2009, 10:17
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



But if you get into a car, and then leave it, that car is stored in memory, ie it stays there unless you quit the game, or get into another car. So there must be some way of getting said car to remember the amount of said petrol.
PM
  Top
 

 
HazardX  
Posted: Thursday, Feb 12 2009, 10:27
Quote Post


pedestrian mangler
Group Icon
Group: Members
Joined: Dec 13, 2008

gr.gif

XXXXX



QUOTE (the_gas @ Feb 12 2009, 11:17)
But if you get into a car, and then leave it, that car is stored in memory, ie it stays there unless you quit the game, or get into another car. So there must be some way of getting said car to remember the amount of said petrol.

Yes, this works as long as the current game runs. But as soon as you load a savegame all objects will get new unique IDs and thus the stored information is gone.
Users WebsitePM
  Top
 

 
FakeJ66  
Posted: Thursday, Feb 12 2009, 10:52
Quote Post


Punk-ass Bitch
Group Icon
Group: Members
Joined: Dec 28, 2008

tk.gif

XXXXX



it should be possbile by lua-scripting as far as i know. because there is a mod for sa already. and it's a cleo script.
PMXbox Live
  Top
 

 
Intosia  
Posted: Thursday, Feb 12 2009, 12:17
Quote Post


I'm random! ^^
Group Icon
Group: Members
Joined: Dec 11, 2008

nl.gif

XXXXX



Cant be to hard. Give every car a 'gas amount' and a 'fuel ratio'. Then just read the velocity of the car and do some math. Or am i missing something?
Users WebsitePM
  Top
 

 
the_gas  
Posted: Thursday, Feb 12 2009, 14:05
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



Good Good, hopefully someone can make it. As long as it remembers my petrol count if i leave my car to say go online, or go to a strip club, then im happy.
PM
  Top
 

 
Pandur  
Posted: Thursday, Feb 12 2009, 17:58
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 10, 2009

gr.gif

XXXXX



Of course there must also be a way to refill your car at the gas stations!!!
Surely a lot of work, but should be possible!

I hope for it, too!
PM
  Top
 

 
the_gas  
Posted: Thursday, Feb 12 2009, 18:44
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



Who will be our knight in shining armour? confused.gif
PM
  Top
 

 
Andrew  
Posted: Thursday, Feb 12 2009, 22:00
Quote Post



Group Icon
Group: Forum Admins
Joined: Jul 21, 2003

Member Award




Hmm could be interesting, I wouldnt even be sure on the maths involved. There isn't any way of drawing to the screen properly yet. So any display that we had last time doesn't work.

PM
  Top
 

 
AngryAmoeba  
Posted: Friday, Feb 13 2009, 04:51
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



QUOTE (Intosia @ Feb 12 2009, 12:17)
Cant be to hard. Give every car a 'gas amount' and a 'fuel ratio'. Then just read the velocity of the car and do some math. Or am i missing something?

^ The problem with this is that it would use up gas whenever you're moving, even if you're only coasting. So it'd be better to have it do the math when W is pressed/the controller trigger is squeezed.
PM
  Top
 

 
the_gas  
Posted: Friday, Feb 13 2009, 07:06
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



QUOTE (AngryAmoeba @ Feb 13 2009, 04:51)
QUOTE (Intosia @ Feb 12 2009, 12:17)
Cant be to hard. Give every car a 'gas amount' and a 'fuel ratio'. Then just read the velocity of the car and do some math. Or am i missing something?

^ The problem with this is that it would use up gas whenever you're moving, even if you're only coasting. So it'd be better to have it do the math when W is pressed/the controller trigger is squeezed.

That's a good shout.
PM
  Top
 

 
Andrew  
Posted: Friday, Feb 13 2009, 08:56
Quote Post



Group Icon
Group: Forum Admins
Joined: Jul 21, 2003

Member Award




QUOTE (the_gas @ Feb 13 2009, 08:06)
QUOTE (AngryAmoeba @ Feb 13 2009, 04:51)
QUOTE (Intosia @ Feb 12 2009, 12:17)
Cant be to hard. Give every car a 'gas amount' and a 'fuel ratio'. Then just read the velocity of the car and do some math. Or am i missing something?

^ The problem with this is that it would use up gas whenever you're moving, even if you're only coasting. So it'd be better to have it do the math when W is pressed/the controller trigger is squeezed.

That's a good shout.

Even if you're coasting in a car you're using up fuel. Since the engine is still running and still ticking over.
PM
  Top
 

 
the_gas  
Posted: Friday, Feb 13 2009, 09:30
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



True, but but the petrol consumption in this situation must be lower than at top speed, if this can be factored in i doubt it.
PM
  Top
 

 
Andrew  
Posted: Friday, Feb 13 2009, 13:28
Quote Post



Group Icon
Group: Forum Admins
Joined: Jul 21, 2003

Member Award




Very true, IV has a velocity varible. I think this holds the amount of acceleration being applied to the car.

I made a very basic mod, my scripting skills arent good, lol. No filling stations yet, or no way to refill the tank, not to mention that one tank is for every car in the game. And it currently drains fuel based on the speed.

This post has been edited by Gangsta Killa on Friday, Feb 13 2009, 17:19
PM
  Top
 

 
AngryAmoeba  
Posted: Saturday, Feb 14 2009, 03:03
Quote Post


Symbiont
Group Icon
Group: Members
Joined: Jan 12, 2009

us.gif

XXXXX



Well that's a good start! And yes, sorry, my logic was wrong because I don't know much about the mechanics of cars. I figured only pushing the gas pedal used gas.
PM
  Top
 

 
Andrew  
Posted: Saturday, Feb 14 2009, 07:09
Quote Post



Group Icon
Group: Forum Admins
Joined: Jul 21, 2003

Member Award




I had a check into the Velocity value, its empty. So that can't be used to drive. I'm going to see if its possible to get a controller press.

Currently the petrol works like so.

-One tank for all cars
-Petrol is drained depending on the speed of the car.
-Amout used goes up in 0.25f increments expect at top speed where its a 2.0f drain
-Fuel is drained every second.

At the present moment, a tank that has 60 fuel, will get you from The Algonquin safehouse to somewhere on the first island. I tried to find a way to turn off the cars engine once you'd ran out of fuel, or set a flag to say can't start car. At the moment I'm having to freeze the cars position and turn on its hazard lights.
PM
  Top
 

 
the_gas  
Posted: Saturday, Feb 14 2009, 08:29
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2005

XXXXX



Good work Gangsta, sorry i cant be of more help. Hopefully you can continue to improve the mods realism.
PM
  Top
 

 

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

0 Members:

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

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



 
IMG IMG