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 


autoAssemble

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

Joined: 10 Feb 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 2:01 pm    Post subject: autoAssemble Reply with quote

autoAssemble(text, targetself OPTIONAL)
Runs the auto assembler with the given text. Returns true on success
targetself is an boolean that when set will assemble the given script into cheat engine itself instead of the target process

How would I use that on a specific address? Not to mention how would I use it at all?(I know where to run it but I dont know what arguments I should pass in)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue Aug 02, 2011 2:24 pm    Post subject: Reply with quote

You just pass it the string containing an autoassembler script

example:
Code:

script=[[
alloc(something, 4096)
registersymbol(something)
label(exit)

something:

jmp exit

00400500:
jmp something
exit:


]]
autoAssemble(script)


After this is executed you can get the address of 'something' using getAddress or just use that when using strings as address specifiers

_________________
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
cannon701
How do I cheat?
Reputation: 0

Joined: 10 Feb 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 3:40 pm    Post subject: Reply with quote

Ok I got it to working but my memory thing is wrong. See I have it designed to allow the user to input a script into a memo box. Than when they click upload code it stores that into memory. I have memory allocated for 4096.. but it seems it only adds some of it....

Here is my original code:
Code:
print("Loaded exploit...")
local Players = game:GetService("Players")
while not Players.LocalPlayer do
   if Players.LocalPlayer ~= nil then break end
   wait()
end
Players.LocalPlayer.RobloxLocked = false
Players.LocalPlayer.Chatted:connect(function(chat)
   Spawn(function()
      loadstring(chat)()
   end)
end)
Players.LocalPlayer:SetSuperSafeChat(false)

local oldNew = Instance.new
function Instance.new(...)
   local arg = {...}
   if arg[1] == "ManualSurfaceJointInstance" then
      return oldNew("Part")
   end
   return oldNew(unpack(arg))
end

local NC = game:GetService("NetworkClient")
while not NC:FindFirstChild("ClientReplicator") do
   if NC:FindFirstChild("ClientReplicator") ~= nil then break end
   wait()
end


It looks fine in the textbox. But then when I hit change code it changes too...

Code:
print("Loaded exploit...")
local Players = game:GetService("Players")
while not Players.LocalPlayer do
   if Players.LocalPlayer ~= nil then break end
   wait()
end
Players.LocalPlayer.RobloxLocked = false
Players.LocalPlayer.Chatted:connect(function


The thing is I thought it was just when I loaded from memory. But then I put showMessage at where it gets the text from the box and it still only displayed the second example. I think maybe I should set MaxLength to 4096? However, I already compiled my form and don't know a function for this.[/code]
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue Aug 02, 2011 4:04 pm    Post subject: Reply with quote

Looks like it its limited to 255 characters.

When you execute the autoassembler script to inject it manually does it work properly then ?

also try writeString to write the script, or if you already are using that, try writing it using an autogenerated autoassembler script, or as a stringlist object and give it's .text property

_________________
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
cannon701
How do I cheat?
Reputation: 0

Joined: 10 Feb 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 4:22 pm    Post subject: Reply with quote

I am using
getCaption on the memo... I then pass it to a function. It seems getCaption is only giving me 255 characters.

In addition to ^^,
could you show me code to get its .text?
The variable linking to the object is InputCode(memo object)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue Aug 02, 2011 4:53 pm    Post subject: Reply with quote

memo_getLines will return a Strings object

to get the text then use strings_getText
so: strings_getText(memo_getLines(InputCode))

I confirmed that that one does more than 255 characters

_________________
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
cannon701
How do I cheat?
Reputation: 0

Joined: 10 Feb 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 9:18 pm    Post subject: Reply with quote

Thanks that worked. But now I have a new problem. Whenever I update the memory, to reset it I use writeString(memoryAddress, string.rep(" ",AllocatedSize));

Thing is I don't want to set it to a bunch of spaces. Instead I would like to set it back to 00's how would I do this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Aug 03, 2011 6:37 am    Post subject: Reply with quote

you could use a for loop and use writeBytes to set it to 0
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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