ROM Hack Cheat Codes AMS and Sx Os, Add and Request

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,557
Country
United States
Thank you very much, that makes sense I guess though I am unsure how exactly I managed to do that although it is certainly possible. I noticed you have been doing allot of research on cheats for this game, do you have any idea why the cheats are so temperamental to activate? I have not been able to get them to work in the past couple of days, I would do the usual routine of Rebooting switch, loading game and game save, head to Edizon and activate relevant cheats, max slot for example, and the refuse to activate? I read a few pages back Meko's theory about RAM limit's, is that the case? are there any more reliable workarounds?
I'm not really researching cheats, but save game content. Cheats are too restrictive to do some of the things you need to ensure you don't get bad items or overwritten items. Also, since the Switch supports Dynamic Memory Allocation, basically every time you load your save it could be in a different spot in memory. Computers aren't completely random though, so if you were to load your save and reboot 100 times, you may notice that the same 8 possible addresses keep showing up. For simple cheats that don't make use of pointers to find the proper address consistently you're just relying on luck that your memory layout is the one that the code maker had. I'm not really interested in doing the research to find the pointers since even if I found them the cheat codes can't do the complex stuff I need it to do.

Here is an example:
Code:
def addToInventory(filepath, inv_addr, item_list, item_type, item_qty):
    try:
        with open(filepath, 'rb+') as f:
            f.seek(inv_addr)
            while 1:
                occupied = f.read(4)
                if int.from_bytes(occupied, 'little') & 1 == 1:
                    f.seek(20,1)
                    continue
                f.seek(-4,1)
                break
            index = 0
            while index < len(item_list):
                occupied = f.read(4)
                if int.from_bytes(occupied, 'little') & 1 == 1:
                    f.seek(20,1)
                    continue
                f.seek(-4,1)
                f.write(0x3F800001.to_bytes(4, 'little'))
                f.seek(4,1)
                f.write(int(item_type).to_bytes(4, 'little'))
                f.write(item_list[index].to_bytes(4, 'little'))
                f.write(item_list[index].to_bytes(4, 'little'))
                f.write(int(item_qty).to_bytes(4, 'little'))
                index += 1
        return 0
    except:
        return 1
This scans all the item slots in your inventory until it finds an empty one. Then it starts inserting items from a list into each empty slot. Not all item numbers are sequential, example, the accessories that Digimon can wear. Here's the item list for them:
Code:
            accessories = [10101, 12401, 10201, 12501, 10301, 10302, 12601,
                10401, 10501, 10502, 12701, 12702, 12801,
                12901, 13001, 10701, 10801, 10901, 10902,
                13101, 13102, 13201, 11001, 11101, 13301,
                13401, 11201, 11301, 13501, 11401, 11402,
                11403, 13601, 11501, 11601, 13701, 13801,
                13901, 11701, 11702, 11703, 14001, 14101,
                11801, 11802, 14201, 11901, 12001, 12002,
                12003, 14301, 12101, 12102, 12103, 14401,
                14402, 14501, 12201, 12301, 12302, 12303]
As you can see, the numbers aren't all in a row. Writing a cheat code to do this would be ridiculous. It'd be something like:
Code:
DO NOT RUN THIS, IT IS AN EXAMPLE, UNTESTED CODE TO MAKE A POINT
11150000 0d858860 00000001
78000000 00000018
20000000
11150000 0d858860 00000000
01100000 0d858860 3f800001
01100000 0d858868 00000005
01100000 0d85886C 00002775
01100000 0d858870 00002775
01100000 0d858874 00000063
01100000 0d85887C 3f800001
01100000 0d858884 00000005
01100000 0d858888 00003071
01100000 0d85888C 00003071
01100000 0d858890 00000063
01100000 0d858894 3f800001
01100000 0d85889C 00000005
01100000 0d8588A0 000027D9
01100000 0d8588A4 000027D9
01100000 0d8588A8 00000063
01100000 0d8588AC 3f800001
01100000 0d8588B4 000030D5
01100000 0d8588B8 000030D5
01100000 0d8588BC 000030D5
01100000 0d8588C0 00000063
01100000 0d8588C4 3f800001
01100000 0d8588CC 0000283D
01100000 0d8588D0 0000283D
01100000 0d8588D4 0000283D
01100000 0d8588D8 00000063
40000000 00000000 00000000
20000000
That's just the first 5 items. It checks if the inventory slot has an item, if it does it adds 0x18 to the register 0 to advance to the next inventory slot. It keeps doing that until it finds an empty slot in which it then writes the items. There's 61 accessories so this code would be enormous. Plus, there's no way to have the code run just once, so after adding the items it would continue to do so until your inventory was full and it starts overwriting other data. Basically, to do any real serious inventory editing you'd want a save editor, not cheat codes.
 
