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 


CE EDIT BOX To Change String Value

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

Joined: 13 Jun 2024
Posts: 4

PostPosted: Thu Jun 13, 2024 2:19 am    Post subject: CE EDIT BOX To Change String Value Reply with quote

How to make a CEEDIT BOX change unicode String (WORDS) Ofc.


To change in real time as you edit the textbox.

Trying to make a In game service Tag Changer.
Where it says ASDF as my service tag.
I wanna change that with the CEEDIT box in real time.

But yeah I'm a little lost
Being trying to figure it out for a few hours Very Happy

Using this, but yeah.
Doesn't seem to work soo

local baseAddress = getAddress("haloreach.dll+2A03D84")<---- memory address of the Service Tag

function setServiceTag(newTag)
writeString(serviceTagAddress, newTag)
end



This is just to mess around with some mates soo



Some Help would be nice



image_2024-06-13_174832042.png
 Description:
The Service TAG in game
 Filesize:  8.47 KB
 Viewed:  1733 Time(s)

image_2024-06-13_174832042.png



image_2024-06-13_174823573.png
 Description:
The box i wanna use to change the service tag
 Filesize:  996 Bytes
 Viewed:  1733 Time(s)

image_2024-06-13_174823573.png



_________________
VK
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 462

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

PostPosted: Thu Jun 13, 2024 2:23 am    Post subject: Reply with quote

try writeString(serviceTagAddress, newTag, true)
_________________
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
FUNNYPOGS
How do I cheat?
Reputation: 0

Joined: 13 Jun 2024
Posts: 4

PostPosted: Thu Jun 13, 2024 2:52 am    Post subject: Reply with quote

Dark Byte wrote:
try writeString(serviceTagAddress, newTag, true)





What do I do as a CEEDIT1 function if I'm coming around that, cause I haven't gotten that far into making a function for it sooo

Cause if i put what you said.
There will be a error around line 3







I also tried this, my mate sent me it an said try it.
It works but with only 1 letter, if i put 2 letters in it will then crash the game.

Or the service tag shows up as ????
an the value will just be some random Symbols


CODE BELOW.
==============================
local baseAddress = getAddress("haloreach.dll+2A03D84") THE SERVICE TAG ADDRESS.
local offset = 0 -- Add offset if needed

local serviceTagAddress = baseAddress + offset

function setServiceTag(newTag)
writeString(serviceTagAddress, newTag)
end

local form = createForm(true)
local CEEdit1 = createEdit(form)
CEEdit1.Top = 10
CEEdit1.Left = 10
CEEdit1.Width = 150
CEEdit1.OnChange = function()
setServiceTag(CEEdit1.Text)
end
==============================




The max length of a service tag for the game is 4 soo.


yeah, I wanna be able to edit the full service tag as 4 letters an not just 1.



I also wanna put this on my own form that I.m gonna make. Very Happy



image_2024-06-13_182141959.png
 Description:
The Value of the memory address in the drop down looks like.

When changed also on the CEEDIT Box
 Filesize:  1.84 KB
 Viewed:  1718 Time(s)

image_2024-06-13_182141959.png



image_2024-06-13_182102161.png
 Description:
what it shows up in game as when it changed on the CEEDIT BOX
 Filesize:  11.59 KB
 Viewed:  1718 Time(s)

image_2024-06-13_182102161.png



image_2024-06-13_182037290.png
 Description:
The changed value what i want it to show up in game as
 Filesize:  829 Bytes
 Viewed:  1718 Time(s)

image_2024-06-13_182037290.png



_________________
VK
Back to top
View user's profile Send private message Send e-mail
AylinCE
Grandmaster Cheater Supreme
Reputation: 34

Joined: 16 Feb 2017
Posts: 1402

PostPosted: Thu Jun 13, 2024 3:07 am    Post subject: Reply with quote

Code:
local baseAddress = getAddress("haloreach.dll+2A03D84") --THE SERVICE TAG ADDRESS.
local offset = 0 -- Add offset if needed

local serviceTagAddress = baseAddress.."+"..offset

