FedeAC - Cuberite Anticheat
#5
It seems the link doesn't work unless you have adblock disabled.

Also, I see you're obfuscating the code (which is fine and entirely your choice), but it's actually possible to compile and distribute the Lua bytecode. If you've got Lua standalone installed it's as simple as this:

local args = {...}
for idx, file in ipairs(args) do
	local f = loadfile(file);
	local dump = string.dump(f);
	local file = io.open(file .. "c", "wb");
	file:write(dump);
end

And then calling
Code:
compile.lua AirMovements.lua FedeAC.lua KubeLib.lua PacketSpeed.lua Speed.lua

If you don't have the Lua standalone you could change the code to make Cuberite compile the files for you. You'd also have to change where the settings are stored though. There is a catch, Cuberite doesn't automatically load 'luac' files (though changing the extensions back to .lua should work) and there is no guarentee that the bytecode works if we ever upgrade Lua. However, as we've been using this version of Lua since 2011 I doubt that's a big problem. Smile

EDIT:
Also, the isStairs function doesn't work. You have to compare the values to g every time. It might be better to put those values in a table and check if the variable g can be found inside it. These are magic numbers though which you might want to avoid.
Reply
Thanks given by: _XxFedexX_


Messages In This Thread
FedeAC - Cuberite Anticheat - by _XxFedexX_ - 04-14-2021, 05:01 PM
RE: FedeAC - the best Cuberite anticheat - by NiLSPACE - 04-19-2021, 08:29 AM
RE: FedeAC - Cuberite Anticheat - by _XxFedexX_ - 05-12-2021, 10:31 PM
RE: FedeAC - Cuberite Anticheat - by Ketjow3 - 08-15-2022, 02:57 AM



Users browsing this thread: 1 Guest(s)