How to put Savedatafiler on homescreen?

Discussion in '3DS - Flashcards & Custom Firmwares' started by Thirty3Three, Nov 7, 2014.

  1. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    It won't install. I've replied in various threads about it with no asnwer. It keeps failing when I attempt to install via devmenu. I'd like a way to get savedatafiler working from the home screen, so I can edit my pokmon save(s).

    Thanks.
     
  2. kyogre123

    kyogre123 Mexican Pride

    Member
    2,919
    1,261
    Sep 23, 2013
    Mexico
    You need the .csu version of the app for this:

    Use this rsf:
    Code:
    BasicInfo:
      Title                   : "SaveData"
      CompanyCode             : "00"
      ProductCode             : "SaveDataFi"
      ContentType             : Application # Application / SystemUpdate / Manual / Child / Trial
      Logo                    : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
     
    TitleInfo:
      UniqueId                : 0xff40a
      Category                : Application # Application / SystemApplication / Applet / Firmware / Base / DlpChild / Demo / Contents / SystemContents / SharedContents / AddOnContents / Patch / AutoUpdateContents
     
    CardInfo:
      MediaType               : Card1 # Card1 / Card2
     
    Option:
      UseOnSD                 : true # true if App is to be installed to SD
      EnableCompress          : true # Compresses exefs code
      FreeProductCode         : true # Removes limitations on ProductCode
      EnableCrypt             : false # Enables encryption for NCCH and CIA
      MediaFootPadding        : false # If true CCI files are created with padding
     
    ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
      ReadOnly: 
       - .rodata
       - RO
      ReadWrite: 
       - .data
       - RO
      Text: 
       - .init
       - .text
       - STUP_ENTRY
       
    PlainRegion: # only used with SDK ELFs 
     - .module_id
      
    AccessControlInfo:
      UseOtherVariationSaveData : false
      ExtSaveDataId: 0xff40a
      SystemSaveDataId1: 0x00000000
      SystemSaveDataId2: 0x00000000
      OtherUserSaveDataId1: 0x00000
      OtherUserSaveDataId2: 0x00000
      OtherUserSaveDataId3: 0x00000
      FileSystemAccess:
       - CategorySystemApplication
       - CategoryFileSystemTool
       - Debug
       #- TwlCardBackup
       #- TwlNandData
       #- Boss
       - DirectSdmc
       - SaveDataMove
     
      IdealProcessor                : 0
      AffinityMask                  : 1
      Priority                      : 16
       
      MaxCpu                        : 0x9E # Default
      
      DisableDebug                  : true
      EnableForceDebug              : false
      CanWriteSharedPage            : false
      CanUsePrivilegedPriority      : false
      CanUseNonAlphabetAndNumber    : false
      PermitMainFunctionArgument    : false
      CanShareDeviceMemory          : false
      RunnableOnSleep               : false
      SpecialMemoryArrange          : false
      
      CoreVersion                   : 2
      DescVersion                   : 2
      
      ReleaseKernelMajor            : "02"
      ReleaseKernelMinor            : "33" 
      MemoryType                    : Application # Application / System / Base
      HandleTableSize: 512
      IORegisterMapping: 
       - 1ff50000-1ff57fff
       - 1ff70000-1ff77fff
      MemoryMapping: 
       - 1f000000-1f5fffff:r
      SystemCallAccess: 
        ArbitrateAddress: 34
        Break: 60
        CancelTimer: 28
        ClearEvent: 25
        ClearTimer: 29
        CloseHandle: 35
        ConnectToPort: 45
        ControlMemory: 1
        CreateAddressArbiter: 33
        CreateEvent: 23
        CreateMemoryBlock: 30
        CreateMutex: 19
        CreateSemaphore: 21
        CreateThread: 8
        CreateTimer: 26
        DuplicateHandle: 39
        ExitProcess: 3
        ExitThread: 9
        GetCurrentProcessorNumber: 17
        GetHandleInfo: 41
        GetProcessId: 53
        GetProcessIdOfThread: 54
        GetProcessIdealProcessor: 6
        GetProcessInfo: 43
        GetResourceLimit: 56
        GetResourceLimitCurrentValues: 58
        GetResourceLimitLimitValues: 57
        GetSystemInfo: 42
        GetSystemTick: 40
        GetThreadContext: 59
        GetThreadId: 55
        GetThreadIdealProcessor: 15
        GetThreadInfo: 44
        GetThreadPriority: 11
        MapMemoryBlock: 31
        OutputDebugString: 61
        QueryMemory: 2
        ReleaseMutex: 20
        ReleaseSemaphore: 22
        SendSyncRequest1: 46
        SendSyncRequest2: 47
        SendSyncRequest3: 48
        SendSyncRequest4: 49
        SendSyncRequest: 50
        SetThreadPriority: 12
        SetTimer: 27
        SignalEvent: 24
        SleepThread: 10
        UnmapMemoryBlock: 32
        WaitSynchronization1: 36
        WaitSynchronizationN: 37
      InterruptNumbers:
      ServiceAccessControl:
       - APT:U
       - $hioFIO
       - $hostio0
       - $hostio1
       - ac:u
       - boss:U
       - cam:u
       - cecd:u
       - cfg:u
       - dlp:FKCL
       - dlp:SRVR
       - dsp::DSP
       - frd:u
       - fs:USER
       - gsp::Gpu
       - hid:USER
       - http:C
       - mic:u
       - ndm:u
       - news:u
       - nwm::UDS
       - ptm:u
       - pxi:dev
       - soc:U
       - ssl:C
       - y2r:u
       - ldr:ro
       - am:app
       - am:u
       - pm:app
       - ns:s 
       
    SystemControlInfo:
      SaveDataSize: 512KB
      RemasterVersion: 5
      StackSize: 0x40000
      #JumpId: 0
      Dependency: 
        ac: 0x0004013000002402L
        am: 0x0004013000001502L
        boss: 0x0004013000003402L
        camera: 0x0004013000001602L
        cecd: 0x0004013000002602L
        cfg: 0x0004013000001702L
        codec: 0x0004013000001802L
        csnd: 0x0004013000002702L
        dlp: 0x0004013000002802L
        dsp: 0x0004013000001a02L
        friends: 0x0004013000003202L
        gpio: 0x0004013000001b02L
        gsp: 0x0004013000001c02L
        hid: 0x0004013000001d02L
        http: 0x0004013000002902L
        i2c: 0x0004013000001e02L
        ir: 0x0004013000003302L
        mcu: 0x0004013000001f02L
        mic: 0x0004013000002002L
        ndm: 0x0004013000002b02L
        news: 0x0004013000003502L
        nim: 0x0004013000002c02L
        nwm: 0x0004013000002d02L
        pdn: 0x0004013000002102L
        ps: 0x0004013000003102L
        ptm: 0x0004013000002202L
        ro: 0x0004013000003702L
        socket: 0x0004013000002e02L
        spi: 0x0004013000002302L
        ssl: 0x0004013000002f02L
    
    Extract the .csu contents with ctrtool:

    ctrtool --exefs=exefs.bin savedatafiler.csu
    ctrtool --romfs=romfs.bin savedatafiler.csu
    ctrtool --exheader=exheader.bin savedatafiler.csu
    ctrtool -t exefs --exefsdir=exefs --decompresscode exefs.bin

    And rebuild as CIA with makerom
    makerom -f cia -rsf savedatafiler.rsf -target t -o savedatafiler.cia -icon exefs\icon.bin -banner exefs\banner.bin -code exefs\code.bin -exheader exheader.bin
     
  3. Nurio

    Nurio That Kirby fan

    Member
    842
    191
    Mar 31, 2009
    Netherlands
    The Netherlands
    The actual .cia files from the devkit are encrypted and can't be installed. You'll need the .csu version, rename it to .3ds and then convert it to a .cia
    There are guides floating around here on how to do that.

    EDIT: Or, heck, listen to the ninja above me. He's more thorough in his answer than I am.
     
    The9thBit and Margen67 like this.
  4. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,621
    Sep 5, 2013
    Brazil
    Are you using Gateway or the CFW?
     
  5. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    Thanks guys! Yeah I've been working with the guides all day haha! Just trying to get this part sorted. I appreciate it. I'll update back. Thanks again!


    GW
     
    Margen67 likes this.
  6. Nurio

    Nurio That Kirby fan

    Member
    842
    191
    Mar 31, 2009
    Netherlands
    The Netherlands
    zerbe09 and Margen67 like this.
  7. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    Thanks! But that worked for Pokemon much earlier, but not for the savedatafiler. Is there another tut? The "make descapp4/1" exes give me errors
     
  8. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    Ugh.

    [NCCH ERROR] Failed to open banner file 'banner.bin'
    [NCCH ERROR] NCCH Build Process Failed
    [RESULT] Failed to build outfile
     
  9. Ryft

    Ryft GBAtemp Advanced Fan

    Member
    546
    188
    Nov 21, 2013
    United States
    Illinois

    I did the same thing.. you skipped a step.

    ctrtool -t exefs --exefsdir=exefs --decompresscode exefs.bin

    Thanks for this guide! Got it on my first try (after that one stupid mistake) and works fine.
     
    Margen67 likes this.
  10. jkoodo

    jkoodo Member

    Newcomer
    42
    7
    Aug 25, 2014
    Indonesia
    i'm sorry if i'm wrong
    but wouldn't it be more easy to release the decrypted version
    so every one can use it like normal rom

    but there must be a reason why no one is releasing it
     
    Margen67 likes this.
  11. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,621
    Sep 5, 2013
    Brazil
    because it belongs to Nintendo?
     
    SuzieJoeBob, andibad and cearp like this.
  12. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    Ugh. Still not working. I have 3 files so far. exefs.bin, exheader/bin, and romfs.bin. I have no banner.bin or any of that jazz.
     
  13. gamefan5

    gamefan5 Kid Icarus Uprising connoiseur

    Member
    4,947
    2,071
    Aug 29, 2010
    Canada
    Somewhere in this Earth
    someonewhodied I think you can find an answer here about how to install it.
     
  14. Ryft

    Ryft GBAtemp Advanced Fan

    Member
    546
    188
    Nov 21, 2013
    United States
    Illinois

    Once you do that command, the banner.bin etc is in a folder called "exefs". I literally just copy and pasted the commands he posted and it worked for me so I dunno whats going wrong for you.
     
  15. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.
    GOT IT.

    Thanks guys. Apparently my enter button is sticking. Haha. Weird.
     
  16. Tombomb

    Tombomb Newbie

    Newcomer
    7
    5
    Oct 17, 2014
    United States
    if you are getting

    Code:
    [EXHEADER ERROR] Failed to set ExtSaveDataId. UseExtSaveData must be true.
    [EXHEADER ERROR] Failed to create ExHeader
    [NCCH ERROR] NCCH Build Process Failed
    [RESULT] Failed to build outfile
    add

    Code:
      UseExtSaveData: true
    after

    Code:
    AccessControlInfo:
     
  17. zhdarkstar

    zhdarkstar GBAtemp Advanced Fan

    Member
    571
    225
    Jan 30, 2008
    United States
    How much would the posted rsf have to be changed to use it in converting the rest of the sdk tools to CIA format? The apps I'm most interested in converting are PlayCoinSetter, NetworkSetting, and Config. The last two I want so that I have a way of changing settings without getting kicked out of emunand.
     
    Gereirhadeigne, Margen67 and Tombomb like this.
  18. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,010
    1,621
    Sep 5, 2013
    Brazil
    NetworkSettings may be useful but Config can't change any relevant settings.
     
  19. Searinox

    Searinox <3

    Member
    1,757
    167
    Dec 16, 2007
    Romania
    This works with any .csu right? So savedatafiler... it exports decrypted saves and can import decrypted saves back into the game while setting their proper encryption? Both Card1 and Card2 titles?
     
    Margen67 likes this.
  20. Thirty3Three
    OP

    Thirty3Three Musician Member

    Member
    3,428
    1,842
    Mar 22, 2013
    United States
    Wherever you want me, baby.

    Yep! I now have a Blaziken that knows all thunder moves.

    [​IMG]Poor kid's gonna use their water pokemang.