Jump to content
  • 0

How to Change this String with gameguardian?


douglaspo
 Share

Question

2 answers to this question

Recommended Posts

  • 0

Hi @douglaspo, you can use: GGIL2CPP and use this to change strings:

require("Il2cppApi")
Il2cpp()

classes = Il2cpp.FindClass( {{Class = your_class_name,  MethodsDump = true, FieldsDump = true}} )
for k, v in ipairs(classes) do
	for k, v in ipairs(v) do
		if v.Fields then
			if v:GetFieldWithName(your_field_name) then
				objects = Il2cpp.FindObject({tonumber(v.ClassAddress, 16)})
				for m, objects in ipairs(objects) do
					for i = 1, #objects do
						str = Il2cpp.String.From(objects[i].address + tonumber(v:GetFieldWithName(your_field_name).Offset, 16))
						if str then
							str:EditString(your_string)
						end
					end
				end
			end
		end
	end
end

Dont forget to adjust these yourself:

  • - "your_class_name"
  • - "your_field_name"
  • - "your_string"
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.