Jump to content
  • 0

How can i load the saved value?


Enzo_Funny_Gamer

Question

Save method  = [[

gg.searchNumber("10",4)
V = gg.getResults(1)
save = gg.getFile().."ValueSaved"
print("saved to:"..save.." ")
gg.saveVariable(V,save)
gg.setVisible(true)
gg.alert("saved to:"..save.."')

]]

The value gets saved in the file "save"

How can i load it?

Am making this post on mobile so i cant realy type every word on line

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

17 hours ago, Enzo_Funny_Gamer said:

I want to save a teleport value by offset

The editing the value from the file but not knowing what value it is

I don't understand, be more clear please

Link to comment
Share on other sites

3 hours ago, MAARS said:

I don't understand, be more clear please

gg.searchNumber("..teleport value..",gg.TYPE_QWORD)

resultsCount = 2

results = gg.getResults(resultsCount)

for i = 1, resultsCount do

gg.setValues({

[1] = {

address = results.address - 70

flags = 4

value = "i want to save the value whitout knowing the value"

}

})

end

 

value = "i want to save the value by the gg.saveVariable() method" then get it out the file then

gg.searchNumber("..teleport value..",gg.TYPE_QWORD)

resultsCount = 2

results = gg.getResults(resultsCount)

for i = 1, resultsCount do

gg.setValues({

[1] = {

address = results.address - 70

flags = 4

value = "saved value"

}

})

end

 

 

Link to comment
Share on other sites

local v = {}
local v[1] = {}
v[1].address = results.address - 70
v[1].flags = 4

--  Use the function gg.getValues to get offset value
v = gg.getValues(v)

and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70

Link to comment
Share on other sites

7 minutes ago, MAARS said:

local v = {}
local v[1] = {}
v[1].address = results.address - 70
v[1].flags = 4

--  Use the function gg.getValues to get offset value
v = gg.getValues(v)

and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70

Thanks il do my best to work it out

Link to comment
Share on other sites

On 7/31/2021 at 9:02 PM, MAARS said:
local v = {}
local v[1] = {}
v[1].address = results.address - 70
v[1].flags = 4

--  Use the function gg.getValues to get offset value
v = gg.getValues(v)

and about you offset 70 if it is actual hexadecimal you should put 0x70 instead of 70

thanks ut i cant edit the recent value that is saved whit offset i tried everything it only loads the values i saved 3 but i get 1

Link to comment
Share on other sites

3 hours ago, Enzo_Funny_Gamer said:

Save method  = [[

gg.searchNumber("10",4)
V = gg.getResults(1)
save = gg.getFile().."ValueSaved"
print("saved to:"..save.." ")
gg.saveVariable(V,save)
gg.setVisible(true)
gg.alert("saved to:"..save.."')

]]

The value gets saved in the file "save"

How can i load it?

Am making this post on mobile so i cant realy type every word on line

When you restart the game address change so the value will be for sure in the wrong address, so if you are saving the value you should use them only in the current session

local v = loadfile(save);
local values = v and v() or nil;

if values then gg.loadResults(values)
else
    gg.alert('Failed to load results')
end

 

Link to comment
Share on other sites

3 hours ago, MAARS said:

When you restart the game address change so the value will be for sure in the wrong address, so if you are saving the value you should use them only in the current session


local v = loadfile(save);
local values = v and v() or nil;

if values then gg.loadResults(values)
else
    gg.alert('Failed to load results')
end

 

I want to save a teleport value by offset

The editing the value from the file but not knowing what value it is

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.