-
Posts
8,811 -
Joined
-
Last visited
-
Days Won
1,012
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Enyby
-
-
Strictly speaking fastest is reuse results table:
local results = gg.getResults(5000) for i, v in ipairs(results) do if v.value == 1014350479 then v.value = 1011011011 elseif v.value == 1050253722 or v.value == 1031127695 then v.value = 1 else results[i] = nil end end gg.setValues(results) results = nil
4 -
1 minute ago, CmP said:
edited[#edited + 1] = {address = v.address, flags = v.flags, value = 1011011011}
better:
v.value = 1011011011 edited[#edited + 1] = v
do not waste time and memory for duplicate same table.
2 -
38 minutes ago, ItsSC said:
gg.searchNumber("1014350479;1050253722;1031127695",4)-- refine the three values that you want to edit
gg.editAll("1011011011;1;1",4) -- edit all of them individually
Search not ordered, so order can be any and this code not work properly.
This is not even taking into account the fact that there may be duplicates of the same values in a row.
[added 1 minute later]38 minutes ago, ThienTeakee said:I want to find a shortcut
Iterate over results, build table and pass it to setValues.
Best solution if you have small amount of results.
2 -
-
No. No.
You need read API help. Do some small examples, use record script feature and so on. Al of these described in help and on forum.
1 -
Dot decimal separator. So '1.014.350.479' is not a valid number.
For change one value from group search need do refine search and editAll after that.
Or load all values and work with it in loop. Use 'if' and 'setValues'.
3 -
It is not a lua script.
1 -
- Popular Post
- Popular Post
So that the developer does not close the vulnerability, the game will not be named, and some of the information that allows to identify the game will be changed.
The game is quite popular - more than 1 million installations.
The game is an RPG. There is PvP mode, there are local companies, many different currencies.
Everything is on the server, but the battles themselves are turn-based and are calculated locally.
This is the possibility of hacking.In battle, coins may fall out of the rivals.
The maximum number of coins per battle is limited and written directly on the screen.
This is 240 coins.Also, for killing each opponent’s troops they give a stone.
In total there can be up to 8 troops. However, part of the troops may be called up by other troops, so it is impossible to say unequivocally how many stones will be received in battle.
But, more often than not, there is no appeal, so there are 8 stones per battle.The maximum number of stones per battle is limited and is 120.
Each part of the company contains about 30 battles.
Values in memory are not protected.
Therefore, starting the battle, it is possible by direct search to find 2 values in memory for gold and 3 for stones.
They always have the same offset relative to each other.
Gold is easier to find, stones are harder. But once finding a mutual displacement. You can make a saved list with the necessary data.
Next, we find the value of gold, we consider the offset between the past and current address and use the relocation to get the addresses of the stones.
This can also be done through a script, or through an offset calculator.In fact, the game reuses memory, so the addresses between the battles remain the same almost always.
For about 100 battles, only twice was it necessary to do a rebase.After the value is found, we change the value of gold and stones to a maximum of-1. 239 coins and 119 stones. And then we collect some more gold and stones so that the game updates its data everywhere.
As a result, the maximum possible number of resources comes from one battle.
Experience points are a bonus. They are calculated based on the collected stones.
Therefore, after each battle there is an increase in the level of the hero.
And each level increase gives bonuses.Thus, you can level up the hero very quickly.
The hero’s leveling speed is 10-20 times higher, since we get a level increase for each battle, while the level of opponents grows at a normal speed.
Therefore, each subsequent battle is simpler and simpler.And all this works, despite the fact that the game is server-based and almost everything is on the server.
13 -
GameGuardian
in Apps
Need logcat from issue.
Gathering information about GG errors (#9ggo57t)Usually it happens if you use your sdcard as extended internal memory.
This is cause of bad work of any virtual space.
2 -
If this not work then this problem of your firmware or some apps/settings on it. Nothing can be done from app side.
2 -
You do it wrong. Do only reset. And check toasts.
[added 4 minutes later]And yes, I think you not try, because you not mention that and I am not a telepath.
2 -
Start GG - Fix it - Reset the type of floating windows.
Or
Start GG - Fix it - Select the type of floating windows.- and choose one of color squares and tet again. If not suit you - choose another until find one.
1 -
18 hours ago, Enyby said:
apparently you set yourself the type of windows that appears on top of the toasts.
1 -
I do not understand the essence of your problem. As I said, write down the points:
- What you do,
- where you clicked,
- what you expected,
- what you got, .
1 -
I didn’t understand anything, but apparently you set yourself the type of windows that appears on top of the toasts.
1 -
Describe the problem in text. What you do, where you clicked, what you expected, what you got, .
[added 1 minute later]And do not record videos with a height greater than 1080 pixels - then its are difficult to watch.
1 -
No any mistake at all.
getFile return only filename. You need use io functions for load content from file.
If you load script from string instead of filename then used string of script source, usually truncated by length.
3 -
-
You must define functions before call it. Not after.
2 -
GameGuardian
in Apps
It is necessary to allow for parallel space and not for gg.
Or your firmware incorrectly reports the permission status.2 -
You use sleep
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
3 -
I can not help you. GG implementation details are not public information.
4 -
Different type. Word and Dword.
2 -
How to group values to edit in a search?
in Help
Posted
better use ipairs for speed. or you need make local variable for store
. Index over table is not a free. Better use it one time per loop iteration if it is possible.
Already do it for you.