starkshadow Posted November 3, 2023 Posted November 3, 2023 Hi ,how to use gg.internal3()? I've read all function document, but haven't seen internal3? and I also find it in chainer0.46 file
Count_Nosferatu Posted November 3, 2023 Posted November 3, 2023 I think this is a check of argument type, if it integer is true, if not then an error. print(gg.internal3(0)) --> true print(gg.internal3(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) --> true print(gg.internal3(2023)) --> true print(gg.internal3(Zanzibar)) --> Error --> .. --> `print(gg.internal3(Zanzibar))` --> bad argument #1: nil: int expected, got nil (field 'internal3') --> ..
CmP Posted November 3, 2023 Posted November 3, 2023 This function has been later made available as part of GG public API - searchPointer. "gg.internal3" and "gg.searchPointer" are exactly the same function, it's just that it was first an experiment, so started as internal function. By the time of last update of chainer script, "searchPointer" function hasn't existed yet, that's why it isn't used there.
Count_Nosferatu Posted November 3, 2023 Posted November 3, 2023 1 hour ago, CmP said: "gg.internal3" and "gg.searchPointer" are exactly the same function, Ok, what about "gg.internai1" & "gg.internai2" ?
CmP Posted November 3, 2023 Posted November 3, 2023 I recommend you to grab jadx (or other similar tool) and check how those functions are implemented in GG. There you will also find confirmation that "gg.internal3" and "gg.searchPointer" do exactly the same. If there will be difficulties, ask here or in new topic.
Count_Nosferatu Posted November 4, 2023 Posted November 4, 2023 15 hours ago, CmP said: I recommend you to grab jadx (or other similar tool) Thanks for the advice, but dealing with decompiled programs is not my thing. It's easier for me to look at errors when running scripts. gg.internal1(1122) results like execute gg.searchNumber(':1122',, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1, 0) gg.internal1(0xFFFF) results like execute gg.searchNumber(':65536',, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1, 0) gg.internal1('qwerty') results like execute gg.searchNumber(':qwerty',, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1, 0) gg.internal1(qwerty)) Error ..` bad argument #1: nil: string expected, got nil (field 'internal1') .. gg.internal2() Error... bad argument #1 to 'gg.internal2' (no value: closure expected, got nil) (field 'internal2') ... gg.internal2(100) Error... bad argument #1 to 'gg.internal2' (number: closure expected, got number) (field 'internal2') ... gg.internal2(nil) Error... bad argument #1 to 'gg.internal2' (nil: closure expected, got nil) (field 'internal2') ... gg.internal3(true) Error... bad argument #1: boolean: int expected, got boolean (field 'internal3') ... gg.internal2('qwerty') Error... bad argument #1 to 'gg.internal2' (string: closure expected, got string) (field 'internal2') ...
starkshadow Posted November 30, 2023 Author Posted November 30, 2023 On 11/4/2023 at 3:28 AM, CmP said: This function has been later made available as part of GG public API - searchPointer. "gg.internal3" and "gg.searchPointer" are exactly the same function, it's just that it was first an experiment, so started as internal function. By the time of last update of chainer script, "searchPointer" function hasn't existed yet, that's why it isn't used there. ditto, "gg.internal3" and "gg.searchPointer" are exactly the same function.
Question
starkshadow
Hi ,how to use gg.internal3()? I've read all function document, but haven't seen internal3? and I also find it in chainer0.46 file
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.