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. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    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

the_gas

Petrol Mod

Recommended Posts

the_gas

Ok got it working. Seems great. Major problem though, my saved games refuse to show up since using Xlive. After a check of the read me, it seems that the saved game location is different. Upon copying my savedgames folder into the new location, they still do not show up. I am too far in the game to start over again, is there anyway around this?

Share this post


Link to post
Share on other sites
Andrew

They should work fine, take the save files out of the profile folder. So you just have the SGTAXXX files in the savegames folder.

Share this post


Link to post
Share on other sites
sammclean23

What about driving off without paying gives you 2 star or something biggrin.gif

 

Sam

Share this post


Link to post
Share on other sites
Andrew

I might include another funciton into mine, where you can draw fuel but then have to pay for it at the end, if you don't and then leave the station you get a 2 star wanted level. I also need to change the stealing function from the random tankers and what not, so that it takes into account if there are any police around. At the moment you get an instant 2 star wanted level, even though the location to steal from might be very remote!

Share this post


Link to post
Share on other sites
the_gas

Ok got it working by removing xlive. Now my save games work.

 

Its good i like it. Although the petrol seems to expensive, so it might need to be reduced. It will be too expensive early on in the game. Also, i think you should set the random fuel level above 60, because i have had a couple of missions where the fuel is at like 15, and i have no chance of making it to a station.

Share this post


Link to post
Share on other sites
Leopard_

Ugh... waked up now... another day, another scripting day...

 

 

Helipad Coordinates

 

Helipad 1: Already on the mod

Helipad 2: Already on the mod

Helipad 3: 66.44, 1255.80, 29.89

Helipad 4: -174.45, -736.92, 185.34

Helipad 5: -270.17, 215.22, 222.35

Helipad 6: 261.56, -356.19, 161.76

Helipad 7: 92.32, 170.86, 65.01

Helipad 8: -707.97, 358.34, 3.84

 

Couldnt find any on the last island.

 

the ones above are from the second island other than 1+2

Thank you! I will add this into my mod.

 

 

What about driving off without paying gives you 2 star or something biggrin.gif

 

Sam

Good idea. Might include that for cars only and maybe boats. You can't really drive off with a heli tounge.gif

 

Oh and my secret thing is almost ready! Stay tuned!

 

Share this post


Link to post
Share on other sites
Andrew

 

Ok got it working by removing xlive. Now my save games work.

 

Its good i like it. Although the petrol seems to expensive, so it might need to be reduced. It will be too expensive early on in the game. Also, i think you should set the random fuel level above 60, because i have had a couple of missions where the fuel is at like 15, and i have no chance of making it to a station.

Good point, you can specify the prices of the fuel in the ini file. Yeah I have noticed that, I'll change it so its only above 60.

 

 

EDIT:

 

Just updating the script to run with the lastest verison of .net scripthook. It should work anyway, but the lasest version allows me to take advantage of an inbuilt ini settings function, and able to get the phone number dailed. "TOW-555-0100" anyone tounge.gif

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
Leopard_

Ok, i've done a Blip priority streamer. It prevents the minimap to be clattered up with fuel icons.

 

Leopard

 

EDIT: @GK: Wait, so you can actually call TOW-555-0100 ?

Edited by Leopard_

Share this post


Link to post
Share on other sites
Andrew

Not tested it yet, but according to the release of the .net scripthook. I can access the varibles.

Share this post


Link to post
Share on other sites
Leopard_

Nice! I hope aru makes something like it soon, i like the c++ best.

I'm uploading a video now, it shows the "secret" thing tounge.gif

 

Leopard

Share this post


Link to post
Share on other sites
Andrew

Awesome. I'm having trouble with the blips, I'm using the methods built into .net scripthook. But I can only add and change one part of the blip. I might need to use native calls.

Share this post


Link to post
Share on other sites
Leopard_

OK, video uploaded:

 

 

 

Leopard

Share this post


Link to post
Share on other sites
Andrew

Very nice Leo. I like the layout of yours, much better laid out then mine, lol. How did you do the video btw?

Share this post


Link to post
Share on other sites
Leopard_

 

Very nice Leo. I like the layout of yours, much better laid out then mine, lol. How did you do the video btw?

I used Sony Vegas 8. Recorded with FRAPS. How about showing yours? smile.gif

 

Leopard

Share this post


Link to post
Share on other sites
HazardX
Awesome. I'm having trouble with the blips, I'm using the methods built into .net scripthook. But I can only add and change one part of the blip. I might need to use native calls.

What kind of problems do you have exactly?

Share this post


Link to post
Share on other sites
Andrew

I can only seem to add a blip, and change its icon. I'm not quite sure how I can define a blip then add this and then change / stop displaying it.

 

Code im using.

 

