Categories > Coding > C++ >
[question] writing an rlua function (post inline)
Posted
hi so im making this dll right and i need to make rlua functions right and i have this crazy idea from someone that might help so yeah here goes:
would taking a function, lets say pushlstring, from luau/vanilla lua source work for this purpose?
im not a c++ dev nor a dll dev of any expertise so i am really clueless and i cannot test as i have no idea how to.
soooo yeah thx
edit: i should mention that i cant test these functions because my dll isn't finished and i have no other way of testing it to my knowledge.
Added
yeah i did say taking the function from luau source so i think it should work once i finish everything
but honestly i wasnt sure because really just calling lua_pushlstring(rls, string, length) wasn't going to work in my head
Cancel
Post
Replied
well you could do that, but the offsets for luau source arent the same as roblox's
so you'll have to still write your own version compatible for roblox
and then u have to update it weekly so organizing ur offsets + obfuscation in one place would be a good idea
(dont take luas_hash from the lualib, trust me)
Cancel
Post
still writing arch v2
Replied
You can reference it yes but unless your Lua state is 1:1 then there's no point
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post