So, what have been achevied with HANS so far ?

Discussion in '3DS - Homebrew Development and Emulators' started by Mrrraou, Oct 27, 2015.

  1. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    We achieved to patch the romfs in order to edit textures, musics, levels, etc...
    But what about the .code file ? No one tried to patch it, and it seems like it was never modified in ROM hacking before; I can't find any tool about it.
    But that's something that I would like to know: how do we patch it ?
    For example, when we patch Alpha Sapphire .code with the Omega Ruby one, it works, but we get a black screen (haven't tried with romfs patching at the same time.).
    But when we patch Alpha Sapphire with the Face Riders one, HANS crashes: it seems like he cannot run the .code file, or something like that.
    Can we have more info about it or anything ?
     


  2. ar4757

    ar4757 Member

    Newcomer
    49
    11
    May 24, 2010
    United States
    Frustrating me. XD
     
    Queno138 and Mrrraou like this.
  3. Josephvb10

    Josephvb10 The Pokémon guy

    Member
    532
    384
    Aug 26, 2009
    Lumiose City
    Just tried replacing both code and exefs from Y to AS, no lucj, HANS crashes.

    This makes me wonder, could there be a reason smealum has not released the source code of HANS? Maybe it's a simple check that HANS makes to know if the code being loaded is from the same game?
     
    Mrrraou likes this.
  4. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    I don't know, maybe it is.
    But I managed to load the OR .code into SA, but with a black screen (the game crashed). So, that's pretty strange.
     
  5. Josephvb10

    Josephvb10 The Pokémon guy

    Member
    532
    384
    Aug 26, 2009
    Lumiose City
    Try replacing both the code and romfs. I don't have two games from the same pair to try.
     
  6. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    Yeah. But I tried with system apps too. (Face Raiders, System Settings, etc)
    All crashed. I'm going to try with the OR romfs on AS. It's still dumping.
     
  7. JustPingo

    JustPingo GBAtemp Fan

    Member
    497
    996
    Jan 11, 2015
    France
    I'd bet that HANS uses an unreleased exploit.
    I think that maybe the ROP entry is different in every games, so maybe it doesn't work because HANS can't call the intialisation function, but as OR and AS are very similar it would have worked. But that's just a theory, given how few information we have about everything. A bit more clarification from smealum maybe or anyone that belive to have understood would be appreciated. Thanks :P
     
    Last edited by JustPingo, Oct 27, 2015
    MsMidnight, V3NUS_M1NER and Mrrraou like this.
  8. Ammako

    Ammako GBAtemp Guru

    Member
    6,424
    3,546
    Dec 22, 2009
    Canada
    I replace both code.bin and romfs.bin when I play Neo Y and Rutile Ruby and both work fine.
    I haven't tried without it, but it works so I don't have a reason to change it.
     
  9. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    Yeah, that sure uses an unreleased exploit, because there is more RAM available, and more services too. It doesn't look like before, but maybe it's still unreleased because Nintendo would patch it faster.
     
    JustPingo likes this.
  10. Sasori

    Sasori GBAtemp Maniac

    Member
    1,379
    801
    Jan 28, 2015
    United States
    Ammako likes this.
  11. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    Tried with the OR .code and romfs on AS, it doesn't work. Black screen when HANS starts the game, so next after icache invalidation.
     
  12. ar4757

    ar4757 Member

    Newcomer
    49
    11
    May 24, 2010
    United States
    Quick question about hans - if I have a JP cartridge and a US 3ds do I set Hans' region option to US or JP? I'm thinking JP but want to be sure
     
  13. JustPingo

    JustPingo GBAtemp Fan

    Member
    497
    996
    Jan 11, 2015
    France
    US, but trying won't break it.
     
  14. ar4757

    ar4757 Member

    Newcomer
    49
    11
    May 24, 2010
    United States
    Ok thanks, I'm just trying to narrow down the problems I'm having with romhacks
     
  15. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,096
    5,168
    Mar 17, 2010
    Norway
    Alola
    I think JP, and make sure to set the language to JPN too, unless the game is multilingual.
     
  16. MegaHaxorus

    MegaHaxorus Member

    Newcomer
    40
    10
    Aug 2, 2015
    United States
    Custom music in Smash 3DS is incredibly easy with HANS. Currently looking into other uses for it.
     
  17. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    542
    174
    Oct 13, 2015
    United States
    Weaboo land
    Not specifically HANS-related, but currently working on some ACNL stuff.. Have to reverse-engineer all the file types since they're completely different from other 3ds games and don't use a common format.
     
  18. Sasori

    Sasori GBAtemp Maniac

    Member
    1,379
    801
    Jan 28, 2015
    United States
    You either packed it wrong or didnt remove the bytes correctly
     
  19. Mrrraou
    OP

    Mrrraou GBAtemp Advanced Maniac

    Member
    1,869
    2,167
    Oct 17, 2015
    France
    I did that. And I know that I did it well. I even tried to delete the savegame on the cartridge.
    Have you tried ? Did it worked for you ?
     
  20. Lycanroc

    Lycanroc Midnight Wolf

    Member
    2,010
    2,397
    May 11, 2014
    Germany
    Ibbenbüren
    Does anyone know which European demos contain Japanese language that can be accessed through HANS?