Jump to content

Recommended Posts

Amazing mod, I love the customization. Would it be possible to add to the brake lights feature to keep them on when you exit your car leaving it running? This would simulate like it is being left in park. Though I suspect that might be difficult to do because if you jump out of a moving car for example, the brake lights should not come on in this case when the vehicle coasts to a stop. Thanks again for this mod!

Edited by mike406
  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072220352
Share on other sites

On 9/24/2023 at 12:31 PM, seju96 said:

Thank you for the update, I believe that setting the accuracy and firerate to 80 provides a modern GTA IV experience, great work!
However the tapping bug is still present, I made you a video so you can compare the original bulletspread with the one in LibertyTweaks.

I tried disabling ImprovedAI and GunMagazines but the accuracy was still bugged. When I deleted LibertyTweaks files the accuracy was back to normal, here's the video and an image if it expires.

 

Video: https://streamable.com/mgd676

Just a quick note is that I'm talking about tapping bulletspread (Short M1 clicks) and not the overall bulletpread (Holding M1) 

A9TSpi9.jpg

 

 

Here's the video again if you didn't seen it.

 

 

Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072220584
Share on other sites

catsmackaroo
10 hours ago, Deusrexmachina said:

Hey Cat, thanks for your tweaks! 👊:D

Say, is there a way to make the RPG's speed more realistic? 

 

 

You can always modify the weapons manually (WeaponInfo.xml)

or you can check out one of my main modding projects, Revamped Combat!

RPGs are tweaked there which make them a wee bit more realistic, but wowzers I should improve on it. Thanks bud.

You've also made me contemplate vanilla+ improvements to all weapons as an option for this project (less ammo, odd ammo drop counts, improved range, console annihilator, & other misc realism aspects) 

Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072223074
Share on other sites

AngryMeatPie

Hi, the RemoveWeapons on death option doesn't seem to be working properly: when set to 0, I still lose weapons when dying. 

Also, Revamped Combat has a script called RemoveWeaponsOnDeath.ivsdk.dll, what does it do? Does it force this option to on, bypassing the Liberty Tweaks?

Edit: looks like none of those options can be toggled off. At least Weapon Holstering and RemoveWeaponsonDeath are set to 0 but are still on. Any way to fix this?

Edited by AngryMeatPie
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072224565
Share on other sites

catsmackaroo
17 hours ago, AngryMeatPie said:

Hi, the RemoveWeapons on death option doesn't seem to be working properly: when set to 0, I still lose weapons when dying. 

Also, Revamped Combat has a script called RemoveWeaponsOnDeath.ivsdk.dll, what does it do? Does it force this option to on, bypassing the Liberty Tweaks?

Edit: looks like none of those options can be toggled off. At least Weapon Holstering and RemoveWeaponsonDeath are set to 0 but are still on. Any way to fix this?

Yeah, since the last release this has been occurring for some reason. I've made the code 1:1 with the previous releases so I have no clue what's causing this to happen. Feels like I say this too often 🤦

Anyway, yeah it would bypass it because it's a separate script. I was planning on removing both scripts from Revamped Combat since this mod exists, but coding on this game has become the biggest headache on the planet, so I may just discontinue this project once it's fixed

  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072225117
Share on other sites

AngryMeatPie
8 hours ago, catsmackaroo said:

Yeah, since the last release this has been occurring for some reason. I've made the code 1:1 with the previous releases so I have no clue what's causing this to happen. Feels like I say this too often 🤦

Anyway, yeah it would bypass it because it's a separate script. I was planning on removing both scripts from Revamped Combat since this mod exists, but coding on this game has become the biggest headache on the planet, so I may just discontinue this project once it's fixed

Also I didn't mention one more thing which has been happening since I installed the latest version. I'm experiencing crashes when trying to load into IV. They occur on one of the loading screens, the game starts stuttering and just crashes. The game loads DLC just fine, although I had one crash on TBOGT. When trying to load into IV from DLCs the save loads fine, but there were like two instances when a crash occurred during loading.