function setServiceTag(newTag)
writeString(serviceTagAddress, newTag, true)
end

local form = createForm(true)
local CEEdit1 = createEdit(form)
CEEdit1.Top = 10
CEEdit1.Left = 10
CEEdit1.Width = 150

local CEButton1 = createButton(form)
CEButton1.Top = 9
CEButton1.Left = 170
CEButton1.Caption="Enable"

CEButton1.OnClick = function()
  if CEEdit1.Text~="" then
    setServiceTag(CEEdit1.Text)
  end
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FUNNYPOGS
How do I cheat?
Reputation: 0

Joined: 13 Jun 2024
Posts: 4

PostPosted: Thu Jun 13, 2024 3:23 am    Post subject: Reply with quote

AylinCE wrote:
Code:
local baseAddress = getAddress("haloreach.dll+2A03D84") --THE SERVICE TAG ADDRESS.
local offset = 0 -- Add offset if needed

local serviceTagAddress = baseAddress.."+"..offset

function setServiceTag(newTag)
writeString(serviceTagAddress, newTag, true)
end

local form = createForm(true)
local CEEdit1 = createEdit(form)
CEEdit1.Top = 10
CEEdit1.Left = 10
CEEdit1.Width = 150

local CEButton1 = createButton(form)
CEButton1.Top = 9
CEButton1.Left = 170
CEButton1.Caption="Enable"

CEButton1.OnClick = function()
  if CEEdit1.Text~="" then
    setServiceTag(CEEdit1.Text)
  end
end





tried this, seems like nothing is happening at all.



image_2024-06-13_185223990.png
 Description:
 Filesize:  9.54 KB
 Viewed:  1683 Time(s)

image_2024-06-13_185223990.png



image_2024-06-13_185205728.png
 Description:
 Filesize:  1.16 KB
 Viewed:  1683 Time(s)

image_2024-06-13_185205728.png



_________________
VK
Back to top
View user's profile Send private message Send e-mail
AylinCE
Grandmaster Cheater Supreme
Reputation: 34

Joined: 16 Feb 2017
Posts: 1402

PostPosted: Thu Jun 13, 2024 4:16 am    Post subject: Reply with quote

This works in my case!
Make sure you have the final address correct.
And try the code again.

Code:
function setServiceTag(newTag)
local baseAddress = getAddress("haloreach.dll+2A03D84") --THE SERVICE TAG ADDRESS.
local offset = "0" -- Add offset if needed --> string

local serviceTagAddress = baseAddress.."+"..offset
writeString(serviceTagAddress, newTag)
end

local form = createForm(true)
local CEEdit1 = createEdit(form)
CEEdit1.Top = 10
CEEdit1.Left = 10
CEEdit1.Width = 150

local CEButton1 = createButton(form)
CEButton1.Top = 9
CEButton1.Left = 170
CEButton1.Caption="Enable"

CEButton1.OnClick = function()
  if CEEdit1.Text~="" then
    setServiceTag(CEEdit1.Text)
  end
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FUNNYPOGS
How do I cheat?
Reputation: 0

Joined: 13 Jun 2024
Posts: 4

PostPosted: Fri Jun 14, 2024 6:08 am    Post subject: Reply with quote

AylinCE wrote:
This works in my case!
Make sure you have the final address correct.
And try the code again.

Code:
function setServiceTag(newTag)
local baseAddress = getAddress("haloreach.dll+2A03D84") --THE SERVICE TAG ADDRESS.
local offset = "0" -- Add offset if needed --> string

local serviceTagAddress = baseAddress.."+"..offset
writeString(serviceTagAddress, newTag)
end

local form = createForm(true)
local CEEdit1 = createEdit(form)
CEEdit1.Top = 10
CEEdit1.Left = 10
CEEdit1.Width = 150

local CEButton1 = createButton(form)
CEButton1.Top = 9
CEButton1.Left = 170
CEButton1.Caption="Enable"

CEButton1.OnClick = function()
  if CEEdit1.Text~="" then
    setServiceTag(CEEdit1.Text)
  end
end




I'll give this a try again.

_________________
VK
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 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