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. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    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 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 Mods
    10. GTA Vice City

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

      1. Guides & Strategies
      2. Help & Support
      3. GTA 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

Andrew

[IV | REL/WIP] FuelScript IV

Recommended Posts

Andrew

Fuel mod V3 BETA

 

Version 3 BETA has now been released, get it from the gta garage page

 

Note: Need .net scripthook V0.893 to use this mod

Now you can add fuel to IV. Features:

 

• Fuel stations on all islands with 3 different prices

• Stealing locations on all islands

• Control the engine / hazard lights

• Mobile refueling system (for those who cant get to a fuel station (call MOB 555 0100)

• Fuel bar with speed and engine health bars.

• If you run out of fuel, emergency recovery service (call TOW 555 0100), which restores fuel.

• Car database for invidial fuel usage on cars.

 

 

user posted image

user posted image

user posted image

user posted image

 

 

 

 

Get it from http://www.gtagarage.com/mods/show.php?id=5538.

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
HazardX

Congrats on the release! icon14.gif Nice work!

Share this post


Link to post
Share on other sites
tazzer

cool! downloading now

Share this post


Link to post
Share on other sites
Andrew
Congrats on the release! icon14.gif Nice work!

Thanks Hazard, wouldn't of been done if it wasnt for your help and the scripthook. smile.gif

Share this post


Link to post
Share on other sites
Fabio206

Great mod, cookie.gifbiggrin.gif

 

Could I upload also in my site? smile.gif

Share this post


Link to post
Share on other sites
Low_tuning

I dont know why, but i hate all fuel mods confused.gif sometimes its so anoing.... sarcasm.gif

 

But nice try! icon14.gif

Share this post


Link to post
Share on other sites
a-k-t-w

YES!!! I've been waiting for this!! HELL YEA icon14.gificon14.gifcookie.gif

Share this post


Link to post
Share on other sites
CaptainDingo

Pretty interesting, however before I download, in my opinion the speed and health bar are rather unnecessary for the purpose of the mod, as well as the fact that the bars in general are too large and obtrusive.

 

If it was only a fuel bar, was more towards the bottom right of the screen, and was a bit smaller it'd be perfect.

 

What I like: You can change the fuel price in the .ini, which is nice because I think by default you charge way too much. biggrin.gif

Edited by CaptainDingo

Share this post


Link to post
Share on other sites
FunGt

Good mod, I tried it out but when I called TOW 555 0100 it bugs and the script exits. I was out of fuel. And also, when I am at a gas station, I turn off the car, exit and press R, but nothing happen. Can you explain how to refuel?

 

Btw you should remove the background under the writings SFE and make them smaller and lower in the screen.

Share this post


Link to post
Share on other sites
CaptainDingo

I seem to have other big problems with it as well...

 

Like, cars I get into won't drive, period. Niko gets stuck turning the key forever.

Share this post


Link to post
Share on other sites
PGoD

Great Job Gangsta Killa! Like it!

For those who can't refuel, while in the station, stop the engine, and just hold the button to get out of the car, that's it! A bug that GK have to fix smile.gif

Share this post


Link to post
Share on other sites
Andrew

 

I seem to have other big problems with it as well...

 

Like, cars I get into won't drive, period. Niko gets stuck turning the key forever.

To fix that problem you need to start the car using the key press for the engine. Control + R. Then Niko should be able to start the car.

 

For anyone having problems filling up, try with E key. Anyone who is having the script crash on them, please send me the scripthookdotnet.log file in the IV folder.

 

Edit: Niko should just exit the car as normal.

 

Next release will hopefully have the toggle switcheds implemented.

 

Edit2: I see what people actually mean by the speedo display, I've actually been playing the missions with it just now, and realised its quite big. When testing I didn't do any missions, lol.

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
CaptainDingo

Okay, I've played with it a bit more, and have more feedback (constructive, I understand nothing works all the time wink.gif).

 

Here's what I've gathered:

 

-Turning the engine on and off is rather inconvenient using the default mapping, so I remapped it to a single key (Z) and it works better for me, personally.

 

-It wasn't made clear but yes, it seems E is the key that makes you fill your car up... despite it even saying in the .ini file that R is the key for it? whatsthat.gif

 

-Holding E down fills it continuously, which is good because I was afraid I'd be sitting there hammering E to get my car filled. tounge.gif

 

-One big issue right now, is you can't see the fuel gauge while you're filling it up, which leads me to a lot of getting in and out of the car to see how much I've put in.

 

-In my opinion, gas isn't used fast enough. If it was consumed twice as quickly, it really wouldn't hurt anything. As it is, if your fuel bar is orange, you can still do a few laps back and forth across all the islands without worrying about running out. That's actually my biggest complaint right now, is there's never a reason to fill the car up unless you're driving around for like two hours IRL.

 

So in total, here's what I'd like to see changed in future versions:

 

1) Either increase the consumption rate or let us change it via the .ini file.

