Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

[REL|SCR] Longer Days Mod v1


LCbuffalo
 Share

Recommended Posts

LONGER DAYS MOD V1.1 by LCbuffalo

2010-06-27

 

This mod is designed to make the days in GTA IV last longer. By default, each in-game minute lasts 2 real-time seconds. This mod makes the in-game minute last 4 seconds, which means an entire GTA IV day will last 01:36 real-time hours (instead of the default 48 minutes). The user can customize this length to his/her desire with a simple edit.

 

New in V1.1:

 

- Weather now changes dynamically

- Time desynchronization bug fixed through the use of sjaak327's "Real Time Duration" function in his Simple Native Trainer

 

 

DOWNLOAD

 

http://www.gtagarage.com/mods/show.php?id=11508

 

 

REQUIREMENTS

 

- GTA IV or EFLC (should work with any version that allows scripts)

 

- HazardX's .NET Scripthook:

http://www.gtaforums.com/index.php?showtopic=392325

 

- sjaak327's Simple Native Trainer:

http://www.gtagarage.com/mods/show.php?id=5646

 

 

DEPENDENCY

 

Please note that this mod requires the "Real Time Duration" option within sjaak327's Simple Native Trainer to function properly.

 

 

INSTALL

 

- Place the "LongerDaysMod.vb" file into the "scripts" folder in your GTA IV main directory. If you do not have a scripts folder in the GTA IV main directory you probably don't have HazardX's .Net ScriptHook. Please download it (see above).

 

- Launch the game. Once it has loaded, start up Simple Native Trainer (F3), select the "Time" entry, then select the "Real Time Duration" entry and enable it. You can also open the .ini file for the Simple Native Trainer and change the RealTime=0 line to RealTime=1. This way, the function will automatically be enabled every time you launch the game.

 

 

CUSTOMIZATION

 

1. To customize the length of the in-game minute, change the "LongerDaysMod.vb" filename to "LongerDaysMod.txt"

 

2. Next, open this file with your favorite text editor (notepad is sufficient).

 

