Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

[IV | REL/WIP] FuelScript IV


Andrew
 Share

Recommended Posts

CaptainDingo

Could you make the random fuel amounts never be zero? It makes no sense that I can jack a car a ped was just driving in two seconds ago, get in, and the tank is bone dry.

 

As low as like 10% would be fine, but I can't think of even anyone's parked car that sits there with nothing in it, so it would make more sense across the board for the tank to never randomize to 0 fuel.

Link to comment
Share on other sites

It shouldn't be from zero. The minium given is 100L, then the Maxium is the tank size. I'd check your INI file. Check that the amount of fuel saved, is not zero. If you've got out of a car with zero fuel, then that amount is stored. If you've then exited the game, then that is the fuel amount that will be applied at the next vehicle you enter on a new game.

Link to comment
Share on other sites

Hey GK, I read back a few posts of yours, you said you'll be adding more features to this already cool mod, well how about this, and i do not see why it can not be done since it is already in the game.

 

Ok here it is, you know as we drive around town we see from time to time people with their car hoods up and their heads stuck in it portraying like they are working on their vehicles, well why not make that a part of this mod with Random break downs, i mean you never know when it will happen (which adds realism and added stress wondering when and at what worst time) your vehicle will break down on you. Now this is how it could work.

 

You be driving in lets say any car, and its starts to cut out on ya and begins to stall which would give the person time to pull off the road before it completely dies on them. now once the car is park and is completely died then as if you pushed a automatic HOOD RELEASE the hood of the car would pop up and then driver would stand in front of the engine and the animation thats is in the game for that, would make the driver stick his head under the hood and then the PLAYER would type "FIX MY CAR" and the cars engine would start up and it all look like the Driver has just fixed his car and once the car starts up the hood automatically closes, driver gets in car and burns rubber down the road once again. Now for Trucks and Motor Bikes the command line to fix them would be "FIX MY TRUCK" and "FIX MY MOTORBIKE" By using quotations that would activate the text box so one can type in those command lines.

 

What do you Think Gangsta Killa?

 

what does everyone else think as well?

 

Any way regardless GK you are doing an awesome job on this mod, Keep it up....

Link to comment
Share on other sites

CaptainDingo

Hrmmm... yeah, kind of working off the idea Viscera just said, would it be possible to get out of a car when its engine is busted and be able to hit a key and have Niko perform the NPC "working under the hood" animation to fix it at some sort of cost? I mean, I've fiddled in config files enough to know that Niko can be animated with other NPC's animations, for instance he can walk around like a hooker (which is funny).

 

Edit: By the way, for those interested, the most realistic settings for refilling would be something like a REFUELAMT of 50 and then setting the fuel prices to real-world prices, varying of course with all the gas stations if you like. The reason I say 50 is because the tank size max is 1,000, and 1,000 divided by 50 is 20, 20 gallons being more or less the capacity of your average vehicle. Which means 50 units is a "realistic" gallon, so each tick you get one gallon of gas and pay $3 or whatever.

Edited by CaptainDingo
Link to comment
Share on other sites

 

Hrmmm... yeah, kind of working off the idea Viscera just said, would it be possible to get out of a car when its engine is busted and be able to hit a key and have Niko perform the NPC "working under the hood" animation to fix it at some sort of cost? I mean, I've fiddled in config files enough to know that Niko can be animated with other NPC's animations, for instance he can walk around like a hooker (which is funny).

 

Edit: By the way, for those interested, the most realistic settings for refilling would be something like a REFUELAMT of 50 and then setting the fuel prices to real-world prices, varying of course with all the gas stations if you like. The reason I say 50 is because the tank size max is 1,000, and 1,000 divided by 50 is 20, 20 gallons being more or less the capacity of your average vehicle. Which means 50 units is a "realistic" gallon, so each tick you get one gallon of gas and pay $3 or whatever.

Just want to say the only reason why one would pay to fix their own car when they can do it them selves, is if its coded in that some times when the car breaks down that it just can't be fixed By Niko and then thats where you call a tow truck and the tow truck guy would fill any gas you may need and repair the engine. Other then that there is no reason if you can fix it your self lets say 90% of the time then why should you pay to fix your own car?

Link to comment
Share on other sites

Definately an idea. I'll look into that. It shouldn't be too hard to make niko appear to fix the car. As for the bonnet again shouldn't be too hard. The hard part will be the logic so the breakdowns don't occur too often. I suppose I could give the car a general health item. Then with too many crashes etc the car stops?

