Shaman17 Posted August 2, 2018 Share Posted August 2, 2018 Hi eone! Please some body help me. Im absolutley noob about script and lua. Look! I have 2 HEX need change this. I understand algoritm but its all. Start - Text search - HEX - enter HEX - change all - enter diff HEX - ok - search new hex - change all - ok - end. Some one can you make example? Thank you! Best regards! Link to comment Share on other sites More sharing options...
Shaman17 Posted August 10, 2018 Author Share Posted August 10, 2018 I still noob) I have text: 00 00 10 41 00 00 40 40 00 00 40 40 00 00 40 40 00 00 40 40 00 00 40 40 00 00 20 I open "gg" and choice "search text" (hex) gg searched 1 (27 adress) Change all ? OK! I push change and write this: 00 00 50 42 00 00 40 41 00 00 41 41 00 00 41 41 00 00 41 40 00 00 41 41 00 00 21 "gg " changed OK! How i write script for this ? Thank you guys! Link to comment Share on other sites More sharing options...
RCPOLSKI Posted August 2, 2018 Share Posted August 2, 2018 Are u talking about codding? Or how to use Game Guardian? Anyways... Idk if your HEX is a address or something like that. You can use gg.searchAddress or gg.searchNumber function Lookingforaaddress() gg.searchAddress('B10', 0xFF0, gg.TYPE_DWORD, gg.SIGN_NOT_EQUAL) --Looking for a address gg.getResults(10) --The amount that u wants to catch gg.editAll('000333', gg.TYPE_DWORD) --editing all results to 000333 end function Lookingforanumber() gg.searchNumber('1234', gg.TYPE_DWORD, gg.SIGN_EQUAL, -1, 0) --Looking for some address with the 1234 value gg.getResults(5) --Same thing... gg.editAll('4321', gg.TYPE_DWORD) --Editing all results to 4321 end The gg.TYPE can be AUTO, FLOAT, DOUBLE, etc... Here is an eg, about catching, editing and freezing a value that i made on my script function setlongline() if fr == 1 then gg.editAll('1081000000', gg.TYPE_DWORD) gg.searchNumber('1081000000', gg.TYPE_DWORD) t = gg.getResults(1) t[1].freeze = true t[1].freezeType = FREEZE_NORMAL gg.addListItems(t) else gg.editAll('1081000000', gg.TYPE_DWORD) end start() end function longline() if id == 1 then gg.editAll(66, gg.TYPE_DWORD) id = 0 end gg.clearResults() gg.searchNumber('1075734118', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(1) if add == 10 then add = 0 end if gg.getResultCount() == 0 then add = add + 1 longline() end setlongline() end If u wanna learn the basics of lua to code in gg, take a look here: https://gameguardian.net/help/simple_script.html I hope this help u Link to comment Share on other sites More sharing options...
Shaman17 Posted August 2, 2018 Author Share Posted August 2, 2018 Thank you! Thank you very much! How i must start script? Im not need search I have 2 numbers Text HEX 00 00 00 .............00 00........00 S0 00 ........ 00 00 .........00 I triyed : gg.searchNumbers( ) ... gg.editall ( ) ... OK. But i got error and script not working What i must write in start? gg.searchText or gg.searchHEX ? Thank you! My algoritm in GG: Open - choice App- push ○t - choice Text HEX - Write numbers - OK - GG get some result - push change all - delete and write new numbers -OK - × Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 2, 2018 Administrators Share Posted August 2, 2018 Search for text is not in the API. Look for an ordered group search for bytes of a minimum size. Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 2, 2018 Administrators Share Posted August 2, 2018 gg.searchNumber('5Ch;E3h;0Bh;4Bh;90h;9Bh;11h;7Bh::8', gg.TYPE_BYTE) -- search for HEX '5C E3 0B 4B 90 9B 11 7B' gg.searchNumber('5Ch;0~~0;0Bh;4Bh;0~~0;9Bh;11h;7Bh::8', gg.TYPE_BYTE) -- search for HEX '5C ?? 0B 4B ?? 9B 11 7B' where '??' can be any byte https://gameguardian.net/help/classgg.html#a7efd4ac7766e72688cb4a84a3915721e Link to comment Share on other sites More sharing options...
Shaman17 Posted August 18, 2018 Author Share Posted August 18, 2018 On 8/2/2018 at 7:56 PM, Enyby said: gg.searchNumber('5Ch;E3h;0Bh;4Bh;90h;9Bh;11h;7Bh::8', gg.TYPE_BYTE) -- search for HEX '5C E3 0B 4B 90 9B 11 7B' gg.searchNumber('5Ch;0~~0;0Bh;4Bh;0~~0;9Bh;11h;7Bh::8', gg.TYPE_BYTE) -- search for HEX '5C ?? 0B 4B ?? 9B 11 7B' where '??' can be any byte https://gameguardian.net/help/classgg.html#a7efd4ac7766e72688cb4a84a3915721e Hi! Tnx! But it's not what I need. Look I have some hex I need change this hex I open GG and make this (see pics): How write script for this algorithm? I checked some tutorials and GG help and not see any examples. Thank you very much for any help! Link to comment Share on other sites More sharing options...
Administrators Enyby Posted August 18, 2018 Administrators Share Posted August 18, 2018 Above I showed how to find the data. Then you find, receive and change. If you need the same as in GG - study the script of searching the lines from the downloads section independently. Link to comment Share on other sites More sharing options...
Shaman17 Posted August 19, 2018 Author Share Posted August 19, 2018 1 hour ago, Enyby said: Above I showed how to find the data. Then you find, receive and change. If you need the same as in GG - study the script of searching the lines from the downloads section independently. Ok. Thank you! Now I understood how. One more question: too long time search without "ordered" How can I add "ordered" in script. Oops! I searched how! Tnx! Link to comment Share on other sites More sharing options...
Question
Shaman17
Hi eone!
Please some body help me.
Im absolutley noob about script and lua.
Look!
I have 2 HEX need change this.
I understand algoritm but its all.
Start - Text search - HEX - enter HEX - change all - enter diff HEX - ok - search new hex - change all - ok - end.
Some one can you make example?
Thank you!
Best regards!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.