rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

How to package with `LuaCode`? #42

Closed brno32 closed 2 years ago

brno32 commented 2 years ago

All my lua code is in LuaCode assets, but after packaging when I try to retrieve the code, I just get a blank string. I'm not using any non-asset content, but is there something to configure during packaging?

The instructions say

Transform your scripts (just drag them in the content browser) to LuaCode assets and eventually fix the RequireTable.

I'm not doing any imports in my lua code.

brno32 commented 2 years ago

Unchecking Cook as Bytecode fixes it for me. I see that you can't get the code as a string if it hasn't been cooked as a string

cap