I'm not sure what's causing it, but it's definitely something with the latest version, because on 1.4 installed through  Fusion Overloader I had no crashes at all. When I installed the new version, I just drag&dropped all the files (except animations, which are in their imgs, I added Beaten& Bruised anims to them) and replaced the 1.4 files (and new ones were added like Bullet Penetration files). I believe they're identical, so there really should be no difference, apart from the changes brought by new files (those from Bullet penetration and improved peds combat).

My guess is that it's either Bullet Penetration files or actions_table.csv (improved ped combat). I tried leaving the 1.4 files and gradually adding new files to them (BP files and actions_table since they're the only changes in data files in this update), sometimes the game loaded without a crash, sometimes there was a crash. 

My remaining guess is that it's something script-related on either Liberty Tweaks or Revamped Combat. Deleting the second mod lets the game load fine, so might be some scripts conflict, idk myself... Technically, I could just load into DLCs and then load into IV since it seems more stable than loading into IV... 

8 hours ago, catsmackaroo said:

Anyway, yeah it would bypass it because it's a separate script. I was planning on removing both scripts from Revamped Combat since this mod exists, but coding on this game has become the biggest headache on the planet, so I may just discontinue this project once it's fixed

To be honest, I understand you pretty well, since installing mods for me is most of the time like solving a maze, so I can't even imagine what making a mod is like. Regardless, do what you think's proper for these mods' development, because I'm glad that they exist at all. It's quite a refreshing experience to play with both, so personally I'd welcome any changes and fixes. If you choose to discontinue Liberty Tweaks, imho, it's already a great project as it is, it just needs some fixes and that's it, idk what else to add.

Revamped Combat also seems a pretty big mod now, but I think there's still a lot to add... But still it's all up to you as the creator 🙏

Good luck to you and looking forward to the news on your mods☕

  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072225488
Share on other sites

catsmackaroo
On 10/4/2023 at 1:46 PM, AngryMeatPie said:

but I think there's still a lot to add... But still it's all up to you as the creator 🙏

What ideas would you like to add? I'm very open to furthering Revamped Combat as it's the project I'm most passionate on

Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226376
Share on other sites

AngryMeatPie
8 hours ago, catsmackaroo said:

What ideas would you like to add? I'm very open to furthering Revamped Combat as it's the project I'm most passionate on

Now I can only think of some blood texture improvements. Since mods like Bullet Penetration and Beaten& Bruised were incorporated, some new blood textures (like those from Exaggerated Blood) would be great, although it's just an on-the-spot idea😄 

What I meant was that the mod feels like a rather complete project, but at the same time any additions are welcome 🙏

  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226577
Share on other sites

On 10/4/2023 at 4:47 AM, catsmackaroo said:

Yeah, since the last release this has been occurring for some reason. I've made the code 1:1 with the previous releases so I have no clue what's causing this to happen. Feels like I say this too often 🤦

Anyway, yeah it would bypass it because it's a separate script. I was planning on removing both scripts from Revamped Combat since this mod exists, but coding on this game has become the biggest headache on the planet, so I may just discontinue this project once it's fixed

 

I think I see two problems.

 

1. In your code you reference section names like "Main" but in the .ini file they're in all caps like "MAIN". You should consider making these strings constants rather than hardcoding them.

 

2. You also have one setting in the wrong place. Wheel Fix is under the Fixes section in the .ini but you reference it as Main in the code.

 

[FIXES]
Overtaking Fix=1			// Cars behind the player will no longer overtake you
Ice Cream Speech Fix=1			// Proper voice lines when stealing an ice cream truck are returned from console
Wheel Fix=0				// Wheels will be visibly turned after exiting a vehicle (if the player turned it while exiting)

 

WheelFix.cs

...
        public static void Init(SettingsFile settings)
        {
            enableFix = settings.GetBoolean("Main", "Wheel Fix", true);
        }
...

 

 

Edit:

 

There's a third issue, the .ini file can't have comments on the same line as the setting or any trailing whitespace after the value. I think IVSDK .NET's GetBoolean() function is including that as part of the value. This is my current working config, please try it and let me know. It is working for me and I can toggle settings on and off without issues.

 

