Categories > Coding > C++ >

How would I get luaF_newCclosure address?

Posts: 71

Threads: 6

Joined: Aug, 2022

Reputation: 6

Posted

As the title says, I wan't to get the luaF_newCclosure address, because I wan't to create custom funcs. If anyone would be so nice to tell me, then I would appreciate it. Also another question, after I got it: How can I use it to create custom funcs?

I already got execution done.

  • 0

Added

@Spanksterria,

void TaskScheduler::executeScript(std::uintptr_t luaState, const char* script) {
	std::string bytecode = compile(script);
	bytecode = TaskScheduler::compress(bytecode);
	TaskScheduler::setidentity(luaState, 8);
	int executionStatus = funcs::luaVM_load(luaState, &bytecode, "Lioner", 0);
	if (executionStatus == 0) {
		printf("Script execution was successful.\n");
		funcs::taskDefer(luaState);
	}
	else {
		printf("Script execution was unsuccessful!\n");
	}
	TaskScheduler::decrementtop(luaState, 16);
}
  • 0

Posts: 34

Threads: 8

Joined: Jul, 2022

Reputation: 10

Replied

@DracoFAAD,

i believe lua_FNewClosure was in 0xD34DB33F but I'm not sure that might be from 2 updates ago.

you have to redo the build seed and shuffle structs to call it. using uintptr-t is detected by RACK2

  • 0

veh_handler and seh_handler disliker

<p>enis</p>

Posts: 71

Threads: 6

Joined: Aug, 2022

Reputation: 6

Replied

@Verbum, Cant really do much with just the address. I want a method if finding it. Otherwise I can't update my Dll?

  • 0

Users viewing this thread:

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