Hi, I'm making a useless value remover script for a game. It's working well, but I have two things I want to add but am having troubles with.
Problem 1 (RESOLVED).
The script is designed only for dword values, so I want it to ignore any values that aren't dword. I don't know how to get data type, though. When I use
gg.alert(tostring(gg.getResults(99999)[1]))
it returns what the first picture attached shows - a table with the address, flags, and value. I notice the flags are 4,-gg,TYPE_DWORD - the gg.TYPE_DWORD is what I want.
However, when I try to index the flags, with this code
gg.alert(gg.getResults(99999)[1].flags)
it only returns the 4 (as seen in image 2). And even if it did, I don't just want the 4, I want the data type only.
So how do I get the data type? I was thinking that maybe I could use the first piece of code, and do string comparison to see if it contains "gg.TYPE_DWORD". This way seems slow and inefficient and a pain to code, though - is there a better way?
Problem 2.
My script takes all the values from the current search results, and my goal is for it to replace the search results with the new search results. The original search results would look like image 3. My script then takes the results and puts them into an array called "cleansed", and does some searches to see what is useless and what isn't. There are originally about 1300 results, as shown in picture 3, and I want there to about 650 results, consisting of only useful values, as shown in picture 4. My array "cleansed" looks like image 4, with only about 650 results.
But how do I set the search results cleansed? gg.setValues(cleansed) does not work for me as it is only for setting the values of the current results. I want to change the results.
Is there another way to do this? I had the idea of searching the address of each item, but even this would not work. I want all 650 results at once, in the search results tab.
Using "selected as search result" works. Is there a command for this?
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.
Question
HorridModz
Hi, I'm making a useless value remover script for a game. It's working well, but I have two things I want to add but am having troubles with.
Problem 1 (RESOLVED).
The script is designed only for dword values, so I want it to ignore any values that aren't dword. I don't know how to get data type, though. When I use
it returns what the first picture attached shows - a table with the address, flags, and value. I notice the flags are 4,-gg,TYPE_DWORD - the gg.TYPE_DWORD is what I want.
However, when I try to index the flags, with this code
it only returns the 4 (as seen in image 2). And even if it did, I don't just want the 4, I want the data type only.
So how do I get the data type? I was thinking that maybe I could use the first piece of code, and do string comparison to see if it contains "gg.TYPE_DWORD". This way seems slow and inefficient and a pain to code, though - is there a better way?
Problem 2.
My script takes all the values from the current search results, and my goal is for it to replace the search results with the new search results. The original search results would look like image 3. My script then takes the results and puts them into an array called "cleansed", and does some searches to see what is useless and what isn't. There are originally about 1300 results, as shown in picture 3, and I want there to about 650 results, consisting of only useful values, as shown in picture 4. My array "cleansed" looks like image 4, with only about 650 results.
But how do I set the search results cleansed? gg.setValues(cleansed) does not work for me as it is only for setting the values of the current results. I want to change the results.
Is there another way to do this? I had the idea of searching the address of each item, but even this would not work. I want all 650 results at once, in the search results tab.
Using "selected as search result" works. Is there a command for this?
Thanks for reading!
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.