2) Letting us pick our own fuel costs via the .ini is goooood, leave it in. colgate.gif

3) The bars need to be less obtrusive.

 

Also, a question: Is this mod changing how much damage my car can take? It feels like my cars are catching fire a lot faster... which is obviously not a good thing. monocle.gif

Share this post


Link to post
Share on other sites
Andrew

 

Okay, I've played with it a bit more, and have more feedback (constructive, I understand nothing works all the time wink.gif).

 

Here's what I've gathered:

 

-Turning the engine on and off is rather inconvenient using the default mapping, so I remapped it to a single key (Z) and it works better for me, personally.

 

-It wasn't made clear but yes, it seems E is the key that makes you fill your car up... despite it even saying in the .ini file that R is the key for it? whatsthat.gif

 

-Holding E down fills it continuously, which is good because I was afraid I'd be sitting there hammering E to get my car filled. tounge.gif

 

-One big issue right now, is you can't see the fuel gauge while you're filling it up, which leads me to a lot of getting in and out of the car to see how much I've put in.

 

-In my opinion, gas isn't used fast enough. If it was consumed twice as quickly, it really wouldn't hurt anything. As it is, if your fuel bar is orange, you can still do a few laps back and forth across all the islands without worrying about running out. That's actually my biggest complaint right now, is there's never a reason to fill the car up unless you're driving around for like two hours IRL.

 

So in total, here's what I'd like to see changed in future versions:

 

1) Either increase the consumption rate or let us change it via the .ini file.

2) Letting us pick our own fuel costs via the .ini is goooood, leave it in. colgate.gif

3) The bars need to be less obtrusive.

 

Also, a question: Is this mod changing how much damage my car can take? It feels like my cars are catching fire a lot faster... which is obviously not a good thing. monocle.gif

Shouldn't be changing the cars engine damage. I'm trying to find a balance for the comsumption rate and failing.

 

Currently the comsumtion calculation looks like this.

 

if (vehSpeed < 1)                   fuelRatio = 0.00f;               if (vehSpeed > 1)                   if(vehSpeed < 10)                       fuelRatio = 0.10f; //miminal drain above 0mph               if (vehSpeed > 10)                    if(vehSpeed < 20)                       fuelRatio = 0.20f;               if (vehSpeed > 20)                   if(vehSpeed < 30)                       fuelRatio = 0.30f;               if (vehSpeed > 30)                   if(vehSpeed < 40)                       fuelRatio = 0.40f;               if (vehSpeed > 40)                   if (vehSpeed < 50)                       fuelRatio = 0.50f;               if (vehSpeed > 50)                   if (vehSpeed < 60)                       fuelRatio = 0.60f;               if (vehSpeed > 60)                   if (vehSpeed < 70)                       fuelRatio = 0.70f;               if (vehSpeed > 70)                   if (vehSpeed < 80)                       fuelRatio = 0.80f;               if (vehSpeed > 80)                   if (vehSpeed < 90)                       fuelRatio = 0.90f;               if (vehSpeed > 90)                   if (vehSpeed < 100)                       fuelRatio = 1.00f;               if (vehSpeed > 100)                   if (vehSpeed < 120)                       fuelRatio = 1.50f;               if (vehSpeed > 120)                   if (vehSpeed < 140)                       fuelRatio = 2.0f;               if (vehSpeed > 140)                   if (vehSpeed < 180)                       fuelRatio = 2.50f;               if (vehSpeed > 200)                   fuelRatio = 4.0f;               //add on the extra from the engine damage               float calc = engineHealth / 100;               if (calc > 20)                   if(calc < 40)                       fuelRatio = fuelRatio + 1.0f;               if (calc > 40)                   if(calc < 60)                       fuelRatio = fuelRatio + 2.0f;               if (calc > 70)                   fuelRatio = fuelRatio + 3.0f;

 

 

Changes to be made in next release:

 

- Change the GUI display

- Toggle switches

- Fuel consumption.

- Fuel gauge to be shown when filling up.

 

 

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
CaptainDingo

Cool beans.

 

Maybe you just need to increase the ratios exponentially more at faster-than-leisurely speeds. I can be going like 80MPH down a straightaway and staring at the gauge and it doesn't even move one pixel (well, that I can see anyways...).

 

