Jump to content

Ted2

Senior Member
  • Posts

    4,939
  • Joined

  • Last visited

Everything posted by Ted2

  1. Nope. As the void ammo(bla, bla, bla) {} is the replacement method of the original method (which you named old_ammo), here you write your own logic of the method. If you only need to change the parameter values, you can just call the original method (old_ammo) with your own values and that will be enough. You could also do: void ammo(void *instance, int value, bool reload) { value = 9999; reload = false; old_ammo(instance, value, reload); } In this example you alter the parameter values it was originally called with and then call the method itself with your new values.
  2. Hmm, sorry. I was checking the post on phone which sucks. I just checked on my laptop and... The method you're hooking is a void, which means it doesn't return anything. Void methods are called to perform certain things rather than returning something. So this ammo method has two parameters: ammo and reload. You can make them always 9999 and false, but you do not return them. A valid hook would look like this: // This holds the original state of the method, some people prefer to call it "orig_ammo" instead because of that. void(*old_ammo)(void *instance, int value, bool reload); // This is the hooked method, where you can do whatever you want void ammo(void *instance, int value, bool reload) { // Just a note; I don't think instance will ever be NULL. if(instance != NULL) { // set ammo to 9999 and reload to false old_ammo(instance, 9999, false); } // Do what it normally does old_ammo(instance, value, reload); } MsHookFunction((void*)getAbsoluteAddress(0x289235), (void*)ammo, (void**)&old_ammo); I've added some comments to the code, so I hope you understand better then.
  3. Sorry, I just spotted a mistake. You should return old_ammo(instance, 9999,false); Not ammo(instance, 9999, false);
  4. This one is the one you need for setting the parameters.
  5. If you want to make tweaks/hacks, you'll need theos installed so you can compile tweaks. If you want to start making tweaks, I recommend just search YouTube and follow along with some video's. If you want to make cheats/hacks, I recommend following tutorials here on this forum. With both of them you'll work with obj-c/swift and C/C++, which are not really like Python. Though, nowadays people who make cheats don't know one of those languages and are still being able to make cheats due the theos-templates that exist and they just enter in offsets they found with the tool il2cppdumper (its on github).
  6. Hello Josh, the tweak i’m referring to is FLEXible which you can download from the BigBoss repo. Another tweak called “FLEXall” might be required too, because on my phone there’s a bug where FLEXible wasn’t shown. The “FLEXall” tweak can be installed from: https://dgh0st.github.io You can then activate FLEXible with three finger long press on your screen or long press your status bar. Goodluck!
  7. I see you installed theos sdks 9.3? If this is the only one that exists in your theos/sdks folder, then that's not good. Copy all sdks folders from: https://github.com/theos/sdks into your theos/sdks folder and try again.
  8. In your dump, search for keywords like “locked”, “unlocked” or “has”, “can” -> all booleans and return to True (or false if method says locked)
  9. You need to type "c" or "continue" in the putty window to resume the game.
  10. This prolly a Enum, so there’s some method that uses this Enum & you can just enter a value there. Search in the dump.cs for that Enum name & work from there.
  11. Alright, thank you. Nice project!
  12. Yeah, testing locally still feels easier but say I've updated / added new features & I could update that with for example a makefile command "make update" or whatever, that would be cool. Also things like this could be build: Automatically link them to the new .deb if hack was updated. Though, do you think there will ever be support for own custom templates? Just curious, this project looks really cool.
  13. Can we create and compile it using API endpoints?
  14. A .deb is not an application, which an .ipa is. So no you can not convert such things.
  15. You can't do that on NON-JB. You'll need to install the IPA.
  16. Disable passcode before jailbreak could fix it. You can enable it once you’re jailbroken.
  17. You need to load script.py not script.json.
  18. use armconverter to get bytes
  19. Well that's you not knowing how making hacks works. Try to dive into it & you might think otherwise.
  20. Some hacks simply can not be done the same way. Such as hooks, which you can not do on NJB.
  21. why would you RET a STR?
  22. Offsets change each version of the game. I doubt the game is the same version when I wrote this tutorial.
×
  • 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