How do you make a 1-Hit Kill cheat with AR CTRPF?

Discussion in '3DS - Homebrew Development and Emulators' started by juccatan, Aug 24, 2018.

  1. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    Title. Also need help using the Value searcher in AR.
     
    Last edited by juccatan, Aug 24, 2018
  2. Filo97

    Filo97 Zelda's totally my sister! Not lying!

    Member
    9
    Oct 8, 2015
    Italy
    Hyrule Castle
    More details about the game would be needed. And for a kind of workaround solution you can just find the value of whatever you are attacking with and max that out.
     
  3. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    It's just that I don't know how to identify enemy values or whatever I'm attacking with. I'm trying to make cheats for Kirby Fighters Deluxe btw.
     
  4. Filo97

    Filo97 Zelda's totally my sister! Not lying!

    Member
    9
    Oct 8, 2015
    Italy
    Hyrule Castle
    I've never tried, but i guess you'd need to identify the value by seeing which values change after you hit an enemy, and which one stays constant, but you need to make sure to only use the same attack all the time, or it would not be constant anymore.

    — Posts automatically merged - Please don't double post! —

    That would allow you to decrease the health value of enemies to 1, making it insta kill.
     
    Itzumi likes this.
  5. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    How would I go by seeing which values change or not?
     
  6. Bluespheal

    Bluespheal GBAtemp Regular

    Member
    4
    Sep 5, 2016
    Mexico
    you could also equip different weapons with different attack values and then just max out the attack value, this might not get you insta-kills, but would also help
     
    Itzumi likes this.
  7. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    But how do I find the attack value?
     
  8. Bluespheal

    Bluespheal GBAtemp Regular

    Member
    4
    Sep 5, 2016
    Mexico
    You can equip different weapons and compare them, have you created cheats before? it sounds as this is your first time, I'd recommend watching some tutorials to get a grasp on the steps to take next.
     
  9. ThoD

    ThoD GBATemp Addict (apparently), but more like "bored"

    Member
    10
    Sep 8, 2017
    Greece
    Just use the search over and over with the different weapon values for each weapon you equip until you get only one result. It's not exactly rocket science you know:P Also, for 1 hit kill, it's next to impossible without it being a hassle for non-bosses as normal enemies have different values so you will have to do it for every single one of them which can take a LOT of time. For bosses though, just try to find the value through trial and error.
     
  10. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    But.. It doesn't tell me how much damage I caused, it's just a bar..
     
  11. ThoD

    ThoD GBATemp Addict (apparently), but more like "bored"

    Member
    10
    Sep 8, 2017
    Greece
    So? The bar is just an indication of numbers. As a guess I'd say it's 100, which even if wrong could still work as some games also use percentage for boss HP, so finding that is a start. Otherwise, just check for all initial values at first, then make one attack, see what changed, next attack, search again to see what changed this time and so on until you only get 1-5 results. Once you got that few, just save all of them to avoid future finding and make each a different value (eg: 1 will be 40, the other 50, the other 60, etc.) and see which of the different values is actually working, then delete the wrong ones from the saved list and keep the one that works, simple.
     
    juccatan likes this.
  12. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    W
    What do I do if I wait to find a general decreased value? There's no option for that.
     
  13. Bluespheal

    Bluespheal GBAtemp Regular

    Member
    4
    Sep 5, 2016
    Mexico
    There is, something tells me you still haven't grasped how the cheat plugin works, the video demo Nanquitas posted should be enough to get a firm grasp on how it works, also note that some values can be in floats so if you see a weird values pop up, assume it's a float, there are online converters that can help you with the value you want, just search "hex to float" or something like that or just search for floats directly.
     
  14. FAST6191

    FAST6191 Techromancer

    pip Reporter
    22
    Nov 21, 2005
    United Kingdom
    General theory of one hit kill cheats

    When you attack something in a game there will be an equation that runs to determine what goes. This can vary dramatically between games but good things to look at are enemy HP values, attack ratings for weapons and characters, any debuffs (no ground attack against air sort of thing) or multipliers, hit detection and more.

    If you want to make a one hit kill you get to fiddle with those. You can do it with various stats in RAM or you can do it by altering the game's code (which depending upon the system/cheat setup you might also be able to edit in RAM, more classic consoles will want the game genie).
    The higher end hacker will probably fiddle with the hit detection aspect as they will probably find that most effective for the effort (if you can edit that then it will work, if you start looking at atk or something you might not get what you want).
    The lazy or inexperienced hacker will probably first look at the other things mentioned and pump high or low numbers in there to achieve much the same effect.

    I will skip the higher end thing and look more at the lower one.
    For enemy HP you will want to find where it stores HP in the memory. Do note that multiple enemies on screen might be handled in multiple locations so to start with you will want to go somewhere where there is just one enemy on screen (or make it so) and start your searches.
    Finding HP is a fairly classic cheat (get where you can see and manipulate it, do as little as you can other than to change the health value, search, change the health again, search, change health, search... until you find it or can brute force it. Some will use ineffective weapons, find enemies that regenerate health or have high health such that they don't die before you finish your searches -- while not impossible to go between enemies it is far easier if you have just the one.
    Once you have this you probably want to find others for when there are multiple enemies on screen. Typically they will all be either one after the other, of if enemies have more complex stats then the enemy stat tables/entries will be one after the other.
    You then will make a cheat of the form if health value is greater than 2 or whatever set it to 1.
    Possible problem is if the enemies have a low health behaviour then it will be running all the time. Solution to that is either change that behaviour, use another approach or maybe find the maximum health value (it will tend to be right next to it) and change that as well.

    ATK values if you don't want to edit the ROM work much the same. Find where they are located (level up if it is a thing here, equip different weapons, possibly change character order in multiple character parties, Once you find it set a ridiculously high value. If you have a stat based chance to miss then you might have to sort that as well, also even full value ATK might not be enough to one shot a particularly hard character.

    Debuffs and multipliers are harder. If there is a way to boost damage do that, figure out where it stores that in memory and set it with a cheat (hopefully it will just be a simple flag in the memory somewhere). Normally we look at this sort of thing for moon jump, monster away/no random battle cheats and

    When searching for cheats in most emulators and the like you will be given a few options
    Search for specific value (if it says 100 gold you probably have 100 decimal somewhere in memory). Not all things with specific numbers will match but if it does then it makes things far quicker.
    Things which changed since last search
    Things which did not change since last search
    Things below a certain value
    Things above a certain value
    Things which increased since last time
    Things which decreased since last time
    Number is between this value and this value (possibly also the reverse of not between this value and this value).

    Most of them are fairly obvious. If you are finding HP to make an infinite HP cheat then if specific values don't work then getting hit will lower it, taking a potion will raise it. In the event that it is a float value like mentioned it will trouble the simple search parameters so you will instead have to use the changed/not changed and take a bit longer to narrow things down.
     
    Ryccardo likes this.
  15. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    I'm sorry if I seem to come off as ignorant or just dumb, but I just never was able to grasp how to search for a general value, all the options I'm seeing are:
    Equal
    Not Equal To
    Bigger Than
    Bigger or Equal
    Smaller Than
    Smaller or Equal

    I don't see a "Decreased" or "Increased" Option
     
  16. Bluespheal

    Bluespheal GBAtemp Regular

    Member
    4
    Sep 5, 2016
    Mexico
    Don't worry, I can see why you are having problems with it, the names are kinda vague, basically go for "Smaller than" when looking for values that decreased and vice versa.
     
    juccatan likes this.
  17. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    Thanks for understanding
     
  18. ThoD

    ThoD GBATemp Addict (apparently), but more like "bored"

    Member
    10
    Sep 8, 2017
    Greece
    If not sure at all about what the value could possibly be initially, it's much better to start with "Bigger than 0" (or 1) in very first search, then go with the "Smaller Than X" if you have a better grasp on what values it could be or again "Bigger than 0" until you do. For HP, "Bigger than 0" (or 1) will always give you your value, just not only your value, can help narrow it down though. If it's a game that shows damage numbers they can also be very helpful at deciding the max HP. Alternatively, you can either datamine to see the real values for everything (not as hard as you'd think for simple stuff) or look for the datamines online, some games have them (eg: Monster Hunter).
     
    Bluespheal likes this.
  19. juccatan
    OP

    juccatan GBAtemp Regular

    Member
    4
    Jun 15, 2018
    United States
    You can datamine to find values? Who would've thought! Where can I find these datamines, or is that something you have to do yourself?
     
  20. ThoD

    ThoD GBATemp Addict (apparently), but more like "bored"

    Member
    10
    Sep 8, 2017
    Greece
    Either do it yourself if you know how or try to look for them online. It's obvious you can get the values from datamining, like HP, attack, etc. for everything, just not the address, but is very easy finding the address if you already know the value.
     
    juccatan likes this.
Loading...