Sirius902 / LuaBackend

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

Lua not launching. Steam version #13

Open ShyDoughnut opened 5 months ago

ShyDoughnut commented 5 months ago

I watched a video to confirm i had it all right. From what I can tell I do. Once i get to the menu of KH1 and press F2 nothing happens

Screenshot 2024-06-13 214333

Screenshot 2024-06-13 214615

Dekirai commented 5 months ago

Duplicate of https://github.com/Sirius902/LuaBackend/issues/12

spongebob902 commented 4 months ago

Same here. i tried multiple times but nothing happened

HydroSulphide commented 4 months ago

As a default Steam puts the "KINGDOM HEARTS HD 1.5+2.5 ReMIX" folder, where your scripts are located in: C:\Users\<user_name>\Documents\My Games\KINGDOM HEARTS HD 1.5+2.5 ReMIX\scripts The LuaBackend.toml by default searches for scripts inside the Documents folder itself, because as a default EPIC puts it there: C:\Users\<user_name>\Documents\KINGDOM HEARTS HD 1.5+2.5 ReMIX\scripts

You can either copy the "KINGDOM HEARTS HD 1.5+2.5 ReMIX" directory into Documents and put your scripts there or the better alternative you edit the paths in the LuaBackend.toml to the correct path. This means your LuaBackend.toml should look like this:

[kh1]
scripts = [{ path = "scripts/kh1/", relative = true }]
base = 0x0
thread_struct = 0x22BAA20
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 }]
base = 0x0
thread_struct = 0x8A0930
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 }]
base = 0x0
thread_struct = 0x110B84A0
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 }]
base = 0x0
thread_struct = 0xC072C0
exe = "KINGDOM HEARTS Re_Chain of Memories.exe"
game_docs = "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX"
[kh3d]
scripts = [{ path = "scripts/kh3d/", relative = true }]
base = 0x0
thread_struct = 0x14DA6F20
exe = "KINGDOM HEARTS Dream Drop Distance.exe"
game_docs = "My Games/KINGDOM HEARTS HD 2.8 Final Chapter Prologue"

Notice how the game_docs now point to "My Games/KINGDOM HEARTS HD 1.5+2.5 ReMIX" instead of just "KINGDOM HEARTS HD 1.5+2.5 ReMIX"

I hope this was the problem, please also notice that all lua mods need to be updated, because of the v1.0.0.9 update of Kingdom Hearts. You can see on Nexus when mods were updated. If it's a date before the steam release and they use lua scripts, you can't use them.

julianrios commented 4 months ago

I’m facing the same issue. I’m on the latest version and went through the dock and everything looks good but its not launching for me.

cahudson94 commented 3 months ago

The third option is to set an absolute path in the .toml as well. The above example is actually outdated as well and the most recent version of the .toml can be found here The file structure is good for what is captured above so the only real reasons it might not come up is not pointing to the proper script location in the .toml OR a lack of further files/folders inside the script folder.