I think the sweet spot for the fuel consumption/fuel cost would be to make fuel be consumed a lot faster and make it cost a lot less to fill up. Maybe test it in-game so you can only go about two laps back and forth across the map on a full tank before you need to fill up. Because I do like this mod, and I'd like to have more opportunities to use it and burn all this money I've got piled up, but at the current consumption rate filling up never happens, even when I find a car with half a tank or quarter of a tank left.

 

Anyways, I eagerly await the next version!

Share this post


Link to post
Share on other sites
Andrew
Cool beans.

 

Maybe you just need to increase the ratios exponentially more at faster-than-leisurely speeds. I can be going like 80MPH down a straightaway and staring at the gauge and it doesn't even move one pixel (well, that I can see anyways...).

 

I think the sweet spot for the fuel consumption/fuel cost would be to make fuel be consumed a lot faster and make it cost a lot less to fill up. Maybe test it in-game so you can only go about two laps back and forth across the map on a full tank before you need to fill up. Because I do like this mod, and I'd like to have more opportunities to use it and burn all this money I've got piled up, but at the current consumption rate filling up never happens, even when I find a car with half a tank or quarter of a tank left.

 

Anyways, I eagerly await the next version!

The max tank on the cars used to be 600L. In order to make things display better I switched this to 1000L. So that might be why its taking a while for a full tank to go down, lol. I'll look at doing it exponentially. Might even be able to make that change able.

Share this post


Link to post
Share on other sites
CaptainDingo

I had another thought too that would reduce how much code you've been writing for the fuel consumption.

 

I've only ever dabbled with coding and I'm not good enough to really do anything, but I'm fairly certain I understand the gist of it...

 

Rather than having a dozen If statements, maybe you could simply multiply the fuel consumption by however fast the car is going. That way you only need one little snippet of code to handle the fuel consumption rather than:

 

if 10-20 MPH then consume 0.5

if 20-30 MPH then consume 1.0

if 30-40 MPH then consume 1.5

 