; 0 to disable | 1 to enable

[Main]
; For taking out & putting away your weapons with ease. H is the key by default. Configure below within the "Hotkeys" section
Weapon Holstering=1

; Increases the pedestrian accuracy & firerates by default. Configure below within the "Settings" section
Improved AI=1

; Weapon magazines, shells, & rockets are visible when reloading. If this doesn't work, ensure you have IV Tweaker installed. Disable for specific weapons below in the "Settings" section
Gun Magazines=1

; Movement with sniper when scoping
Move With Sniper=1

; Removes weapons on death
Remove Weapons On Death=1

; Increases FOV by default. Configure below in the "Settings" section
Tweakable Field of View=1

; Quick-save your game. This will not spawn you in the same spot when loading. F9 by default. Configure in the "Hotkeys" section
Quick Saving=1

; When your vehicle is near or at a stop, brake lights flick on
Brake Lights=1

; The player will say more voice lines in combat
More Combat Lines=1

; The player will sometimes say some rather cheeky lines when picking up items near corpses
Search Body Lines=1

; The player will consistently scream when falling from heights
V-Like Screaming=1

; Wheels will be visibly turned after exiting a vehicle (if the player turned it while exiting)
Wheel Fix=1

[Fixes]
; Cars behind the player will no longer overtake you
Overtaking Fix=1

; Proper voice lines when stealing an ice cream truck are returned from console
Ice Cream Speech Fix=1

[Hotkeys]
Quick Save Key=F9
Holster Key=H

[Settings]
Field of View Modifier=1.07
Ped Accuracy=90
Ped Firerate=80
DisabledWeaponTypes=

; Use these for "DisabledWeaponTypes"
; Example to disable for AK47 & M4: DisabledWeaponTypes=14|15
; 7 = 	WEAPON_PISTOL
; 9 = 	WEAPON_DEAGLE
; 10 = 	WEAPON_SHOTGUN
; 11 = 	WEAPON_BARETTA
; 12 = 	WEAPON_MICRO_UZI
; 13 = 	WEAPON_MP5
; 14 = 	WEAPON_AK47
; 15 = 	WEAPON_M4
; 16 = 	WEAPON_SNIPERRIFLE
; 17 = 	WEAPON_M40A1
; 18 = 	WEAPON_RLAUNCHER

 

Edited by mike406
  • Like 2
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226583
Share on other sites

catsmackaroo
8 hours ago, mike406 said:

 

I think I see two problems.

 

1. In your code you reference section names like "Main" but in the .ini file they're in all caps like "MAIN". You should consider making these strings constants rather than hardcoding them.

 

2. You also have one setting in the wrong place. Wheel Fix is under the Fixes section in the .ini but you reference it as Main in the code.

 

[FIXES]
Overtaking Fix=1			// Cars behind the player will no longer overtake you
Ice Cream Speech Fix=1			// Proper voice lines when stealing an ice cream truck are returned from console
Wheel Fix=0				// Wheels will be visibly turned after exiting a vehicle (if the player turned it while exiting)

 

WheelFix.cs

...
        public static void Init(SettingsFile settings)
        {
            enableFix = settings.GetBoolean("Main", "Wheel Fix", true);
        }
...

 

 

Edit:

 

There's a third issue, the .ini file can't have comments on the same line as the setting or any trailing whitespace after the value. I think IVSDK .NET's GetBoolean() function is including that as part of the value. This is my current working config, please try it and let me know. It is working for me and I can toggle settings on and off without issues.

 

; 0 to disable | 1 to enable

[Main]
; For taking out & putting away your weapons with ease. H is the key by default. Configure below within the "Hotkeys" section
Weapon Holstering=1

; Increases the pedestrian accuracy & firerates by default. Configure below within the "Settings" section
Improved AI=1

; Weapon magazines, shells, & rockets are visible when reloading. If this doesn't work, ensure you have IV Tweaker installed. Disable for specific weapons below in the "Settings" section
Gun Magazines=1

