gluac icon indicating copy to clipboard operation
gluac copied to clipboard

question on loading bytecode made with this.

Open VaasKahnGrim opened this issue 5 years ago • 4 comments

After using this to convert something into its bytecode form, how would one go about actually loading it into a server exactly?

VaasKahnGrim avatar Apr 17 '19 10:04 VaasKahnGrim

You would need to write your own binary module, once you have access to the Lua state you can just load it in.

handsomematt avatar Apr 20 '19 11:04 handsomematt

what would I exactly utilize? I've had some people say lua_load but I've also been seeing some variations of that aswell but were different functions

VaasKahnGrim avatar Apr 20 '19 20:04 VaasKahnGrim

also I'm having some issues with compiling in VS2017. I double checked the and made sure the scanning/ dependency had its contents in it aswell

1>------ Build started: Project: gluac, Configuration: Debug Win32 ------ 1>main.cpp 1>c:\users\user\documents\gluacm\gluac\src\lua_jit.h(255): warning C4162: '_BitScanForward': no function with C linkage found 1>c:\users\user\documents\gluacm\gluac\src\lua_jit.h(256): warning C4162: '_BitScanReverse': no function with C linkage found 1>c:\users\user\documents\gluacm\gluac\src\lua_jit.h(1179): error C3646: 'colo': unknown override specifier 1>c:\users\user\documents\gluacm\gluac\src\lua_jit.h(1179): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>..\src\main.cpp(10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 1>symbolfinder.cpp 1>Generating Code... 1>Done building project "gluac.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

VaasKahnGrim avatar Apr 21 '19 07:04 VaasKahnGrim

also I'm trying to figure out how to properly write the deploy section for travis.yml not sure what folder path to use however since for it https://imgur.com/a/78QV5ZA

this is what I end up with in travis tho if that helps

VaasKahnGrim avatar Apr 22 '19 01:04 VaasKahnGrim