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 


Decompile/Decode Cheat Engine file to Lua Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
azamalvi
Cheater
Reputation: 0

Joined: 16 Aug 2013
Posts: 26

PostPosted: Thu Sep 08, 2016 7:16 am    Post subject: Decompile/Decode Cheat Engine file to Lua Script Reply with quote

I just found a tutorial on YouTube form which we can extract code from trainers file. This is link for that. https://www.youtube.com/watch?v=fSQPL2D2P0c.
I have done everything according that and make a new Lua Script and put my result into that.There were two buttons in the original trainer. Now I want to run the code how can I do that I have tried like this to run but not working
Code:
Luacall(scan(colval[9],colval[10]))  // suppose this is first button that I am triggering 


This is my Complete Lua Script.

Code:
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'

function conch(data)
    data = string.gsub(data, '[^'..b..'=]', '')
    return (data:gsub('.', function(x)
    if (x == '=') then return '' end
    local r,f='',(b:find(x)-1)
    for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
        return r;
    end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
    if (#x ~= 8) then return '' end
    local c=0
    for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
        return string.char(c)
    end))
end

colval = {}
colval[1]=conch('RlJOWm8xYjJISlpMR1M5bEl6TEhvMXhGR0pabXB4SGxJSFpIbzFiMkZKWk5EeTlsSUhOTG8xYjJFM1pZRzBwbEl6TDNvMWJGRTNaWUcwWmxJSnhUbzF4Q0NsMD0= ')
colval[2]=conch('SUhOSG8xeENISlpMR1JIbElITkhvMXhDSEpaTEdSSGxJSE5IbzF4Q0hKWkxHUkhsSUhOSG8xeENISlpMR1JIbElITkhvMXhDSEpaTEdSSGxJSE5IbzF4Q0hGMD0= ')
colval[3]=conch('RlJOWm8xYjJISlpMRzF4bEl6TFpvMFJTbjNaTEdSeGxJekxYbzBqRkQzWm1wenBsSXhaWG8wakZEM1pMcUdwbElITkhCQz09 ')
colval[4]=conch('SUhOSG8xeENISlpMR1JIbElITkhvMXhDSEpaTEdSSGxJSE5IbzF4Q0hKWkxHUkhsSUhOSG8xeENISlpMR1JIbElITkhCQz09 ')
colval[5]=conch('SXpMSG8xeEZFM1ptcHdmbENIWlhvMXg1Q2wwPQ== ')
colval[6]=conch('SUpMUG8xYjJDM1pMcHdabElKTFBvMGZTSEYwPQ==')
colval[9]=conch('SXpMSG8xeEZDM1ptcHdmbEZRTEhvMWJDR0pabUcwZTk=')
colval[10]=conch('SUpMUG8xeENHSlpMR1JIbElITkhvMXhDSEYwPQ== ')
colval[11]=conch('')
colval[12]=conch('')

function cyberHacks()
 t =
 {
 {'Enemy kill',[[Luacall(scan(colval[1],colval[2]))
 Luacall(scan(colval[3],colval[4]))
 Luacall(scan(colval[5],colval[6]))]]},
 {'One Hit',[[Luacall(scan(colval[9],colval[10]))]]},
 }
end


I am new in Lua Script so no idea what is worng . Confused
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Thu Sep 08, 2016 9:12 am    Post subject: Reply with quote

Lamers teaching lamers

Don't steal, learn to do it yourself. You certainly took the time and effort to watch a shitty youtube video, why not spend that same time learning to better yourself.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
azamalvi
Cheater
Reputation: 0

Joined: 16 Aug 2013
Posts: 26

PostPosted: Fri Sep 09, 2016 12:12 am    Post subject: Reply with quote

It's not about learning. It's about the code logic. I was no idea to make that trainer. So I just extract code from that simple. Now my question was only to run the code. I don't think that it is related to stealing a code. Just want to add changing according to my needs.
Back to top
View user's profile Send private message
mlmn21
How do I cheat?
Reputation: 0

Joined: 13 Aug 2014
Posts: 9

PostPosted: Fri Jun 16, 2017 8:38 pm    Post subject: Reply with quote

STN wrote:
Lamers teaching lamers

Don't steal, learn to do it yourself. You certainly took the time and effort to watch a shitty youtube video, why not spend that same time learning to better yourself.




bla bla bla. this is cheaters forum site. some one is noob someone is expert. some times we cant find code. and we want to design our trainer . we all steal codes. because we are cheater and we use CHEATengine.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Jun 16, 2017 10:49 pm    Post subject: Reply with quote

mlmn21 wrote:

bla bla bla. this is cheaters forum site. some one is noob someone is expert. some times we cant find code. and we want to design our trainer . we all steal codes. because we are cheater and we use CHEATengine.


And someone is blind.

Did my reply make you feel angry that you could not steal and had to bring a year old thread just to respond to me with your pathetic reasoning?

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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