Edited bclim makes ORAS crash

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by sgtPembry, Nov 21, 2015.

  1. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    Hello everyone.

    In tried to swap some models, modified 3D and textures and everything worked fine. BUT.
    When I try to edit the player avatar sprite (in a/1/0/8) the game crashes after the title screen.

    I converted the bclim to PNG and repacked it with png2bclim. I tried two different file formats: 9 (default format in png2bclim) and 7 (original file's format).

    Don't know what is wrong. :/
     
  2. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,042
    2,488
    Nov 15, 2014
    France
    Albi
    so something is wrong with your bclim, because it's working fine for me.

    For rebuild a BCLIM from a PNG, I use 9 in BCLIM and 0 in Square
     
    Last edited by Asia81, Nov 21, 2015
  3. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    I used the same settings. Extracted and repacked the GARC with GARCtool. Don't know what I did wrong. If someone had this problem and knows what it could be...
     
  4. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,042
    2,488
    Nov 15, 2014
    France
    Albi
    Be sure to didn't have change the PNG dimension, or something else.
    Try to build your bclim, and re-unpack it for see if you can see you png.

    What are your others changes?
    Maybe your blackscreen is not due to your bclim editing.
     
  5. Kaphotics

    Kaphotics badc0ded

    Member
    611
    460
    Sep 10, 2010
    United States
    png2bclim does not support creation of palette bclims (format=7, first u16 = 2).

    pk3DS has code to create said type (write16BitColorPalette), but it is not hooked up to any user interface.
     
    Thelostrune likes this.
  6. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    I changed May models and textures and it perfectly works. I didn't change anything else.
    And I didn't change the PNG dimensions, only the colors.
     
  7. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    So, what am I supposed to do ? I don't understand what you mean. :/
     
  8. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    Just saw my edited file is a 17ko file against 9ko for the source file. Could be the problem.
     
  9. Thelostrune

    Thelostrune GBAtemp Advanced Fan

    Member
    545
    128
    Aug 13, 2015
    Norway
    T-T-T-Triple post!

    Check the bit depth you're saving as. Also, what program do you use to edit?
     
  10. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    8 bits. I edited with Photoshop.
     
  11. Kaphotics

    Kaphotics badc0ded

    Member
    611
    460
    Sep 10, 2010
    United States
    I already told you... the problem is the special bclim format the game is expecting in order to layer them all together into the final player sprite.

    png2bclim does not generate that format.
     
  12. sgtPembry
    OP

    sgtPembry Advanced Member

    Newcomer
    64
    9
    Nov 21, 2015
    France
    To be clear, it's impossible ? Maybe another tool are some commands for pk3ds ?
     
  13. Kaphotics

    Kaphotics badc0ded

    Member
    611
    460
    Sep 10, 2010
    United States
    There's no tool/solution out there at this time.

    edit: latest commit of png2bclim can do it now ;)
     
    Last edited by Kaphotics, Nov 22, 2015
    Thelostrune likes this.