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 


[New Version][Trainer] Easy Trainer Making | 2 Dec update |
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
tomtinhte
How do I cheat?
Reputation: 0

Joined: 27 Aug 2014
Posts: 8

PostPosted: Tue Apr 28, 2015 3:15 pm    Post subject: Reply with quote

u can share .ct file with form & lua script? I want to customize it Very Happy
Back to top
View user's profile Send private message Yahoo Messenger
rahat
How do I cheat?
Reputation: 0

Joined: 11 May 2015
Posts: 9

PostPosted: Wed May 13, 2015 6:50 am    Post subject: Reply with quote

Code:
function cmdHttpGet(url,file) --thnx to panraven
  assert(type(url)=='string','has to specific url string')
  file = type(file)=='string' and file or '_dummy.tmp'
  local cmd = string.format([[powershell -command "& { (New-Object Net.WebClient).DownloadFile('%s', '%s') }"]],url,file)
  cmd = assert(io.popen(cmd,'r'))
  cmd:read('*all')
  cmd:close()
  cmd = assert(io.open(file,'rb'))
  local result = cmd:read('*all')
  cmd:close()
  return result
end

hck1 = cmdHttpGet([[website-url/hack1.txt]])
hck2 = cmdHttpGet([[website-url/hack2.txt]])

function CreateTrainer() --thnx to DaSpammer

   local HackData = {};
   function HackData:HacksData()

      self.trainer.form.Caption = [[noOb Trainer]]
      self.trainer.title.Caption = [[noOb Trainer]]
      self.trainer.credits.Caption = [[ Hack was made by a friend]]
      self.hacktable =    {
        {'Hack1',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'},
        {'Hack2',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'}
        };

   for i=1,#self.hacktable do
      strings_add(self.listitems, self.hacktable[i][1]);
      self.hackstatus[i] = false;
   end

end
--...
--...


Generated a trainer from your great work and it works just fine, but I wanted to place the AOBs on a remote server so instead of re-creating & distributing trainer each time game gets updated I just update 2 text files.

Problem is, it retrieves the data from text files and stores in variables, but when enable button is pressed, it throws error that "Hack failed to enable".

Completely new to lua script and want this specific thing done. Not sure what am i doing wrong.

website-url/hack1.txt
Code:

'01 01 01','02 02 02'


website-url/hack2.txt
Code:
'11 11 11','22 22 22'
[/code]

Last edited by rahat on Wed May 13, 2015 9:54 am; edited 2 times in total
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 938

PostPosted: Wed May 13, 2015 9:12 am    Post subject: Reply with quote

Code:
        {'Hack1',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'},


The symbol sequence '[[' and ']]' is another lua way of quoting a string, which allow text display as is, including new line.

By trying refer variable hck1 in
Code:
[[luacall(AobswapC(hck1))]]
, hck1 is just a string and not a string variable holding a string (ie. [['01 01 01','02 02 02']]). Try
Code:
[[luacall(AobswapC(]].. hck1.. [[))]]

The 2 dot .. is to join 2 strings. So above is joining a literal string with a string variable hck1 and then another literal string. The result string should be equivalent to

Code:
[[luacall(AobswapC('01 01 01','02 02 02'))]]

bye~
Back to top
View user's profile Send private message
rahat
How do I cheat?
Reputation: 0

Joined: 11 May 2015
Posts: 9

PostPosted: Wed May 13, 2015 9:52 am    Post subject: Reply with quote

panraven wrote:
Try
Code:
[[luacall(AobswapC(]].. hck1.. [[))]]

The 2 dot .. is to join 2 strings. So above is joining a literal string with a string variable hck1 and then another literal string. The result string should be equivalent to

Code:
[[luacall(AobswapC('01 01 01','02 02 02'))]]

bye~


Thank you very much panraven, you really made my day.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Wed May 13, 2015 3:41 pm    Post subject: Reply with quote

Odd that people still use this :p.
This script isn't so efficient and poorly written... you cannot verify that it managed to enable all aobs (if placing sever aobswap in a single script) and it doesn't 'undo' in case of failure...

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
Fluffer_Nutter
Advanced Cheater
Reputation: 0

Joined: 26 Feb 2015
Posts: 67

PostPosted: Wed May 13, 2015 3:49 pm    Post subject: Reply with quote

@DaSpammer

People still use it because it works lol. Its the 1st trainer i learned off of. Im not up to your level tho. But from seeing the code and learning LUA it was a huge step in the right direction! Many thanks
Back to top
View user's profile Send private message
rahat
How do I cheat?
Reputation: 0

Joined: 11 May 2015
Posts: 9

PostPosted: Thu May 14, 2015 1:52 am    Post subject: Reply with quote

DaSpamer wrote:
Odd that people still use this :p.
This script isn't so efficient and poorly written... you cannot verify that it managed to enable all aobs (if placing sever aobswap in a single script) and it doesn't 'undo' in case of failure...

It works just fine for personal use, where efficiency is not the biggest concern.
Yes it takes wee bit more time to attach than manually attaching in cheat engine but since it saves lots of manual labor, we are happy users of your awesome script.

Anyway, if some other efficient& recommended script is available for public use, I'd gladly switch to it Smile

Many thanks for your awesome work.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri May 15, 2015 12:06 pm    Post subject: Reply with quote

Perhaps one day I'll make a proper one Smile)
_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
Testdrive9079
How do I cheat?
Reputation: 0

Joined: 27 Jun 2015
Posts: 1

PostPosted: Sat Jun 27, 2015 10:37 am    Post subject: Reply with quote

Daspammer, can you help me. Now i need to make a trainer that i made into an EXE. Is it possible?
_________________
Beep Boop
Back to top
View user's profile Send private message
dolcepanna
Newbie cheater
Reputation: 0

Joined: 07 Jan 2013
Posts: 12

PostPosted: Wed Jul 22, 2015 10:25 am    Post subject: Reply with quote

Nice work as always Smile
_________________
Hey Hitler so do you think that being lazy will get you anything in life ?
Back to top
View user's profile Send private message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Wed Jul 22, 2015 1:04 pm    Post subject: New Design Reply with quote

Hey Daspammer Make A New Easy Trainer Maker With A New Design Smile
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Thu Jul 23, 2015 5:49 am    Post subject: Re: New Design Reply with quote

MasterHacking321 wrote:
Hey Daspammer Make A New Easy Trainer Maker With A New Design Smile

Maybe one day

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
abaddon82
How do I cheat?
Reputation: 0

Joined: 05 Aug 2015
Posts: 1

PostPosted: Wed Aug 05, 2015 1:33 am    Post subject: Reply with quote

Very interesting post this, has me keen, but all Greek to me lol
Back to top
View user's profile Send private message
ledan1962
How do I cheat?
Reputation: 0

Joined: 04 Oct 2015
Posts: 2

PostPosted: Wed Oct 07, 2015 9:20 am    Post subject: merci de m'avoir répondu Reply with quote

le probleme,c'est que je ne sais rien comprendre en englais,et en informatique encore moin.Mais j'ai vraiment besoin d'aide pour moi et mes protégés
UN GRAND MERCI
Back to top
View user's profile Send private message Send e-mail
ledan1962
How do I cheat?
Reputation: 0

Joined: 04 Oct 2015
Posts: 2

PostPosted: Thu Oct 08, 2015 9:33 am    Post subject: salut les amis Reply with quote

je dois copier mes scripts dans la fenetre Lua ,mais je ne la trouve ,pourriez vous m'aider ,ce serrait super sympa
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 8 of 10

 
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