Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Using Cheat Engine like a mod loader

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
btripoloni
How do I cheat?
Reputation: 0

Joined: 14 Jul 2014
Posts: 4

PostPosted: Mon Jul 14, 2014 9:15 am    Post subject: Using Cheat Engine like a mod loader Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Jul 14, 2014 10:06 am    Post subject: Reply with quote

Yes.

Save your lua script and share with other users ?

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
btripoloni
How do I cheat?
Reputation: 0

Joined: 14 Jul 2014
Posts: 4

PostPosted: Mon Jul 14, 2014 10:18 am    Post subject: Reply with quote

Thanks, but i want to say something like minecraft forge
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Mon Jul 14, 2014 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
btripoloni
How do I cheat?
Reputation: 0

Joined: 14 Jul 2014
Posts: 4

PostPosted: Mon Jul 14, 2014 1:03 pm    Post subject: Reply with quote

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 Very Happy

Any suggestions?

Thanks
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Mon Jul 14, 2014 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Jul 14, 2014 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25899
Location: The netherlands

PostPosted: Mon Jul 14, 2014 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
btripoloni
How do I cheat?
Reputation: 0

Joined: 14 Jul 2014
Posts: 4

PostPosted: Mon Jul 14, 2014 4:41 pm    Post subject: Reply with quote

Thank you, so something else cheat engine has some sort of limitation?
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Mon Jul 14, 2014 6:16 pm    Post subject: Reply with quote

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 Smile. Apparently I need to pay more attention to the changelog.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites