Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] for more info regarding the UEVR Lua API #246

Open
CYB3R-JUNKI3 opened this issue May 5, 2024 · 2 comments
Open

[Request] for more info regarding the UEVR Lua API #246

CYB3R-JUNKI3 opened this issue May 5, 2024 · 2 comments

Comments

@CYB3R-JUNKI3
Copy link

CYB3R-JUNKI3 commented May 5, 2024

I didn't really know how to categorize this I didn't feel comfortable labeling this as a bug as the problem is likely user error on my part.

I am extremely interested in using the Lua API to make UEVR plugins
Would be possible to get more information on the UEVR Lua API in regards to setup and usage ?

I have scoured the UEVR Discord for any relevant information about the Lua API and the only useful info I could find was the following :
"UEVR has no Lua API compiled into itself, it is a separate DLL that interacts with UEVR and can and has to be used in conjunction with a separate Lua environment Like UE4SS
You would need to compile the lua API within UEVR first, then move it into a UE4SS mod folder, then require it from a lua script, then inject UEVR"

So far I have :

  • Cloned the latest UEVR
  • Followed the instructions to compile
  • Moved the resulting "LuaVR.dll" into a UE4SS mod folder

I then tried to do something simple from the "Lua API" UEVR Documentation, something trivial like printing version number etc.. just to make sure things were working.
However, once I added (copy and pasted just to be sure) a few commands from the examples the script would not get past the second line :
local LuaVR = require("LuaVR")
local params = LuaVR.params
Error "attempt to index a boolean value (local 'LuaVR')

As I mentioned above, this is likely user error, I am no scripting wizkid by any means but I'm simply not sure what I am doing wrong.
Perhaps I didn't compile correctly ?
Perhaps I'm putting the LuaVR.dll in the wrong place ?
Could even be something stupid on my part, I have a habit of overthinking.

Any help or even a point in the right direction would be greatly appreciated.

@praydog
Copy link
Owner

praydog commented May 6, 2024

https://github.com/praydog/UEVR/tree/lua-api

Not ready.

@CYB3R-JUNKI3
Copy link
Author

Ah, ok, that would do it.
Many thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants