Jump to content
  • 0

Record script didn't work


Question

Posted (edited)

I just used the record script feature, after I finished using it but the script didn't work

This is the script

 

testsssss

testsssss

 

Pls someone fix the script 

Edited by BaldiGT

Recommended Posts

  • 0
  • Administrators
Posted

What not work? All work. All possible actions recorded to script.

Uploaded file correctly run as lua script. No any problem.

Of course if you make bullshit actions, then nothing useful in recorded script. But it is problem of your actions, not in record script feature.

  • 0
Posted
1 minute ago, Enyby said:

What not work? All work. All possible actions recorded to script.

Uploaded file correctly run as lua script. No any problem.

Of course if you make bull**** actions, then nothing useful in recorded script. But it is problem of your actions, not in record script feature.

Im trying to add some value in save list and try to edit thats value in save list but the script is not working.......just add some value.....the script didn't edit the value in save list

#ripenglish

_______________________________________________
added 4 minutes later
6 minutes ago, Enyby said:

What not work? All work. All possible actions recorded to script.

Uploaded file correctly run as lua script. No any problem.

Of course if you make bull**** actions, then nothing useful in recorded script. But it is problem of your actions, not in record script feature.

U can look in the script

testsssss

Or need a video?

  • 0
  • Administrators
Posted
13 minutes ago, Enyby said:

All possible actions recorded to script.

If you try edit some values from list, then this can not be recorded. Only if you edit all.

It is not silver bullet. It is record only few actions which always mean same things.

If you try edit 3th item in saved list, then now it works, but after reload game desired item can be not 3th, but 2th. So. this actions not record.

In any case record script is very simple tool. If you need something more - you learn API, lua and write script manually.

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

If you try edit some values from list, then this can not be recorded. Only if you edit all.

It is not silver bullet. It is record only few actions which always mean same things.

If you try edit 3th item in saved list, then now it works, but after reload game desired item can be not 3th, but 2th. So. this actions not record.

In any case record script is very simple tool. If you need something more - you learn API, lua and write script 

-- Script generated by GameGuardian 73.9 (14080) at 2019-03-09 12:48:45 for Growtopia [com.rtsoft.growtopia 2.988 (197)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for Growtopia 2.988]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[Growtopia]=====]
local targetPkg = 'com.rtsoft.growtopia'
local targetVersion = [=====[2.988]=====]
local targetBuild = 197

-- functions

-- init
gg.require('73.9', 14080)

if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)

if checkTarget ~= 0 then
	local info = gg.getTargetInfo()
	local check = false
	local current = false
	if checkTarget >= 1 then
		check = targetPkg
		current = info.packageName
	end
	if checkTarget >= 2 then
		check = check..' '..targetVersion..' ('..targetBuild..')'
		current = current..' '..info.versionName..' ('..info.versionCode..')'
	end
	if check ~= current then
		gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
		os.exit()
	end
end
local revert = nil

-- main code
gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()

local t = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(t)
t = nil


gg.clearResults()

revert = gg.getListItems()
local t = gg.getListItems()
for i, v in ipairs(t) do
	if v.flags == gg.TYPE_DWORD then
		v.value = 1
		v.freeze = false
		v.freezeType = gg.FREEZE_NORMAL
	end
end
gg.addListItems(t)
t = nil

 

Edited by BaldiGT
From record script
  • 0
  • Administrators
Posted
13 minutes ago, Enyby said:

If you try edit some values from list, then this can not be recorded. Only if you edit all.

It is not silver bullet. It is record only few actions which always mean same things.

If you try edit 3th item in saved list, then now it works, but after reload game desired item can be not 3th, but 2th. So. this actions not record.

In any case record script is very simple tool. If you need something more - you learn API, lua and write script manually.

 

  • 0
Posted
15 minutes ago, Enyby said:

 

Seriously i cant use the script from record script..or you can fix this script manual

-- Script generated by GameGuardian 73.9 (14080) at 2019-03-09 12:48:45 for Growtopia [com.rtsoft.growtopia 2.988 (197)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for Growtopia 2.988]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[Growtopia]=====]
local targetPkg = 'com.rtsoft.growtopia'
local targetVersion = [=====[2.988]=====]
local targetBuild = 197

-- functions

-- init
gg.require('73.9', 14080)

if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)

if checkTarget ~= 0 then
	local info = gg.getTargetInfo()
	local check = false
	local current = false
	if checkTarget >= 1 then
		check = targetPkg
		current = info.packageName
	end
	if checkTarget >= 2 then
		check = check..' '..targetVersion..' ('..targetBuild..')'
		current = current..' '..info.versionName..' ('..info.versionCode..')'
	end
	if check ~= current then
		gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
		os.exit()
	end
end
local revert = nil

-- main code
gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()

local t = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(t)
t = nil


gg.clearResults()

revert = gg.getListItems()
local t = gg.getListItems()
for i, v in ipairs(t) do
	if v.flags == gg.TYPE_DWORD then
		v.value = 1
		v.freeze = false
		v.freezeType = gg.FREEZE_NORMAL
	end
end
gg.addListItems(t)
t = nil

 

  • 0
  • Administrators
Posted
49 minutes ago, Enyby said:
1 hour ago, Enyby said:

All possible actions recorded to script.

If you try edit some values from list, then this can not be recorded. Only if you edit all.

It is not silver bullet. It is record only few actions which always mean same things.

If you try edit 3th item in saved list, then now it works, but after reload game desired item can be not 3th, but 2th. So. this actions not record.

In any case record script is very simple tool. If you need something more - you learn API, lua and write script manually.

 

  • 0
Posted

please give 1 sample script code to edit in the save list and I will learn the code

7 minutes ago, Enyby said:

 

 

  • 0
Posted (edited)
11 minutes ago, BaldiGT said:

pls gime 1 example script

Example scripts for your task are present everywhere.

To change the value you need to use "setValues" function. Therefore, your next action may be checking the documentation (and the examples of usage) for this function in GG help. If it will be not enough, then you can search function name in the forum, you will find even more examples. Still not enough? No problem. Check open-source scripts. Considering that tasks similar to yours are quite common, it should not be hard to find suitable example. The only question is have you even tried to do it.

Edited by CmP
  • 0
Posted
5 minutes ago, CmP said:

Example scripts for your task are present everywhere.

To change the value you need to use "setValues" function. Therefore, your next action may be checking the documentation (and the examples of usage) for this function in GG help. If it will be not enough, then you can search function name in the forum, you will find even more examples. Still not enough? No problem. Check open-source scripts. Considering that tasks similar to your are quite common, there should not be hard to find an example. The question is have you even tried..

Seriously i even don't understand..pls give me 1 example for the code..and ill study the script.....pls........

  • 0
Posted
19 minutes ago, DESYROLLERSE said:

gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

local t = gg.getResults(10)
gg.addListItems(t)
gg.clearResults()


for i, v in ipairs(t) do
	v.flags = gg.TYPE_DWORD 
		v.value = 1
	end
	gg.setValues(t)

I know very little about (lua) but.

see how easy it is to save and edit.

with this you look for your values and they are saved ....


gg.searchNumber(99, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

local t = gg.getResults(10)
gg.addListItems(t)

and with this, clean the results ...

and edit the values that you have saved.

automatically


gg.clearResults()

for i, v in ipairs(t) do
	v.flags = gg.TYPE_DWORD 
		v.value = 1
	end
	gg.setValues(t)

that easy ..... hopefully more willing people to give examples ...

In that way we will learn faster.

old, when copying and pasting the code red dots are added that do not allow the script to run. if that happens to you .... press in the comments this button <> and paste the code. in this way you can erase those red dots. ✌

 

please administrators fix that spam problem .... ???

1024 files in my internal storage in seconds ...????

Ty bro you are awesome ...but how to revert selected in save list with script

  • 0
Posted (edited)
39 minutes ago, BaldiGT said:

Ty bro you are awesome ...but how to revert selected in save list with script

Up this thread  how to revert  selected in save list with script

Edited by Zeroblue
  • 0
Posted
45 minutes ago, BaldiGT said:

Ty bro you are awesome ...but how to revert selected in save list with script

Up ... I'm curious and also need the code

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.