Link to comment
Share on other sites

CaptainDingo

Actually my thoughts on it are don't touch anything dealing with controlling the damage done to cars, since cars already automatically fail to start when enough damage has been done to the engines. It's already been done for you by Rockstar. All you should theoretically have to do is let Niko fix the damage done himself (perhaps for a slightly higher cost than it would be to go to a Pay and Spray).

 

If the script handled damaging and deciding when my car fails, I'd probably not use it anymore, period. Just something to keep in mind.

Edited by CaptainDingo
Link to comment
Share on other sites

Definately an idea. I'll look into that. It shouldn't be too hard to make niko appear to fix the car. As for the bonnet again shouldn't be too hard. The hard part will be the logic so the breakdowns don't occur too often. I suppose I could give the car a general health item. Then with too many crashes etc the car stops?

Well there is that yes, or just figure in a math percentage for a random break down kinda like how a Slot Machine pays off, other wise after so many pulls of the lever the machine pays off well kinda same concept perhaps certain areas of a street or street sign or after every so many blocks you drive by can act as a trigger that will cause the vehicle to break down and sense you have no clue what may trigger the break down that would make it totally random or at least seem random. But how ever you do it i know you'll do it with STYLE..... smile.gif

Link to comment
Share on other sites

I'll just use the car engine health, then when the health is at a certain point do whatever. I'll put that idea down for 2.3. 2.2 is the next step smile.gif and a big part of that is the vehicle DB and able to add userstations. I'll make it so that all you have to do is type a console command to add the station.

Link to comment
Share on other sites

I'll just use the car engine health, then when the health is at a certain point do whatever. I'll put that idea down for 2.3. 2.2 is the next step smile.gif and a big part of that is the vehicle DB and able to add userstations. I'll make it so that all you have to do is type a console command to add the station.

IIGHT sounds Cool

Link to comment
Share on other sites

Alright I figured I'd post what the development roadmap plan is.

 

V2.2

- users able to add their own stations

- car database, each car has their own tank size / fuel usage amount

- some helicopter / boat fuel stations

 

V2.3

- Random car breakdowns depending on engine health

- Siphon fuel from cars

- More helicopter / boat fuel stations

 

V2.4

- Peds vehicles can run out of fuel

- Fuel stations have individual pumps

 

Thats the basic development ideas, I'm going to be working to. I can't really say when each version will be released. But 2.2 is nearly there. All that needs doing on 2.2 is finish adding all the vehicles to the car database, add some helicopter / boat fueling stations.

Link to comment
Share on other sites

Quick update, I've now included the add your own station system. Its uses a console command with parameters.

 

 

addstation price radius name

 

Link to comment
Share on other sites

Spider-Vice

I like this mod but when it's to consume fuel, I go out of fuel very fast! I can't even go from Alderney to Algonquin...

image.pngut_dog.png   image.png

let your hopes and dreams turn into burning fire!

GTANet | Red Dead Network | kifflom 

black lives matter | stop Asian hate | trans lives = human lives

Link to comment
Share on other sites

I like this mod but when it's to consume fuel, I go out of fuel very fast! I can't even go from Alderney to Algonquin...

That's what the .ini file is for.

Link to comment
Share on other sites

Hi Gangsta, tried out your latest version and its great. Had a problem though with the fuel amount changing as i changed car. I have a car at my safehouse, with hardly any fuel in, just enough to make it to the pumps. Did a mission in another car, then came back to cruize around and fill up and i had almsot a full tank.

 

Is there anyway i can get it to remember the amount even if i leave the car? I swear there used to be some sort of save command in earlier versions.

 

Thanks

Link to comment
Share on other sites

There was some sort of save commands, I'll add it back in. Sadly other then having a save/load command there is no way of remembering the fuel. After you leave the car parked up a while and have gone away from it. The game resets it which changes the ID I use to access it. I'll see about tweaking it slightly so it remembers it based on the car model as well.

 

The new version should be out within a week, I'm fitting it in around my University work, I've just got to finish off the carDB. Then we should be good to go for a release.

Link to comment
Share on other sites

Excellent. Think i might have to stop playing the game again (i lost my save file, i was near the end of the game), as i want it with the save option. So i started again and decided to play the game through with the first person driver mod, and your mod. colgate.gif

Link to comment
Share on other sites

