Player 2 moves well but when he enters a vehicle, the script crashes:
[23:24:47] [DEBUG] Loading API from .\ScriptHookVDotNet2.dll ...
[23:24:47] [DEBUG] Loading API from .\ScriptHookVDotNet3.dll ...
[23:24:47] [DEBUG] Loading scripts from G:\Jeux\GTA V Coop no split\scripts ...
[23:24:47] [DEBUG] Loading assembly NativeUI.dll ...
[23:24:47] [INFO] Found 1 script(s) in NativeUI.dll resolved to API 2.10.12.
[23:24:47] [DEBUG] Loading assembly SharpDX.DirectInput.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.DirectInput.dll.
[23:24:48] [DEBUG] Loading assembly SharpDX.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.dll.
[23:24:48] [DEBUG] Loading assembly SharpDX.XInput.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.XInput.dll.
[23:24:48] [DEBUG] Loading assembly TwoPlayerMod.dll ...
[23:24:48] [INFO] Found 1 script(s) in TwoPlayerMod.dll resolved to API 2.10.12.
[23:24:48] [DEBUG] Instantiating script NativeUI.BigMessageThread ...
[23:24:48] [INFO] Started script NativeUI.BigMessageThread.
[23:24:48] [DEBUG] Instantiating script TwoPlayerMod ...
[23:24:48] [INFO] Started script TwoPlayerMod.
[23:28:27] [ERROR] Caught fatal unhandled exception:
System.MissingMethodException: Méthode introuvable : 'System.Drawing.Point GTA.UI.WorldToScreen(GTA.Math.Vector3)'.
à Benjamin94.PlayerPed.UpdateCombat(Func`1 firstButton, Func`1 secondButton)
à Benjamin94.PlayerPed.Tick()
à TwoPlayerMod.<>c.<TwoPlayerMod_Tick>b__49_1(PlayerPed playerPed)
à System.Collections.Generic.List`1.ForEach(Action`1 action)
à TwoPlayerMod.TwoPlayerMod_Tick(Object sender, EventArgs e)
à SHVDN.Script.MainLoop()
[23:28:27] [ERROR] The exception was thrown while executing the script TwoPlayerMod.
[23:28:27] [WARNING] Aborted script TwoPlayerMod.
GTA V Version : 1180.1
NativeUI version: included in the mod (same thing with 1.9.1)
Version: ScriptHookVDotNet: 3.0.2
Mod version: TwoPlayerMod [.NET] Beta 2.35 (version 2.2 doesn't work better)
Controllers : Microsoft Xbox USB
Tested with and without x360ce/xinput1_3.dll (same problem)
Tested with 2 and 3 players: same problem
Thanks for your help, without the vehicles the mod loses its interest!
Sorry for my bad english, it's not my language.
Hello !
I have a problem.
Player 2 moves well but when he enters a vehicle, the script crashes:
[23:24:47] [DEBUG] Loading API from .\ScriptHookVDotNet2.dll ...
[23:24:47] [DEBUG] Loading API from .\ScriptHookVDotNet3.dll ...
[23:24:47] [DEBUG] Loading scripts from G:\Jeux\GTA V Coop no split\scripts ...
[23:24:47] [DEBUG] Loading assembly NativeUI.dll ...
[23:24:47] [INFO] Found 1 script(s) in NativeUI.dll resolved to API 2.10.12.
[23:24:47] [DEBUG] Loading assembly SharpDX.DirectInput.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.DirectInput.dll.
[23:24:48] [DEBUG] Loading assembly SharpDX.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.dll.
[23:24:48] [DEBUG] Loading assembly SharpDX.XInput.dll ...
[23:24:48] [INFO] Found 0 script(s) in SharpDX.XInput.dll.
[23:24:48] [DEBUG] Loading assembly TwoPlayerMod.dll ...
[23:24:48] [INFO] Found 1 script(s) in TwoPlayerMod.dll resolved to API 2.10.12.
[23:24:48] [DEBUG] Instantiating script NativeUI.BigMessageThread ...
[23:24:48] [INFO] Started script NativeUI.BigMessageThread.
[23:24:48] [DEBUG] Instantiating script TwoPlayerMod ...
[23:24:48] [INFO] Started script TwoPlayerMod.
[23:28:27] [ERROR] Caught fatal unhandled exception:
System.MissingMethodException: Méthode introuvable : 'System.Drawing.Point GTA.UI.WorldToScreen(GTA.Math.Vector3)'.
à Benjamin94.PlayerPed.UpdateCombat(Func`1 firstButton, Func`1 secondButton)
à Benjamin94.PlayerPed.Tick()
à TwoPlayerMod.<>c.<TwoPlayerMod_Tick>b__49_1(PlayerPed playerPed)
à System.Collections.Generic.List`1.ForEach(Action`1 action)
à TwoPlayerMod.TwoPlayerMod_Tick(Object sender, EventArgs e)
à SHVDN.Script.MainLoop()
[23:28:27] [ERROR] The exception was thrown while executing the script TwoPlayerMod.
[23:28:27] [WARNING] Aborted script TwoPlayerMod.
GTA V Version : 1180.1
NativeUI version: included in the mod (same thing with 1.9.1)
Version: ScriptHookVDotNet: 3.0.2
Mod version: TwoPlayerMod [.NET] Beta 2.35 (version 2.2 doesn't work better)
Controllers : Microsoft Xbox USB
Tested with and without x360ce/xinput1_3.dll (same problem)
Tested with 2 and 3 players: same problem
Thanks for your help, without the vehicles the mod loses its interest!
Sorry for my bad english, it's not my language.