fr-Pursuit / AsiSupport

ASI plugins support for RagePluginHook.
GNU General Public License v3.0
25 stars 6 forks source link

ELS Issue #6

Closed G35Matt closed 2 years ago

G35Matt commented 3 years ago

I'm getting an error loading ELS using ASI Support

Here are the relevant lines from RagePluginHook.log: [3/17/2021 6:48:07 PM.920] ASI Support For RAGE Plugin Hook: [18:48:07] [INFO] Plugin "ELS" loaded successfully. [3/17/2021 6:48:07 PM.927] ASI Support For RAGE Plugin Hook: [18:48:07] [INFO] Starting new GameFiber: "ELS-main" [3/17/2021 6:48:11 PM.588] ASI Support For RAGE Plugin Hook: [18:48:11] [ERROR] GameFiber "ELS-main" has crashed: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. [3/17/2021 6:48:11 PM.588] at AsiSupport.ASI.AsiThread.RunFiber()

fr-Pursuit commented 3 years ago

Have you reloaded ASI Support ? If so, please note that some plugins such as ELS cannot be reloaded once they've already been loaded at least once, and will crash with an AccessViolationException if you attempt to do so.

G35Matt commented 3 years ago

Yes I tried reloading ASI Support as well as unloading all ASI plugins and loading just ELS, got the same error

fr-Pursuit commented 3 years ago

That's exactly what I'm saying. If ELS is loaded, then crashed and / or is unloaded, you have to restart your game for it to work again. Simply reloading it (or reloading ASI Support as a whole) would make it crash with an AccessViolationException.

G35Matt commented 3 years ago

Alright I'll give it a shot, I noticed that ASI Support gets unloaded by RPH to prevent freezing if it is set to run at startup so I'll disable it and run it once I'm in game

fr-Pursuit commented 3 years ago

If necessary, you can increase the plugin termination threshold in the RPH settings (accessible when you launch RPH)

G35Matt commented 3 years ago

I can try that as well, when I loaded it through the console I saw that RPH is unloading it because of the ELS-main fiber so it looks like the issue still persists when it's loaded for the first time

G35Matt commented 3 years ago

Another update, with an increased plugin termination threshold, LoadAllPluginsOnStartup set to False in the ASI Support cfg, and manually loading only ELS, it is working, however the framerate dips to about 10 or so FPS.

swamperjon commented 3 years ago

i was useing scripthook v for els and stuff none would work after 2245 update, REMOVED Scripthookv Installed ASI Support, RESTARTED PC... All works great THANKS FOR YOUR WORK ITS Awesome!!!! If Done Like I did they should'nt be Problems.

fr-Pursuit commented 3 years ago

Unfortunately the FPS drop is to be expected. By design, ASI Support can't be as fast as ScriptHookV

swamperjon commented 3 years ago

i use els and other mods works fine not seen any problems dont see no differance yet

fr-Pursuit commented 2 years ago

Since your initial problem was fixed, I'm closing this issue.

As for the FPS drop, as I previously said, it is due to the way AsiSupport works. There is unfortunately no way to increase performance without creating an entirely new and independant scripting framework.