Blip.AddBlip(new Vector3(-1357.61f, 35.87088f, 6.735094f)).Icon = BlipIcon.Building_TrainStationJ; 

 

 

That allows me to add one for that position then change the icon.

 

Heh, I'll do a video and get it uploaded soon.

Share this post


Link to post
Share on other sites
HazardX

 

I can only seem to add a blip, and change its icon. I'm not quite sure how I can define a blip then add this and then change / stop displaying it.

 

Code im using.

 

Blip.AddBlip(new Vector3(-1357.61f, 35.87088f, 6.735094f)).Icon = BlipIcon.Building_TrainStationJ; 

 

 

That allows me to add one for that position then change the icon.

 

Heh, I'll do a video and get it uploaded soon.

Do this:

 

Blip b = Blip.AddBlip(new Vector3(-1357.61f, 35.87088f, 6.735094f))b.Icon = BlipIcon.Building_TrainStationJ;

 

 

You can still use the object "b" afterwards for more operations.

Share this post


Link to post
Share on other sites
Andrew

ah, I'll give that a shot thanks hazard. Oh another question, when using the Settings function from the lastest release, how can I check for two key presses? ie CTRL + H? I'm using the default key down method that uses the keys as a system.windows.form keys enum.

Share this post


Link to post
Share on other sites
Rob.Zombie

Is it possible to make the petrol mod like, you must turn off your engine before fueling your car up? It's unrealistic to fuel with a turned on engine...

Share this post


Link to post
Share on other sites
Andrew

I tried to do that, but due to Niko automatically trying to restart the car it caused niko to not start the car until you got out and in it again. I'll try looking at doing it some other way. Might even change it so you have to be outside the car.

Share this post


Link to post
Share on other sites
HazardX
ah, I'll give that a shot thanks hazard. Oh another question, when using the Settings function from the lastest release, how can I check for two key presses? ie CTRL + H? I'm using the default key down method that uses the keys as a system.windows.form keys enum.

In INI files you can combine any key with the midifiers "Shift", "Control" and "Alt" by using comma seperation.

 

 

AnyKey = Control,HAnOtherKey = Shift,Control,T

 

 

If you use it with BindKey everything should be fine. Using it in the KeyDown event is more complicated because the Key provided by the event does not contain the Shift, Control and Alt modifiers and thus a direct comparision of both values will not work. I have to think of a better way to handle it in future version. confused.gif right now you have to populate the key with the modifiers yourself to compare to another key with modifiers:

 

 

protected overrides void KeyDown(System.Windows.Forms.Keys key) {     System.Windows.Forms.Keys KeyPlusMod = key;     if (isKeyPressed(Keys.ShiftKey)) KeyPlusMod = KeyPlusMod | Keys.Shift;     if (isKeyPressed(Keys.ControlKey)) KeyPlusMod = KeyPlusMod | Keys.Control;     if (isKeyPressed(Keys.Menu)) KeyPlusMod = KeyPlusMod | Keys.Alt;     if (AnyKey == KeyPlusMod) DoYourStuffHere();}

 

Share this post


Link to post
Share on other sites
Andrew

Thanks for that hazard, I'll look into that. The blip thing works perfect now. Thanks.

 

Edit: now to look into the catch phone number method. Don't quite get how the PhoneNumberDailed method is supposed to work since it returns void.

Edited by Gangsta Killa

Share this post


Link to post
Share on other sites
Leopard_

Hmm, where should i post a topic about my fuel mod?

 

Leopard

Share this post


Link to post
Share on other sites
sammclean23

another idea, ive seen around liberty city peds filling up there cars.

 

maybe you could use the animation that is used for them?

 

just a thought

 

Sam

Share this post


Link to post
Share on other sites
HazardX
quite get how the PhoneNumberDailed method is supposed to work since it returns void.

you have to override the PhoneNumberDailed method. Or take a look at the included InfoAndBindExample to see how to bind a phone number to a method of yours.

Share this post


Link to post
Share on other sites
Pandur

some suggestions for boat refuel stations...

 

user posted image

 

Coords:

 

1 [iNFO] 1235.27, 1330.83, -0.55

2 [iNFO] 795.80, 1262.34, -0.43

3 [iNFO] 743.43, 2141.45, -0.21

 

Other regions will follow.

Share this post


Link to post
Share on other sites
the_gas
another idea, ive seen around liberty city peds filling up there cars.

 

maybe you could use the animation that is used for them?

 

just a thought

 

Sam

That is a great idea, would that be possible?

Share this post


Link to post
Share on other sites
Rob.Zombie

Wow do they really fill their car up? I've only seen people going to the gas station (like every car is trying to refuel bored.gif ), stop their car there (usually causes traffic jams), then go away. Anyway it'd kick ass if Niko had to get out of the car, but it'd be difficult to change the car's properities when you're not in the car smile.gif So good luck everybody sigh.gif

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.


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