Last edited by DocKlokMan,

poelmans

Well-Known Member
Newcomer
Joined
Feb 27, 2016
Messages
87
Trophies
0
Age
35
XP
440
Country
Canada
The friendship works after you give them a gift and go to bed. The dlc should be available for both. Look up the dark site for cheats with a switch. I can’t specifically say the whole site but I can give you the dark part.
I actually use that site already lol so no need to worry about the whole name though lol. and tried updating my switch to 9.0.1 and was on sxos 2.9.2 beta version and now it keeps giving an error on my switch for sxos and it wont start up so now i have to start all over on a new micro sd card.
 

r0tten1

Well-Known Member
Member
Joined
May 2, 2007
Messages
141
Trophies
1
Location
Brooklyn NYC
XP
880
Country
United States
I actually use that site already lol so no need to worry about the whole name though lol. and tried updating my switch to 9.0.1 and was on sxos 2.9.2 beta version and now it keeps giving an error on my switch for sxos and it wont start up so now i have to start all over on a new micro sd card.
Try deleting the sx folder and booting into sx os, you might of had a theme installed and it is crashing the switch. It happened to me and I fixed it by doing just that. Now I use themes just no lock screen image.
 

poelmans

Well-Known Member
Newcomer
Joined
Feb 27, 2016
Messages
87
Trophies
0
Age
35
XP
440
Country
Canada
Try deleting the sx folder and booting into sx os, you might of had a theme installed and it is crashing the switch. It happened to me and I fixed it by doing just that. Now I use themes just no lock screen image.
ah ok will do thanks for the advice

--------------------- MERGED ---------------------------

Try deleting the sx folder and booting into sx os, you might of had a theme installed and it is crashing the switch. It happened to me and I fixed it by doing just that. Now I use themes just no lock screen image.
Yeah that worked thanks now i got to redownload the cheats and english patch but i didnt lose everything so thank you for the advice
 
  • Like
Reactions: r0tten1

Boomerams

Well-Known Member
Member
Joined
Dec 16, 2016
Messages
102
Trophies
0
Age
37
XP
506
Country
United States
Are there any available cheats for "the sinking city" or am I just blind?

EDIT: Yep, was definitely blind. Found it on switchcheatdatabase on my third look...must be getting old or something.
 
Last edited by Boomerams,

poelmans

Well-Known Member
Newcomer
Joined
Feb 27, 2016
Messages
87
Trophies
0
Age
35
XP
440
Country
Canada
The friendship works after you give them a gift and go to bed. The dlc should be available for both. Look up the dark site for cheats with a switch. I can’t specifically say the whole site but I can give you the dark part.
I cant get the friendship cheat working on either the japanese version or the other version of the game. even after i go to bed the next day nothing no effect not in books or in game
 

DEMONDICE

K-K-Kureiji
Member
Joined
Dec 7, 2013
Messages
1,014
Trophies
1
Age
33
XP
2,013
Country
United States
I cant get the friendship cheat working on either the japanese version or the other version of the game. even after i go to bed the next day nothing no effect not in books or in game
I've personally used it on the 1.02 Asian version with no issues. Those codes were from 91wii, which is for the updated Asian version.
 

poelmans

Well-Known Member
Newcomer
Joined
Feb 27, 2016
Messages
87
Trophies
0
Age
35
XP
440
Country
Canada
I've personally used it on the 1.02 Asian version with no issues. Those codes were from 91wii, which is for the updated Asian version.
found the asian version by the looks of it will try it now. thanks to everyone for the help you have given me it is greatly appreciated

--------------------- MERGED ---------------------------

still cant get the cheats working though lol :P
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    maaaaan that's so awesome but I also don't want to fork over a hundo for it
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Leo could not withstand communism.
  • SylverReZ @ SylverReZ:
    Its OUR products to begin with lol.
    SylverReZ @ SylverReZ: Its OUR products to begin with lol.