; Movement with sniper when scoping
Move With Sniper=1

; Removes weapons on death
Remove Weapons On Death=1

; Increases FOV by default. Configure below in the "Settings" section
Tweakable Field of View=1

; Quick-save your game. This will not spawn you in the same spot when loading. F9 by default. Configure in the "Hotkeys" section
Quick Saving=1

; When your vehicle is near or at a stop, brake lights flick on
Brake Lights=1

; The player will say more voice lines in combat
More Combat Lines=1

; The player will sometimes say some rather cheeky lines when picking up items near corpses
Search Body Lines=1

; The player will consistently scream when falling from heights
V-Like Screaming=1

; Wheels will be visibly turned after exiting a vehicle (if the player turned it while exiting)
Wheel Fix=1

[Fixes]
; Cars behind the player will no longer overtake you
Overtaking Fix=1

; Proper voice lines when stealing an ice cream truck are returned from console
Ice Cream Speech Fix=1

[HOTKEYS]
Quick Save Key=F9
Holster Key=H

[SETTINGS]
Field of View Modifier=1.07
Ped Accuracy=90
Ped Firerate=80
DisabledWeaponTypes=

; Use these for "DisabledWeaponTypes"
; Example to disable for AK47 & M4: DisabledWeaponTypes=14|15
; 7 = 	WEAPON_PISTOL
; 9 = 	WEAPON_DEAGLE
; 10 = 	WEAPON_SHOTGUN
; 11 = 	WEAPON_BARETTA
; 12 = 	WEAPON_MICRO_UZI
; 13 = 	WEAPON_MP5
; 14 = 	WEAPON_AK47
; 15 = 	WEAPON_M4
; 16 = 	WEAPON_SNIPERRIFLE
; 17 = 	WEAPON_M40A1
; 18 = 	WEAPON_RLAUNCHER

 

Thanks a lot. A lot of this I've tried to address in the past, but it just... never worked. Results were inconsistent and uh... well you ever feel like a fool while programming? 

Anyway, check out the newest update again (download) let me know if you run into issues. @AngryMeatPie you should use this instead. Everything works for me at the moment

 

Finally, what do you mean exactly with making the strings constants rather than hardcoding them though? Very curious 

 

Edited by catsmackaroo
  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226833
Share on other sites

2 hours ago, catsmackaroo said:

Thanks a lot. A lot of this I've tried to address in the past, but it just... never worked. Results were inconsistent and uh... well you ever feel like a fool while programming? 

Anyway, check out the newest update again (download) let me know if you run into issues. @AngryMeatPie you should use this instead. Everything works for me at the moment

 

Finally, what do you mean exactly with making the strings constants rather than hardcoding them though? Very curious 

 

 

Looks good :)

 

Oh and what I meant was you could create some global constants with something like a public static class and use the globals rather than directly hardcoding values. The benefit is that if you ever have to change labels, defaults, etc is you only would have to change them in one place.

 

Basic example:

 

namespace LibertyTweaks.Globals {
  public static class Globals
  {
    // INI sections
    public const string MAIN_SECTION = "Main";
    public const string FIXES_SECTION = "Fixes";
    public const string HOTKEYS_SECTION = "Hotkeys";
    public const string SETTINGS_SECTION = "Settings";

    // Values
    public const string WEAPON_HOLSTERING_LABEL = "Weapon Holstering";
    public const bool WEAPON_HOLSTERING_DEFAULT = true;

    public const string IMPROVED_AI_LABEL = "Improved AI";
    public const bool IMPROVED_AI_DEFAULT = true;
    // etc...
  }
}

 

Then you can use it like this:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using CCL.GTAIV;

using IVSDKDotNet;
using static IVSDKDotNet.Native.Natives;

using LibertyTweaks.Globals;

// Credits: catsmackaroo

namespace LibertyTweaks.HigherPedAccuracy
{
    internal class HigherPedAccuracy
    {
        private static bool enableFix;

