@Niziul Please don't lose anymore time with this. I'm going to stick with 3.1 for now. Thanks so much for your help.
Posts made by JohnFromGWN
-
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
-
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
@Niziul I don't know what to say. My script in 3.4 works perfectly for Player, inconsistently for ped. What I mean by inconsistently, it's almost as if it had to be initiated.
For example I'll press RPG and nothing happens, I keep hitting it nothing, I keep cycling through the weapons and then suddenly it works, as if it was waiting for something requested and then loading.
-
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
@Niziul Yes, exactly.
public static Ped PP = Game.Player.Character;
-
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
@Niziul Just to clarify, the code works as expected with SHVDN3.1 but in SHVDN3.4 there are lags and inconsistencies. I was happy with the script because the code is minimal.
I forgot to mention the most puzzling part. I have a second, almost identical function for the Player - but for some reason that one doesn't have any issue in SHVDN3.4 - it works with both. Only the Ped code breaks. WTF?
And the editor will not show errors. It will compile and the script will run in both 3.1 and 3.4. However 3.4 does not run consistently and the documentation clearly says they made changes to the weapons - but nothing i understand.
This is the Player, identical code, PP= Player ped. Why should this one work and not the one for the ped for V3.4?
public void ChangeWeapons(object sender, EventArgs e) { String MyChoice = WeaponsSubmenu.SelectedItem; { WeaponHash wepHash = (WeaponHash)Enum.Parse(typeof(WeaponHash), MyChoice); PP.Weapons.Give(wepHash, 5000, true, true); } }
The video below is with 3.1 and shows the script runs without lag, without inconsistencies, without any issues.
-
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
@Niziul I was just copying your code and it disappeared. lol. how come?
-
RE: Unable to use the mods file
There are 2 update.rpf files.
The one in your mods folder is at
\Grand Theft Auto V\Mods\update
or could be
\GTAV\Mods\update
or something similarThe one in your games folder is at the same path but remove the mods
\Grand Theft Auto V\update
or could be
\GTAV\update
or something similarAt this point I think your setup is really badly screwed up.
My advice would be to first do a verify integrity to ensure the game vanilla files are not corrupted or replaced.
Then I would strongly suggest you review your folder structure to ensure all the files are in the right place. I've seen Youtube videos where they put update.rpf in the wrong place.
You also need to ensure your game version is compatible with the gameconfig.xml mod (and have heap and pack) .
Finally I would strongly consider doing your entire mods from scratch - just keeping your dlclist.xml.This thread also can be useful to ensure you did everything right.
https://forums.gta5-mods.com/topic/35789/gta5-911-help-and-checklist-what-to-do-when-mods-make-you-mad -
RE: Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
@Niziul It comes from a LemonUI menu, as strings.
The weapon selection options are chosen from here (this is what is displayed in the menu):
private static readonly NativeListItem<String> WeaponsSubmenu2 = new NativeListItem<String>("Ped Weapons", "", "Unarmed", "Bat", "SMGMk2", "RPG", "Machete", "Nightstick", "Molotov", "Grenade", "GrenadeLauncher", "FlareGun", "SniperRifle");
This is where the trigger is
submenuPed.Add(WeaponsSubmenu2); WeaponsSubmenu2.Activated += ChangeWeaponsPed;
-
RE: Can't enable online map on version 1.60 2628.
@Michael317 Sorry I don't know. Hopefully someone esle has run across this. I'm still with 2372 and have avoided so many issues.
-
Code breaks from SHVDN3.1 to SHVDN3.4. Fix?
My game is frozen in time but I recently had to update SHVDN from 3.1 to 3.4 to try out a new mod using LemonUI.
Mod worked fine but I realized my own LemonUI menu for weapons was now broken. So I reverted back to 3.1
I looked at the documentation, post 3.1 and because I'm not a programmer it's hard for me to understand but at least i can see they made changes that coincide with my code:
additional enum values for WeaponComponentHash and WeaponAttachmentPoint, and additional properties for missing enum values of WeaponAttachmentPoint
My code that works in 3.1 but not if I upgrade to 3.4 is this:
public void ChangeWeaponsPed(object sender, EventArgs e) { String MyChoice = WeaponsSubmenu2.SelectedItem; { WeaponHash wepHash = (WeaponHash)Enum.Parse(typeof(WeaponHash), MyChoice); CurrentPed.Weapons.Give(wepHash, 5000, true, true); // weapon components: Function.Call(Hash.GIVE_WEAPON_COMPONENT_TO_PED, CurrentPed, WeaponHash.HeavyPistol, 0xC304849A); //suppressor } }
Although I don't mind staying at 3.1 forever, would be nice to know why my code broke with subsequent updates.
-
RE: Unable to use the mods file
@Narga so it's your addons or PC.
-
RE: Unable to use the mods file
@Narga no, from what you described at first I thought it was an addon rather than a script from scripts folder or asi. But now looking at the number of scripts you have installed I'm not surprised that you have issues. Rename your scripts folder and test.
However, as I wrote in my first reply, please remove the asi below. Not sure if it's causing issues but remove it.
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\gtamp-unlock-all-objects.asi" "gtamp-unlock-all-objects.asi" failed to load
Edit: do you need or actually use all those scripts? You're just asking for instability problems because I'm certain some of those scripts are outdated, they are all loaded in memory at the same time, they may conflict with each other, and they definitely weren't designed to all be used on the same installation.
If your problems aren't resolved by renaming scripts we know it's an addon problem, or possibly an asi one.
If they do disappear you'll need to rethink which scripts are essential.
-
Can you create your own Trainer?
Yes you can, but why would you? There are many excellent trainers out there like Menyoo and Simple Trainer and others.
So why reinvent the wheel? Because you can. Well let's preface that with rather than try to create your own Trainer, how about creating a customized Menu with the stuff you use 90% of the time. I know myself, I probably use 5% of what's in any Trainer.
The benefits of creating your own menu, and it's much simpler than you think, is to have it exactly your way. Want the ugly MP Female to spawn naked rather than with a clown mask? You can. No need to customize her after the spawn.
Want to spawn your new Lambo in green with just the extras you wanted? Can do as well.
Sure you can save spawns as favourites, but your own menu will give you so much more flexibility and consistency - and the contentment of knowing you did it yourself.
Rather than talk about what a custom menu can do, with LemonUI, here is a quick appetizer. If there is interest I'll start to post tutorials that anyone can understand, even those who have never programmed before.
I can actually do that because i'm not a programmer.
-
New Users - Menyoo or Simple Trainer?
For new mod users, one important decision to make is which Trainer to install. These are required to spawn peds, vehicles, and props (assets).
With respect to spawning, you could also do this if you write your own scripts, or you could install dedicated mods for vehicles (Add-On Vehicle Spawner by ikt) or for peds (AddonPeds by Meth0d). For the latter, see this post for the best method to spawn and organize peds.
Most importantly Trainers allow you to enhance GTA5 in unimaginable ways. Everything from changing your player or NPC clothes and hairstyles, modifying the colour and characteristics of your vehicles, changing the weather and time, and much more. You also will benefit from a host of new funtionalities such as teleporting to any location - even beyond the boundaries of San Andreas (with an additional mod).
We will leave it up to you to discover all the features and functions of your chosen Trainer and just mention the two most popular, at least historically and based on number of downloads.
These are Menyoo PC and Simple Trainer for GTA. Both are excellent, and of course you can install both if you wish.
My personal favourite is Menyoo, for its intuitive and more user-friendly interface. However it is no longer supported by the creator, Mafin, although updates are still available from the community.
Simple Trainer and other newer contenders, still supported and updated, are slowly gaining ground on Menyoo and all have their pros and cons. Given these trainers are free, you can easily experiment and keep one, two, or several. Keep in mind that loading similar mods, or too many mods in general, may cause stability issues due to potential conflicts. However Menyoo and Simple Trainer play nice and coexist close to perfectly with each other.
A Trainer that is definitely not required but most new users install anyway is the Native Trainer packaged with Script Hook V. Don't install it, it's old and unnecessary.
One thing I really dislike about Simple Trainer is the old fashioned interface and the use of the NumPad for menu navigation and option selection. No mainstream Windows applications use this type of interface. Thankfully, Simple Trainer is easily customizable and you can reassign key bindings.
For example, to have a more Windows type of navigation and entries, change the following in the file called trainerv.ini:
[KeyBindings] MenuKeyUp=38 //changed Default Num 8 to Up Arrow MenuKeyDown=40 //changed, Default Num 2 to Down Arrow MenuKeyScrollUp=39 //Menu Scroll, Default Num 6 to Right Arrow MenuKeyScrollDown=37 //Menu Scroll, Default Num 4 to Left Arrow MenuKeyEnter=13 // changed Enter, Default Num 5 to Enter button
One last note, as someone will surely mention it. Menyoo is also available, updated more frequently, on this appveyor site, but the server has quotas which seem to always be exceeded. So you're lucky or very patient if you can download from there.
-
RE: Menyoo Crashing Game Please Read!!!
@AmazyCrazy There are known issues, reported here, about the last slots crashing. Posted solutions have included removing not only MP Christmas 2018 but also possibly the new dlcpacks mpg9ec and patchday9ecng.
To remove them, at least to test, you remove them from dlclist.xml or temporarily rename the folders. Either method will keep them from loading and you can then see if that's the cause.
Also make sure you have the latest version of Menyoo installed - remember the author no longer updates it but there is another site for updates by community:
https://ci.appveyor.com/project/MAFINS/menyoosp/build/artifacts
Unfortunately that site is crap, every time I've tried to download i get this:
{"message":"Artifacts download limit (1024 MB/day) exceeded."}
One forum user posted the latest version here, it's about 1 month old: https://www.mediafire.com/file/a7j2bf1q6kwi3a7/MenyooSP_1.0.195.zip/file
Or try for another trainer, hopefully updated for the last GTA5 patch.
-
RE: Looking for a way to change franklins name in GTA V pause menu?
@AmazyCrazy if he finds you, you're in big trouble
-
RE: Unable to use the mods file
@Narga you wrote that your game was working, then you made additions or changes that broke it. So try to get back to that stage where it was working and only add one mod at a time then test. You can also post your log files here or better on pastebin.
-
RE: Unable to use the mods file
@Narga no, I meant an OIV installer.
-
RE: Unable to use the mods file
@Narga No reason to laugh. Did you use any OIV installers?
-
RE: Unable to use the mods file
@Narga I'm glad. Thanks for letting us know you fixed it.
-
RE: Unable to use the mods file
One issue is this:
ASI: Loading "C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\gtamp-unlock-all-objects.asi" "gtamp-unlock-all-objects.asi" failed to load
Reinstalling generally is just a waste of time unless you are actively editing and deleting files in the game folder.
First things first. Unclear from your post whether your game runs stable (30 minutes minimum) without any mods. That's the first thing to check.
If the game runs without any mods, and I mean runs stably, next disable all asi files except OpenIV.asi and your trainer (Menyoo, Simple Trainer, whatever). Disable your scripts as well. Just rename the files and the script folder. But for the asi files rename extension bak or the asiloader will try to load them.
If that works, next step is remove all your buildings - they are much more likely to cause a crash rather than vehicles.
Do you have a gameconfig, heap, and pack mods installed?
You can also look at this post if you're new to modding GTA5.