Jump to content

Ted2's Mod Menu crashing on load?


Go to solution Solved by Ted2,

12 posts in this topic

Recommended Posts

Posted (edited)

 

Hey, i have a problem with Ted2's mod menu.

 

I made a simple patch with two offsets using switch, like this:

//Offset switch with multiple patches
[switches addOffsetSwitch:NSSENCRYPT("GodMode")
	description:NSSENCRYPT("Disables player's collision.")
	offsets: {
		ENCRYPTOFFSET("0xCB91B0"),
		ENCRYPTOFFSET("0xCB92A4"),
	}
	bytes: {
		ENCRYPTHEX("0x1F2003D5"),
		ENCRYPTHEX("0x58010014"),
	}
];

Successfully compiled .deb, installed, and after running the game, and showing purple "Thank you, understood" popup menu, when i dismiss the menu, it just crashes. So basically it crashes when calling setupMenu() if i have understood it correctly. If i comment out above code (and leave some of Ted2's examples uncommented), it works and shows the menu button normally, without crashing. I'm using Tweak.xm template that comes with mod menu, the only thing that's changed basically is the above code. What am i doing wrong here?

Updated by al3xs7x
Posted (edited)

If you mean this, yes:

void setupMenu() {

// If a game uses a framework as base executable, you can enter the name here.
// For example: UnityFramework, in that case you have to replace NULL with "UnityFramework" (note the quotes)
[menu setFrameworkName:"UnityFramework"];
  
...

 

Updated by al3xs7x
Posted
12 minutes ago, al3xs7x said:

If you mean this, yes:

void setupMenu() {

// If a game uses a framework as base executable, you can enter the name here.
// For example: UnityFramework, in that case you have to replace NULL with "UnityFramework" (note the quotes)
[menu setFrameworkName:"UnityFramework"];
  
...

 

Try compiling the default template, if that works, there must be an issue with your code.

Posted (edited)

Alright, i've deleted my offsets, and compiled with some of Ted2's examples, like this:

// Offset Switch with one patch
[switches addOffsetSwitch:NSSENCRYPT("God Mode")
	description:NSSENCRYPT("You can't die")
 	offsets: {
    	ENCRYPTOFFSET("0x1002DB3C8")
    }
 	bytes: {
    	ENCRYPTHEX("0xC0035FD6")
    }
];

// Textfield Switch - used in hooking
[switches addTextfieldSwitch:NSSENCRYPT("Custom Gold")
	description:NSSENCRYPT("Here you can enter your own gold amount")
	inputBorderColor:UIColorFromHex(0xBD0000)
];

// Slider Switch - used in hooking
[switches addSliderSwitch:NSSENCRYPT("Custom Move Speed")
	description:NSSENCRYPT("Set your custom move speed")
	minimumValue:0
	maximumValue:10
	sliderColor:UIColorFromHex(0xBD0000)
];

It still crashes. EDIT: if i remove calls to ENCRYPTOFFSET and ENCRYPTHEX:

// Offset Switch with one patch
[switches addOffsetSwitch:NSSENCRYPT("God Mode")
	description:NSSENCRYPT("You can't die")
	offsets: {
		//ENCRYPTOFFSET("0x1002DB3C8")
    }
	bytes: {
		//ENCRYPTHEX("0xC0035FD6")
    }
];

and recompile, it works/shows the menu and doesn't crash!?? 🤔 

Updated by al3xs7x
Posted (edited)

Tried to compile on both MacOS + IOS, it's the same..

Using 11.4 sdk because 11.2 (as Ted2 recommended) is not available on theos Github repo.

Anyone here that used and have experience with Ted2's mod menu? I'm stuck whole day here trying to solve this :(

Updated by al3xs7x
topic was approved
Posted
1 hour ago, al3xs7x said:

EDIT: if i remove calls to ENCRYPTOFFSET and ENCRYPTHEX:

// Offset Switch with one patch
[switches addOffsetSwitch:NSSENCRYPT("God Mode")
	description:NSSENCRYPT("You can't die")
	offsets: {
		//ENCRYPTOFFSET("0x1002DB3C8")
    }
	bytes: {
		//ENCRYPTHEX("0xC0035FD6")
    }
];

and recompile, it works/shows the menu and doesn't crash!?? 🤔

Perhaps @Ted2 himself can shed some light on this! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines