Categories > Coding > C++ >

[question] writing an rlua function (post inline)

Posts: 215

Threads: 39

Joined: Feb, 2021

Reputation: 9

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.

  • 0

Added

@_realnickk

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

  • 0

Added

@_realnickk

oh so i get it ok ok thanks this makes more sense now

  • 0

Ch0nky

xChonkster

Posts: 71

Threads: 8

Joined: Nov, 2020

Reputation: 8

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)

  • 0

still writing arch v2

0x90

dingleberry#2286

vip

Posts: 249

Threads: 26

Joined: Dec, 2020

Reputation: 28

Replied

You can reference it yes but unless your Lua state is 1:1 then there's no point

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )