Sirius902 / LuaBackend

A standalone script interpreter for PC games. Compatible with LuaEngine.
GNU General Public License v3.0
40 stars 5 forks source link

LuaBackend still not working even after new version #18

Open atera93 opened 2 months ago

atera93 commented 2 months ago

I recently switched from Epic Games to Steam version of KH. I tried to load Kingdom Hearts but it would crash. What should I do?

HydroSulphide commented 2 months ago

What were the exact steps you tried? What system are you using? Where is your scripts folder and how does your LuaBackend.toml look like?

atera93 commented 2 months ago

I am using Steam for Kingdom Hearts and I am using LuaBackend. My system goes something like this;

[kh1] scripts = [{ path = "scripts/kh1/", relative = true }] exe = "KINGDOM HEARTS FINAL MIX.exe" game_docs = "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX"

[kh2] scripts = [{ path = "scripts/kh2/", relative = true }] exe = "KINGDOM HEARTS II FINAL MIX.exe" game_docs = "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX"

[bbs] scripts = [{ path = "scripts/bbs/", relative = true }] exe = "KINGDOM HEARTS Birth by Sleep FINAL MIX.exe" game_docs = "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX"

[recom] scripts = [{ path = "scripts/recom/", relative = true }] exe = "KINGDOM HEARTS Re_Chain of Memories.exe" game_docs = "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX"

HydroSulphide commented 2 months ago

This seems right, did you copy all 3 files to the directory, where your exe is located? And are you playing on Linux/Steam Deck or Windows? Are your scripts located in the directory specified by your LuaBackend.toml? Do your games even work without the LuaBackend hook? Maybe you need to verify your game files via steam.

atera93 commented 2 months ago

I copied the files onto my D:/ Steam directory. My games work without the LuaBackend hook.

HydroSulphide commented 2 months ago

Could you post screenshots of your file manager (directory and path where you put your lua files and also the one where you put your script folder) and also one of the content of your LuaBackend.toml? It's weird that it crashes, but maybe you are just putting them in the wrong location.

atera93 commented 2 months ago

Where the scripts are image

Where my game is located (Steam Version) image

HydroSulphide commented 2 months ago

Yeah this should be right. Are there specific mods that crash the game at start? Or does it also crash with no mod at all? Maybe you are using an outdated mod? Could you try checking without mods and identify the mod that causes the crash? Because lua backend should not cause any crash with your setup.

Djokaire commented 2 months ago

Hey ! How are you ?

I have the same issue actually. The game can't run with DBGHELP.ddl. I have a entrypoint symgetsymfromaddr64 alert message when I try to launch the game. If I change DBGHELP to DINPUT8, the game launches but nothing happens, scripts won't work. I have the steam version btw

HydroSulphide commented 2 months ago

This error sounds like a mod tries to access an address, that isn't valid. Same question to you: What mods are you using? Does it only happen with one specific mod? Was the mod you are using updated after the steam release?

You shouldn't rename it to dinput8.dll on windows. That's for Linux/Proton.

atera93 commented 2 months ago

Yeah this should be right. Are there specific mods that crash the game at start? Or does it also crash with no mod at all? Maybe you are using an outdated mod? Could you try checking without mods and identify the mod that causes the crash? Because lua backend should not cause any crash with your setup.

I removed all my mods except for some that were recently downloaded and it worked. I think its because of the software switch from EGS to Steam.

Hey ! How are you ?

I have the same issue actually. The game can't run with DBGHELP.ddl. I have a entrypoint symgetsymfromaddr64 alert message when I try to launch the game. If I change DBGHELP to DINPUT8, the game launches but nothing happens, scripts won't work. I have the steam version btw

Try removing all of your mods first and reintroducing some that were downloaded recently.

Djokaire commented 2 months ago

Sadly, any script causes a crash. :/

NezomiFloof commented 2 months ago

Can confirm as well, all scripts crash KH1.

cahudson94 commented 3 weeks ago

To be honest (as a dev on the mods) this is not an issue with the backend but the mods themselves. If you can open the F2 prompt window the dlls from here are working correctly. Direct the questions where you have picked up the mods, it is likely one of three issues either the mod has not been updated (slightly less likely at this point), you have an outdated version of the file, or you are on a yet unsupported platform (Steam Deck has known issues but is hard to do dev work for). For my share of work All PC ports of the lua mods I maintain have been updated.

TL;DR work with the maintainers of the mods if F2 is working as it is a problem on that end not on the backend side.