0 files piaciuti
12 commenti
1 video
2 caricamenti
1 seguace
1.050 downloads
@dimedius Hi, thanks for the feedback. Regarding camShake, you need to add [bool]
Function.Call[bool](Hash.IS_GAMEPLAY_CAM_SHAKING)
instead of:
camShakeTrue = Function.Call(Hash.IS_GAMEPLAY_CAM_SHAKING)
because otherwise Function.Call returns None/Void.
This is due to IronPython, which sometimes has trouble guessing the return value, as Python is a dynamic language and not a static one.
As for VSCode, I'm currently working on making it compatible with autocompletion.
@Aztecz8798 To answer your question about advantages:
Aside from the fact that no recompilation is required (which allows for instant hot-reloading of individual scripts when you save the file), it is indeed mainly intended for those who prefer Python syntax over C#.
Regarding your confusion about "wrappers" and how it understands things like Player, there is actually no custom wrapper. Here is the technical breakdown:
Your Script (.py)
│ Game.Player.Character.Health = 200
│
▼
IronPython Engine
│ IronPython is NOT a bridge or translator.
│ It's Python running directly ON .NET.
│
│ Game.Player → Calls the real GTA.Game class
│ (same object as C# would use)
│
▼
ScriptHookVDotNet (SHVDN)
│ Receives standard .NET calls
│ Can't tell if caller is C# or Python
│
▼
ScriptHookV + GTA V
@sany07-07 It can be run on both, and I've changed the title.
@MDXNaTioN To my knowledge, this script has virtually no limitations. Almost anything that can be written in C# can normally be written in Python, but if you find any bugs or limitations, please let me know.
FR: précision : pydispatcher.dll utilise IronPython en interne, ce qui signifie qu'il n'est pas nécessaire d'installer python séparément pour exécuter les scripts .py
EN: precision: pydispatcher.dll uses IronPython internally, which means that it is not necessary to install Python separately to run .py scripts.
@nj5050 in the meantime I've solved the problem and for those who have a similar problem you need to put the Army V2 folder in the script folder, not the Army v2.3 Basic - Vanilla Stock folder directly.
otherwise the mod is great and adds action to the battles and if I see any bugs I won't hesitate to point them out.🙂👍
and also it would be nice to be able to customize messages in a future version.
@nj5050 I too have a bug with the gif folder:
System.IO.DirectoryNotFoundException: Can't find part of the path\army v2\gif\anim1'.
à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.IO.FileSystemEnumerableIterator`1.CommonInit()
à System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
à System.IO.Directory.GetFiles(String path)
à Army_At_SixStars_Basic_2._3.ArmyAtSixStars.DrawWezelNews()
à Army_At_SixStars_Basic_2._3.ArmyAtSixStars.WantedTick()
à Army_At_SixStars_Basic_2._3.ArmyAtSixStars.MainTick(Object sender, EventArgs e)
à SHVDN.Script.DoTick()
[15:35:57] [ERROR] The exception was thrown while executing the script Army_At_SixStars_Basic_2._3.ArmyAtSixStars from "scripts\Army v2.3 Basic - For SHVDN Nightly Users Only\Army v2\Army At SixStars Basic v2.3.dll".
[15:35:57] [WARNING] Aborted script Army_At_SixStars_Basic_2._3.ArmyAtSixStars.
à System.Threading.Thread.AbortInternal()
à System.Threading.Thread.Abort()
à SHVDN.Script.Abort()
à SHVDN.Script.DoTick()
à SHVDN.Script.MainLoop()
@nj5050 I tested the mod and it works pretty well but there are invisible enemies holding weapons that are visible, I think it's the military that are affected, and when I restarted the game the second time the 6 stars activated but not even 2 seconds later it went back to 5 and returned this error:
System.NullReferenceException: The object reference is not defined to an instance of an object.
to Army_At_SixStars_Basic_2._3.ArmyAtSixStars.WantedTick()
to Army_At_SixStars_Basic_2._3.ArmyAtSixStars.MainTick(Object sender, EventArgs e)
to SHVDN.Script.DoTick()
[23:21:48] [ERROR] The exception was thrown while executing the script Army_At_SixStars_Basic_2._3.ArmyAtSixStars from “scripts\Army v2\Army At SixStars Basic v2.3.dll”.
[23:21:48] [WARNING] Aborted script Army_At_SixStars_Basic_2._3.ArmyAtSixStars.
to System.Threading.Thread.AbortInternal()
to System.Threading.Thread.Abort()
to SHVDN.Script.Abort()
to SHVDN.Script.DoTick()
to SHVDN.Script.MainLoop()
I wonder if this isn't because I'm using shvdn nightly.🤔
@nj5050 should I downgrade gta 5 or change SHVDN nightly to SHVDN?
@nj5050
I forgot to specify but I'm using: ScriptHookVDotNet-v3.6.0-nightly.124 and here's the error log:
[23:08:11] [ERROR] Caught unhandled exception:
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à AdvancedBodyguards.CreateSquad(Int32 squadNumber)
à AdvancedBodyguards.OnItemSelect(UIMenu sender, UIMenuItem selectedItem, Int32 index)
à NativeUI.UIMenu.SelectItem()
à NativeUI.UIMenu.ProcessControl(Keys key)
à NativeUI.MenuPool.ProcessControl()
à NativeUI.MenuPool.ProcessMenus()
à AdvancedBodyguards.OnTick(Object sender, EventArgs e)
à SHVDN.Script.DoTick()
[23:08:11] [ERROR] The exception was thrown while executing the script AdvancedBodyguards from \Grand Theft Auto V\scripts\Advance bodyguard\Advanced Bodyguards.dll".
[23:08:11] [WARNING] Aborted script AdvancedBodyguards.
à System.Threading.Thread.AbortInternal()
à System.Threading.Thread.Abort()
à SHVDN.Script.Abort()
à SHVDN.Script.DoTick()
à SHVDN.Script.MainLoop()