Jump to content
  • 0

Save list problem


Question

Posted

i have question, So the script have ON/OFF, turn ON Button is good, but When i try to REVERT With OFF button, its so delay like 1minute+/- to revert the values in SAVE LIST the problem is when i click OFF button there have delay idk why i didnt put gg.sleep('')

**Can you gimme example how to REVERT Values on save list in lua script**  

i already put this file for example, its work but when i put into Menu ON/OFF the problem at OFF Menu

As you can see at the picture (i try to Edit and Revert on save list) but idk the script **gimme example pls**

**↓↓I try this code for Menu ON↓↓**

revert = gg.getListItems(1)
rev = gg.getListItems(6)
t = gg.getListItems(10)
for i, v in ipairs(t) do
	v.flags = gg.TYPE_DWORD 
		v.value = 5
	end
	gg.setValues(t) 
	

AND

**↓↓i use this code for Menu OFF↓↓**

gg.setValues(revert)
gg.setValues(rev)

 

Screenshot_20191223-134006.jpg

Mwhwhhehe.lua

13 answers to this question

Recommended Posts

  • 0
  • Administrators
Posted

Perhaps the game caches data and updates them when focus is lost. What does not happen when you use the script, without an input field. Try adding a call with an input field to the script code.

  • 0
Posted
14 minutes ago, Enyby said:

Perhaps the game caches data and updates them when focus is lost. What does not happen when you use the script, without an input field. Try adding a call with an input field to the script code.

hmm can be specific, I think everything is good rn after i found how to edit n revert code in save list, BUT i still dont know why,when i try to REVERT with Script its delay and when i try with manual Revert there no delay, hmmm

  • 0
Posted
3 hours ago, Enyby said:

gg.prompt for example.

hmm hold up, i just forgot so can you explain wht hppn, so point in video IF i didnt save the value its work like manual but if i save the value and revert there have delay, and i just relize if on save list the edited value changed into random number idk why,

**can u explain this?**

@Enyby

 

  • 0
Posted (edited)
5 minutes ago, Enyby said:

What value in this your option?

scr_1577283740.png

[added 0 minutes later]

Also we do not support 87.8 anymore. Use 88.0.

i didnt chnge anything just memory ranges, C.heap and C.alloc

Screenshot_20191225-212619.jpg

Edited by MilkyGT
ill try 88. wht if same like that, a minute a ago i try to make sure but yeaa, when value didnt save its normal and no delay and when i try to save and edit&revert with script have delay and values chnged to random number hmm
  • 0
Posted
23 hours ago, Enyby said:

I check it on weekend.

ok, but wait i just got some news,

is it normal when search value and saved value have different number on same value? this is also wht i mean the save list value chnge into random number, idk wht happn and it shouldn't be like this, or is it normal? **i dont think so** 

(can you explain this?) @Enyby

Screenshot_20191226-194355.jpg

Screenshot_20191226-194358.jpg

  • 0
Posted
20 hours ago, Enyby said:

Different type. Word and Dword.

ohh wait i think im wrong*maybe* save list is fine and normal, i just relize when i using script save list revert is delay (with script) right,but while delay hppn i try to exit from script and then item just took 

** can you explain this? @Enyby **

and help me solve this problem whts wrong and wht should i do?

yaa when i try with script revert is delay and when i am exit from script its just took from me here the video↓↓↓

  • 0
  • Administrators
Posted

You use sleep

изображение.png

For me no any problem

gg.setVisible(false)
while true do
	if gg.isVisible() then
		gg.setVisible(false)
		local v = gg.alert('Action?', 'ON', 'OFF', 'EXIT')
		if v == 1 then
			revert = gg.getListItems(1)
			rev = gg.getListItems(6)
			t = gg.getListItems(10)
			for i, v in ipairs(t) do
				v.flags = gg.TYPE_DWORD 
				v.value = 5
			end
			gg.setValues(t)
		elseif v == 2 then
			gg.setValues(revert)
			gg.setValues(rev)
		else
			gg.setVisible(true)
			return
		end
	else
		gg.sleep(100)
	end
end

 

  • 0
Posted
On 12/30/2019 at 8:02 AM, Enyby said:

You use sleep

изображение.png

For me no any problem


gg.setVisible(false)
while true do
	if gg.isVisible() then
		gg.setVisible(false)
		local v = gg.alert('Action?', 'ON', 'OFF', 'EXIT')
		if v == 1 then
			revert = gg.getListItems(1)
			rev = gg.getListItems(6)
			t = gg.getListItems(10)
			for i, v in ipairs(t) do
				v.flags = gg.TYPE_DWORD 
				v.value = 5
			end
			gg.setValues(t)
		elseif v == 2 then
			gg.setValues(revert)
			gg.setValues(rev)
		else
			gg.setVisible(true)
			return
		end
	else
		gg.sleep(100)
	end
end

 

ohh okok, i still try to find *why*, and i think the value is the problem but on the other side its like system problem(game guardian),ahhh my head explode mhahaha , my bad i didnt say the value is keep changing everytime i walk(move in game) *its normal i think bcus* yaa is it BUT in my head still have this question ##Why when i try to revert WITH script its delay and when i try revert MANUALLY,Its work and no problem(delay)?## yaa i try with VALUE Didnt changing everytime, its work with script, but idk why hahaha with value changing its delay when with script and wasnt with manual, ahhhh its make me stressful hahahah 

 

 

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