        public static void Init(SettingsFile settings)
        {
            enableFix = settings.GetBoolean(Globals.MAIN_SECTION, Globals.IMPROVED_AI_LABEL, Globals.IMPROVED_AI_DEFAULT);
...

 

Edited by mike406
  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226914
Share on other sites

AngryMeatPie

Thank you so much guys, I'll try out the updated version a bit later 💥

Edit: thanks! Works for me now. Now the only thing to do is to deal with the crashes I reported earlier. I've just posted that as well on Revamped Combat since it seems to be its problem, could you please check it out when you have time?

Edited by AngryMeatPie
  • Like 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072226954
Share on other sites

catsmackaroo
33 minutes ago, LeakyLine said:

Holy sh*t, time for another IV playthrough. OP, any other mods you suggest for the enhanced experience?

I will shamelessly recommend my other project, Revamped Combat

However, I also recommend Potential Grim, Various Fixes, Liberty Rush, and... well there's too much to mention. I'll link some workshops instead:

Internet Rob | ItsClonkAndre | donnits | Attramet | Ash_735 | mine

  • Keep in mind you will need to follow the compatibility guides provided by both Liberty Rush & Revamped Combat if you wish to use them in conjunction (Potential Grim is a mod that also requires compatibility configuration)
Edited by catsmackaroo
  • Like 2
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072227242
Share on other sites

9 hours ago, catsmackaroo said:

I will shamelessly recommend my other project, Revamped Combat

However, I also recommend Potential Grim, Various Fixes, Liberty Rush, and... well there's too much to mention. I'll link some workshops instead:

Internet Rob | ItsClonkAndre | donnits | Attramet | Ash_735 | mine

  • Keep in mind you will need to follow the compatibility guides provided by both Liberty Rush & Revamped Combat if you wish to use them in conjunction (Potential Grim is a mod that also requires compatibility configuration)

Well I guess I know what I'm doing on Sunday, then.

  • Like 2
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072227502
Share on other sites

AngryMeatPie
3 hours ago, LeakyLine said:

Well I guess I know what I'm doing on Sunday, then.

You could also try out some character customisation mods like Customizable Niko or Customizable Johnny and Luis. Greatly enhances the experience, I must say, I'm currently using the first one, and it's always enjoyable to play with, because the vanilla customization is pretty limited. 

Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072227559
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
Hey cat, I just saw that you have this beta release (1.3) of Liberty Tweaks up on Github, and as it seems Liberty Tweaks is a quality of life + realism mod now, i thought it might would be cool if you'd add more optional features with customization options from the commonly known shdn mods for IV. Do you think you could do this?
specifically talking about

Arrest Warrant ;

Pick Ups 2.0 ;

Real Reload ;

you could also implement them as Revamped Combat features ig

Also why did you remove me from your discord friendlist
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072261366
Share on other sites

On 11/12/2023 at 2:24 PM, TastyNut said:
Do you think you could do this?

Arrest Warrant most likely will not be a thing as I prefer everything to be very vanilla-esque. However, I may add specific features from it.

For example, I really like losing stars after being unseen for a while. I do plan to try & improve the police system, and that's a great pick.

Pick Ups 2.0 & Real Reload are both YES!! I've tried to recreate Real Reload numerous times, however I'm not really skilled enough yet to do it properly. It's definitely on the to-do list. 

While working on Revamped Combat I've noticed so many things I would love to fix/improve but can't with just the base files... but with scripting?! 💥Limits are near infinite?! wait that's a lie

 

Quote

Also why did you remove me from your discord friendlist

I did not know I did 🤔I think I removed everyone who wasn't in my recent DMs list ages ago. Basically, I removed everyone I wasn't active to talking to at the time. My bad bro. You should add me back 🍰 

  • Like 1
  • excuseme 1
Link to comment
https://gtaforums.com/topic/991160-liberty-tweaks/page/2/#findComment-1072262531
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
  • 4 Users Currently Viewing
    2 members, 0 Anonymous, 2 Guests

    • Claudeweed
    • The_Cognoscenti
×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.