3. Find the following line of code (It's towards the top): Me.Interval = 4000

- This number defines the amount of time (in milliseconds) it takes for the in-game minute to advance to the next minute.

- Change it to whatever value you'd like. For example, if you want the in-game minute to last nine seconds, replace the 4000 with 9000.

- Here's a short conversion chart that will show you how long an in-game day will be in realtime hours for various settings:

 

 

     LENGTH OF IN-GAME MINUTE           HOW LONG AN IN-GAME DAY LASTS (real time)     0.5 seconds                        12 minutes     1 second                           24 minutes     2 seconds (default) -  -  -  -  -  48 minutes     3 seconds                          72 minutes (01:12 hrs)     4 seconds                          96 minutes (01:36 hrs)     5 seconds                         120 minutes (02:00 hrs)    10 seconds                         240 minutes (04:00 hrs)

 

 

4. After you've changed the Me.Interval value, save the file and change the file extension back to ".vb"

 

5. Start up GTA, enjoy the mod, and lament the fact that you can't extend the length of a day this easily in real life!

 

 

 

KNOWN BUGS

 

- Time does not advance during save or pay'n'spray use.

- Radio stations abruptly reset at midnight every night.

- Shadows abruptly advance every few minutes (usually it's not a jarring change)

 

 

Comments/Feedback welcome and encouraged. If you know how to solve the listed bugs, feel free to let me know!

Edited by LCbuffalo
Link to comment
Share on other sites

 

- Time doesn't advance when saving or using pay-n-spray

- Radio stations abruptly reset at midnight every night.

- In-game analog clocks jerk back and forth because the hands on the clocks continue to move at the default rate (this bug isn't too obvious).

At this point I'm thinking, "Well that's not too bad," but then:

 

 

- Weather doesn't change dynamically.

 

cry.gif Awww that's a big one!

 

That's going to keep me from using this for now, but I'm looking forward to seeing more progress. Good job! icon14.gif

Link to comment
Share on other sites

 

At this point I'm thinking, "Well that's not too bad," but then:

 

 

- Weather doesn't change dynamically.

 

cry.gif Awww that's a big one!

 

That's going to keep me from using this for now, but I'm looking forward to seeing more progress. Good job! icon14.gif

 

 

I know... the reason the weather stays static is because I'm specifically telling the code to do so. I'm using the "LockDayTime" function to slow down the time rate, which, for some stupid reason, randomly changes the weather each time it's applied - in other words, if I didn't force the weather to be static, it would change every four seconds.

 

I'm thinking I might add a function that randomly changes the weather every six hours or so if I can figure out how to make the game initiate a smooth transition from one weather state to another.

 

If there's a solution out there, let me know!

Edited by LCbuffalo
Link to comment
Share on other sites

 

...the reason the weather stays static is because I'm specifically telling the code to do so. I'm using the "LockDayTime" function to slow down the time rate, which, for some stupid reason, randomly changes the weather each time it's applied - in other words, if I didn't force the weather to be static, it would change every four seconds.

Is the native SET_SYNC_WEATHER_AND_GAME_TIME any help here? All I know about it is that it takes a single parameter, presumably a boolean, but it sounds like it could be relevant.

Link to comment
Share on other sites

 

...the reason the weather stays static is because I'm specifically telling the code to do so. I'm using the "LockDayTime" function to slow down the time rate, which, for some stupid reason, randomly changes the weather each time it's applied - in other words, if I didn't force the weather to be static, it would change every four seconds.

Is the native SET_SYNC_WEATHER_AND_GAME_TIME any help here? All I know about it is that it takes a single parameter, presumably a boolean, but it sounds like it could be relevant.

I haven't been able to figure out how SET_SYNC_WEATHER_AND_GAME_TIME works/precisely what it influences. I've also played around with FORCE_WEATHER, FORCE_WEATHER_NOW, GET_CURRENT_WEATHER, GET_CURRENT_WEATHER_FULL, PICK_RANDOM_WEATHER and RELEASE_WEATHER. When I do manage to get one of them to work it always changes the weather instantaneously instead of gradually.

 

Anyone out there who knows how the game itself controls the weather progress? Is it even possible to initiate a gradual weather transition with a mod?

Link to comment
Share on other sites

In the .net scripthook, there's a method in the Game class called:

 

public static float TimeScale { set; }

 

I would test that out and see if it works for what you're trying to do! =)

Link to comment
Share on other sites

In the .net scripthook, there's a method in the Game class called:

 

public static float TimeScale { set; }

 

I would test that out and see if it works for what you're trying to do! =)

Thanks for the input, Gokaic. Unfortunately, what GTA refers to as "Timescale" is what controls the matrix-style "bullet time," so it's not what I'm looking for.

Link to comment
Share on other sites

ah ok. sorry I couldn't be of any more help! But good luck figuring this out, as it looks great!

Link to comment
Share on other sites

  • 4 weeks later...

New version 1.1 is being uploaded to GTA Garage and should be available soon. Updates:

 

 

- Dynamic weather changes

- Mod dependent on sjaak327's Simple Native Trainer to fix the time desynchronization bug

Link to comment
Share on other sites

  • 2 years later...

Nice MOD but by using this my game has been stuck in Tuesday for several days. Anybody with any help?

Link to comment
Share on other sites

  • 2 weeks later...

Really cool mod. The one drawback of attaching it to the native trainer is that you can no longer use the native trainer to adjust time (advance/back one hour, etc.). This coupled with the fact that time no longer advances when saving in the safehouses.....well....I don't suppose anyone know of an in game work-around that would allow you to advance time rapidly?

Edited by ripple
Link to comment
Share on other sites

Phenom it seems that if this mod is using the trainer.ini we have the folowing lines..

 

RealTime=0 //RealTime duration at startup

StartupHour=12 //Startup Hour

StartupMinute=05 //Startup Minute

 

If we set it to 1 then everytime we load the game the time will be 12:05 and not the time we saved...

The only way to get our exact we saved in the game will be to load the game again confused.gif so the best way to use this mod is to adjust realtime to 1 every time we load the via trainer menu maybe thats why you're stuck...

 

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.