赞了0个文件
写了17个评论
上传了2个视频
上传4个文件
3个跟随者
4,303次下载
@Zazerim55 It's the same as on Enhanced normally.
@mitto_backup Do you have any other mods besides pyloader? If so, which ones? And did you download shvdn from the link?
0.4 update:
You can now control the priority of file generation with __priority__.
Example:
file1.py __priority__ = 2
file2.py __priority__ = 1
In this example, file2.py will be executed before file1.py because its priority is higher (the number is lower).
Cool, it's nice to see people testing pyloader :)
@Aztecz8798 It says “enhanced,” but normally it should be compatible with both versions.
@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.