Help! CreateString more arguments.

Kaorin333

Solid & Active Platinian
Original poster
Jun 11, 2022
89
9
8
34
Germany
Hey i would like to know if anyone can tell me whats the fix for CreateString(sbyte) if it doesnt exist.

Thank you for the help.

C++:
    // RVA: 0x2CDD134 Offset: 0x2CDD134 VA: 0x2CDD134
    private string CreateString(sbyte* value, int startIndex, int length) { }

    // RVA: 0x2CDEC74 Offset: 0x2CDEC74 VA: 0x2CDEC74
    private string CreateString(char* value, int startIndex, int length) { }

    // RVA: 0x2CDEC84 Offset: 0x2CDEC84 VA: 0x2CDEC84
    private string CreateString(char[] val, int startIndex, int length) { }

    // RVA: 0x2CD3458 Offset: 0x2CD3458 VA: 0x2CD3458
    private string CreateString(char[] val) { }

    // RVA: 0x2CDEC94 Offset: 0x2CDEC94 VA: 0x2CDEC94
    private string CreateString(char c, int count) { }

    // RVA: 0x2CDECA0 Offset: 0x2CDECA0 VA: 0x2CDECA0
    private string CreateString(sbyte* value, int startIndex, int length, Encoding enc) { }
 

Slushball

Rookie
Apr 3, 2021
3
0
1
23
Hdhe
Did you ever find a solution? if so can you provide it here!!
Update: I tried this earlier and for me it didn’t work I’m IOS btw
 
Jun 14, 2023
2
1
3
North America
Did you ever find a solution? if so can you provide it here!!
Update: I tried this earlier and for me it didn’t work I’m IOS btw
Kinda late but this worked for me. If you want, just delete the comments.
C++:
monoString *(*String_CreateString)(void *_this, const char *str, int startIndex, int length);
void (*get_StringInstance);

String_CreateString = (monoString*(*)(void *,const char *, int startIndex, int length))getAbsoluteAddress(targetLibName, offset /*CreateString(sbyte* value, int startIndex, int length)*/);
   get_StringInstance  = (void (*))getAbsoluteAddress(targetLibName, offset /*CreateString(sbyte* value, int startIndex, int length)*/);

//Example
monoString* (*old_Update)(void *instance);
monoString* UpdateMod(void *instance) {
    if (instance != NULL) {
        if (character) {
        return String_CreateString(get_StringInstance, "Snowman", 0, 7);
        }
    }
    return old_Update(instance);
}
 

libModz

Awesome Active Platinian
Jun 2, 2022
174
30
28
UK
C++:
monoString;
    monoString *CreateString(const char *str) {
    monoString *(*CreateString)(void *_this, const char *str, int start, int length) = (monoString *(*)(void *, const char *, int, int))getAbsoluteAddress("libil2cpp.so", 0xOFFSET);
    int length = (int)strlen(str);
    return CreateString(NULL, str, 0, length);
   
}


// Example

monoString* (*old_PlayFabService_BackendPlayer_get_NickName)(void* instance);
monoString* PlayFabService_BackendPlayer_get_NickName(void* instance) {
    if(instance!=nullptr) {
        return CreateString ("NickName");  
    }
}