Like I said give me a couple of days. I've got about 35od more cars to add to the Vehicle DB. Re add in the fuel saving keypresses and that should be that. I'll have it done by Sunday.

 

Edit: Right thats all the vehicles in the vehicleDB, except for 4. Just need some keys and we're sorted then.

Edited by Gangsta Killa
Link to comment
Share on other sites

Hmm might be delayed till Sunday evening, whilst adding in the carDB, and changing a few things around I broke the script, the game exits. I can't work out what I've done wrong. So its time to run all the code through manaully, lol.

Link to comment
Share on other sites

Hmm might be delayed till Sunday evening, whilst adding in the carDB, and changing a few things around I broke the script, the game exits. I can't work out what I've done wrong. So its time to run all the code through manaully, lol.

Oh dang, hope you get it sorted.

Link to comment
Share on other sites

Love this mod, I have tweaked the ini file and got it how I like it. Looking forward to next rls and tweaking even more stuff !!

 

Great work icon14.gif

Link to comment
Share on other sites

I've worked out that its the loading of the carDB into the game thats causing the problem, but why I don't know.

 

Edit: fixed it smile.gif

 

Edit2: Release will probably be tonight.

 

Edit3: sad.gif Thought I'd fixed it, seems to be reoccuring.

 

Definately fixed it now. Release in a few hours.

 

I'm just finding more problems. I'm in the proces of switching the default stations from the code to a data file. Except now the blips aren't working correctly... always same icon and no name..

 

Gah, expect a release sometime on sunday.

 

Right todays plan is to rewrite the fuelStation class, and fuelStation code and see if I can detect where its going wrong.

 

Edit: Thats random, it seems the game is saving the blips on screen, sad.gif ah well.

Edited by Gangsta Killa
Link to comment
Share on other sites

I've worked out that its the loading of the carDB into the game thats causing the problem, but why I don't know.

 

Edit: fixed it smile.gif

 

Edit2: Release will probably be tonight.

 

Edit3: sad.gif Thought I'd fixed it, seems to be reoccuring.

 

Definately fixed it now. Release in a few hours.

 

I'm just finding more problems. I'm in the proces of switching the default stations from the code to a data file. Except now the blips aren't working correctly... always same icon and no name..

 

Gah, expect a release sometime on sunday.

 

Right todays plan is to rewrite the fuelStation class, and fuelStation code and see if I can detect where its going wrong.

 

Edit: Thats random, it seems the game is saving the blips on screen, sad.gif ah well.

Looking forward to the rls, Sounds like alot of hard work going over the same problem... Keep up the good work icon14.gif

Link to comment
Share on other sites

2.2 has been released, check the gtagarage page for the download. -> http://www.gtagarage.com/mods/show.php?id=5538

The md5 hash of the zip file is F41AFE2627C47EFC02A04F6FD8277F27.

 

There hasn't been many changes since 2.1, just a few engine changes and the ability to add stations.

 

- Each car has its own fuel tank size and fuel drain ratio. The carDB file has been split up into various sections based on car type.

 

- Default stations are no longer set within the mod, they are contained in three seperate files. carFuelStations.pet, boatFuelStations.pet and heliFuelStations.pet. You can add to either of these by using the addStationHeli, addStationBoat, addStation console commands. See the Controls section for more info. (Note: at the moment you cannot add to the carFuelStation.pet file)

 

- As well as being able to change the default stations, you can also add your own stations to the userFuelStations.pet file, using the addStation command.

 

- By user request, I've added back in the Save/Load fuel system, this only stores ONE value of fuel, but can be restored at any time.

 

- There are a handful of Boat and Helicopter fuel stations within the game. These are designated by the Heli / Boat blip name.

 

- There should be three types of blip displayed now, A red fuel pump, white fuel pump and a white fuel pump with a U in it. These represent stealing locations, default stations and user stations. (Note: whilst testing I was having problems with these not displaying correctly, but this might only be related to my game.)

 

Any bugs, post in this topic.

Edited by Gangsta Killa
Link to comment
Share on other sites

Downloaded !! Will test right after I have finished making flapjacks biggrin.gif

 

EDIT: Real nice, I like the different tank sizes... Im probs gonna edit those and have a maximum tank size of 600 and smaller for the bikes and see how that works out... But its all working true to form, not tested the adding of Heli or Boat stations but I would say those already set up are enough.

 

Great work love it !! icon14.gif

Edited by OLDCell
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

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