hello please let me know how u solved this! I have the same problemNever mind already solved it!
hello please let me know how u solved this! I have the same problem
monoString;
monoString *CreateString6(const char *str) {
monoString *(*CreateString6)(void *_this, const char *str, int start, int length) = (monoString *(*)(void *, const char *, int, int))getAbsoluteAddress("libil2cpp.so", 0xFF05DC);
return CreateString6(NULL, str, 0, 6);
}
monoString* CreateMonoString(const char* str) {I am using this method instead...
CreateString(sbyte* value, int startIndex, int length)
You just need to edit your monoString struct to include the extra parameters.
Remove the * after intmonoString* CreateMonoString(const char* str) {
monoString* (*String_CreateString)(const char* str, int* startIndex, int* length) = (monoString * (*)(const char*, int*, int*))(g_il2cppBaseMap.startAddress + string2Offset(OBFUSCATE("0xDDB6210")));
return String_CreateString(str, 0, (int*)strlen(str));
}This is my current code and when i'm hooking I use CreateMonoString("Example String")
[Hidden content]
Remove the * after int
Yes try thatmonoString* CreateMonoString(const char* str) {
monoString* (*String_Create)(const char* str, int startIndex, int length) = (monoString * (*)(const char*, int, int))(g_il2cppBaseMap.startAddress + string2Offset(OBFUSCATE("0xDDB6210")));
int startIndex = 0;
int length = (int)strlen(str);
return String_Create(str, startIndex, length);
}
is that better?
It's still not working I added everything then did CreateIl2cppString("Example Value");Yes try that
my offset looks like this btw private String CreateString(SByte* value, Int32 startIndex, Int32 length) { }Yes try that
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", 0xDDB6210);
int length = (int)strlen(str);
return CreateString(NULL, str, 0, length);
}
Your code looks ok idk why it doesn't workmonoString;
monoString *CreateString(const char *str) {
monoString *(*CreateString)(void *_this, const char *str, int start, int length) = (monoString *(*)(void *, const char *, int, int))(g_il2cppBaseMap.startAddress + string2Offset(OBFUSCATE("0xDDB6210")));
int length = (int)strlen(str);
return CreateString(NULL, str, 0, length);
}
yeah I had to change it to this cause I use zygisk imgui mod
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies