| View previous topic :: View next topic |
| Author |
Message |
btripoloni How do I cheat?
Reputation: 0
Joined: 14 Jul 2014 Posts: 4
|
Posted: Mon Jul 14, 2014 9:15 am Post subject: Using Cheat Engine like a mod loader |
|
|
Hi i would like to know if is possible use the cheat engine like a mod loader using to load lua scripts from the others users, it is possible?
Thanks
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Jul 14, 2014 10:06 am Post subject: |
|
|
Yes.
Save your lua script and share with other users ?
_________________
|
|
| Back to top |
|
 |
btripoloni How do I cheat?
Reputation: 0
Joined: 14 Jul 2014 Posts: 4
|
Posted: Mon Jul 14, 2014 10:18 am Post subject: |
|
|
| Thanks, but i want to say something like minecraft forge
|
|
| Back to top |
|
 |
661089799107 Expert Cheater
Reputation: 3
Joined: 25 Jan 2009 Posts: 186
|
Posted: Mon Jul 14, 2014 12:35 pm Post subject: |
|
|
No.
While you can load any Lua script you want into Cheat Engine (as long as they aren't calling non-existent functions), CE does not expose any functions to Lua that would be of any use to you.
Since Minecraft has no scripting API, forge most likely modifies the bytecode of the Minecraft java classes at runtime. CE does not do this.
So forge basically provides modders with an abstract API to modify the games java classes.
Why does forge (or LuaCraft) not work for you?
|
|
| Back to top |
|
 |
btripoloni How do I cheat?
Reputation: 0
Joined: 14 Jul 2014 Posts: 4
|
Posted: Mon Jul 14, 2014 1:03 pm Post subject: |
|
|
| 661089799107 wrote: | No.
While you can load any Lua script you want into Cheat Engine (as long as they aren't calling non-existent functions), CE does not expose any functions to Lua that would be of any use to you.
Since Minecraft has no scripting API, forge most likely modifies the bytecode of the Minecraft java classes at runtime. CE does not do this.
So forge basically provides modders with an abstract API to modify the games java classes.
Why does forge (or LuaCraft) not work for you? |
I use forge, but in this case i would like to use CE to "load mods" in others games
Any suggestions?
Thanks
|
|
| Back to top |
|
 |
661089799107 Expert Cheater
Reputation: 3
Joined: 25 Jan 2009 Posts: 186
|
Posted: Mon Jul 14, 2014 1:36 pm Post subject: |
|
|
| You can use CE to load a Lua script that will modify the games assembly code. So yes you can use it to "load mods" for any game.
|
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Mon Jul 14, 2014 3:28 pm Post subject: |
|
|
You can load a lua script, and catch errors using this script below (modify it to your needs..)
| Code: | safe = {};
safe.execution = function (...)
local _status, _func, _error = pcall(...)
if (_error) then
return (function () error(" safe.execution error : " .. _error,3) end);
end
return _func
end
function safe.loadstring(str)
return safe.execution(loadstring,str);
end
function safe.loadfile(file)
return safe.execution(loadfile,file);
end
safe.loadstring("print('print(1)')")() -- 'print(1)'
safe.loadstring("lets cause error")() -- Error: safe.execution error : [string "lets cause error"]:1: '=' expected near 'cause' |
Check lua site for more information about pcall.
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Mon Jul 14, 2014 3:51 pm Post subject: |
|
|
| Quote: |
Since Minecraft has no scripting API, forge most likely modifies the bytecode of the Minecraft java classes at runtime. CE does not do this.
|
Actually, CE 6.4 comes with a jvmti inteface that can replace the bytecode of classes at runtime
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
btripoloni How do I cheat?
Reputation: 0
Joined: 14 Jul 2014 Posts: 4
|
Posted: Mon Jul 14, 2014 4:41 pm Post subject: |
|
|
| Thank you, so something else cheat engine has some sort of limitation?
|
|
| Back to top |
|
 |
661089799107 Expert Cheater
Reputation: 3
Joined: 25 Jan 2009 Posts: 186
|
Posted: Mon Jul 14, 2014 6:16 pm Post subject: |
|
|
| Dark Byte wrote: | | Quote: |
Since Minecraft has no scripting API, forge most likely modifies the bytecode of the Minecraft java classes at runtime. CE does not do this.
|
Actually, CE 6.4 comes with a jvmti inteface that can replace the bytecode of classes at runtime |
Good to know . Apparently I need to pay more attention to the changelog.
|
|
| Back to top |
|
 |
|