Categories > Coding > C++ >

[HELP] TASKDEFER SEEMS TO NOT BE WORKING!

heckerdude

heckerdude

Posts: 129

Threads: 16

Joined: Aug, 2022

Reputation: 6

Posted

I was trying some experiementing with the LuaVM::Load function, but then a 'task-defer- function came to my mind'.

I tried to use it, but it crashed?

Of course I have an exception catcher but it says 'Unknown exception'.

 

Anyone know why?

FYI: NOT CHANGING MY METHOD!

  • 0

Added

@_realnickk I am normally using 'task_defer'.

 

using r_taskdefer_t = uintptr_t(__cdecl*)(uintptr_t rl);
r_taskdefer_t r_taskdefer = (r_taskdefer_t)(ASLR(0x7B4C20));

this is the code but i have been trying but it just crashes with no exception.

 

 

 

void execute(uintptr_t rL, std::string script)
{

	bytecode_encoder_t encoder;
	auto bytecode = Luau::compile(script, {}, {}, &encoder);
	
	if (bytecode.at(0) == 0)
	{
		typedef int(__cdecl* print_func)(int, const char*, ...);
		print_func rbx_print = (print_func)(print_address);
		rbx_print(3, bytecode.c_str() + 1);
	}
	else
	{
		auto compressed = compress(bytecode);
		r_luavm_load(rL, &compressed, "DDDD", 0);

		decrement_top(rL);
		script.clear();
	}
} 

this is execution
  • 0

Added

@_realnickk

Yes, I sent you the code sample.

r_task_defer(rL);

 

Can you tell me some other methods?

ALSO I use Task Scheduler for lua state

So i have getstate getscheduler and the job offsets..

  • 0

Added

https://cdn.discordapp.com/attachments/1064615995941076994/1064669306073383052/image.png

  • 0

hecker dude ngl i hecked 5 ips in 1 second also luaU_loadbiglongjuicythingy(rL);

Users viewing this thread:

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