etc, it might be easier (and all you'd have to do is change a multiplier) if you just made it a straight:

 

Make consumption of fuel = current speed x 0.2 (or whatever tounge2.gif).

Share this post


Link to post
Share on other sites
Andrew

 

I had another thought too that would reduce how much code you've been writing for the fuel consumption.

 

I've only ever dabbled with coding and I'm not good enough to really do anything, but I'm fairly certain I understand the gist of it...

 

Rather than having a dozen If statements, maybe you could simply multiply the fuel consumption by however fast the car is going. That way you only need one little snippet of code to handle the fuel consumption rather than:

 

if 10-20 MPH then consume 0.5

if 20-30 MPH then consume 1.0

if 30-40 MPH then consume 1.5

 

etc, it might be easier (and all you'd have to do is change a multiplier) if you just made it a straight:

 

Make consumption of fuel = current speed x 0.2 (or whatever tounge2.gif).

Hmm, I'll definately have a play around with that. I was aiming for something where, at normalish speeds ie 0 - 60od. The tank wouldn't drain very quickly, whereas above 60 it would start to drain rapidly.

 

Edit: Just doing a quick test using fuelRatio = vehSpeed * 0.05f, I might stick to that, and add that fuelRatio value to the ini so people can change it.

 

Edit2: Doesn't seem too bad. I'll stick to that.

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
CaptainDingo

Yay, I was helpful. lol.gif

Share this post


Link to post
Share on other sites
Andrew

Also changed the way the fuelRatio was calculated by engine damage. There are two multipliers, the first one is 1.5 times the current fuelRatio, and the second one is 3 times the current fuelRatio.

 

So if your engine is knackered, and you're flooring it you're going to drain that fuel tank pretty fast. Which is exactly what happens, With the engine in the red, flooring it to Alderny, I think I was burning about 13.5L a second!

 

 

Edit: Released 2.1 RC. Its on the gtagarage page. The only changes to this version is the fuelCalculation, you can now set these in the ini file. I've also removed the grey rectangle, but the gauges remain.

 

Edit2: You'll find in 2.1 that I've left in some functions that I used whilst testing. The following Keys cannot be mapped to. Q, Y, T, E

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
CaptainDingo

You're probably getting tired of my damn suggestions, but I have one more. colgate.gif

 

Each bar should have a full length dark gray/black bar behind it, so you can see how much of each bar is actually full. A minor aesthetic, but it would look more "smart."

 

Anyways, I haven't tried out your newer version but I'll certainly do so now.

Share this post


Link to post
Share on other sites
tomworld10

 

 

Hi,

 

Just Beautiful !!!!!!!

 

Have cookies cookie.gifcookie.gifcookie.gif

 

 

Have Fun

 

 

Share this post


Link to post
Share on other sites
CaptainDingo

Alright, just got done taking the new version for a test run. Very big improvement overall, the fuel consumption is right on in my opinion.

 

The addition of a display showing the current fuel level as you're refilling is nice as well, though now my gripe is that refilling takes ages. Luckily I realized you had the fill rate already there in the .ini so I simply raised it and raised the prices to compensate, problem solved. cool.gif

 

Pretty good overall, I'd say you're nearly done with this nice little mod. As far as aesthetics go, all I could really ask is you find a way to represent the fuel while refilling as a percent rather than its raw number, just for user friendliness.

Edited by CaptainDingo

Share this post


Link to post
Share on other sites
Andrew
Alright, just got done taking the new version for a test run. Very big improvement overall, the fuel consumption is right on in my opinion.

 

The addition of a display showing the current fuel level as you're refilling is nice as well, though now my gripe is that refilling takes ages. Luckily I realized you had the fill rate already there in the .ini so I simply raised it and raised the prices to compensate, problem solved. cool.gif

 

Pretty good overall, I'd say you're nearly done with this nice little mod. As far as aesthetics go, all I could really ask is you find a way to represent the fuel while refilling as a percent rather than its raw number, just for user friendliness.

Hopefully when I get back from University today I'm going to add in the suggestions people have made, add in the toggle switches and hopefully get it working nice and stable.

Share this post


Link to post
Share on other sites
a-k-t-w

-snip-

 

I've really got to stop posting when I'm angry.

 

Anyway, Q and E spawn cars and it's annoying as hell, cause it interferes with default controls.

 

Also, MOB 555 0100 and TOW 555 0100 are completely useless (not the number, just the service.)

 

The tanker guy, will just sit in his truck, after he is spawned and dose nothing, only comes to you when you get into another car, and drive near it. He also flys out of the truck, never to be seen again, when he stops.

 

The other thing TOW dose nothing. The noose will come to you, and thats it. You can't refuel from them. Also, when you call for a second one, the first one will beat up the second one? lol.gif lol, funny sh*t. So basicly, you run out of fuel? Your screwed.

Edited by a-k-t-w

Share this post


Link to post
Share on other sites
Andrew

 

-snip-

 

I've really got to stop posting when I'm angry.

 

Anyway, Q and E spawn cars and it's annoying as hell, cause it interferes with default controls.

 

Also, MOB 555 0100 and TOW 555 0100 are completely useless (not the number, just the service.)

 

The tanker guy, will just sit in his truck, after he is spawned and dose nothing, only comes to you when you get into another car, and drive near it. He also flys out of the truck, never to be seen again, when he stops.

 

The other thing TOW dose nothing. The noose will come to you, and thats it. You can't refuel from them. Also, when you call for a second one, the first one will beat up the second one?  lol.gif lol, funny sh*t. So basicly, you run out of fuel? Your screwed.

As for the Q and E, I left in some code I used whilst testing. So they spawn some vehicles. As for the MOB 555 0100 and TOW 555 0100. I have to look at a different way of getting them to work, it is hit and miss with the vehicles, they are pretty useless sometimes. They drive like idiots.

 

Edit: The idea behind the noose is that you cannot refuel from it, it fills the car with 100L of fuel.

 

Edit2: Tweaked the distance settings for the mobile refueling service, called it multiple times and only had one issue where it spawned on the highway. This the way it works:

 

- Player calls the mobile service

- Tanker is created within 40f of the player

- Ped is created and ordered to drive the tanker to within 4f of the player

- A temporary mobile station is added

- Can now fill up like at a station

- Player moves away from tanker 20f.

- Station is removed and tanker is set to cruise.

 

 

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
loczek47

You can call me big noob, but how the hell I'm suspossed to call MOB/TOW 555 0100? I was thinking you can only type numbers to call on Niko's phone.

Share this post


Link to post
Share on other sites
Andrew

Same way you type the cheats in, the letters correspond to a number. Look at the phones key pad. So MOB 555 0100 becomes 662 555 0100 and TOW 555 0100 becomes 869 555 0100.

Share this post


Link to post
Share on other sites
loczek47

Oh ok thanks icon14.gif The mod is awesome, it's good you made ini for it though.

Share this post


Link to post
Share on other sites
Andrew

We're getting there with the changes. I'm going to make pretty much every aspect of the mod be able to be configured by the ini.

 

Currently done

 

•Master on/off switch

•Turn parts of the display off

•Edit the displays location

 

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.

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.


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