Model Swapping in Soma Bringer?

Discussion in 'NDS - ROM Hacking and Translations' started by CPhantom, Oct 12, 2008.

Oct 12, 2008

Model Swapping in Soma Bringer? by CPhantom at 7:01 AM (22,316 Views / 0 Likes) 95 replies

  1. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    <!--sizeo:5--><span style="font-size:18pt;line-height:100%"><!--/sizeo--><u><b>HOW TO SWAP MODELS</b></u><!--sizec--></span><!--/sizec-->

    1. Go and download DarthNemesis' newest SomaTrans (v1.3 at writing this) located <a href="http://somatrans.referata.com/wiki/Main_Page" target="_blank">Here</a>
    2. Run it, and click on <b>File -> Import ROM</b>, then import a patched version of Soma Bringer if you want to use the English patch.
    3. When it is finished opening the ROM file, go to <b>File -> Unpack IMG Files</b>
    4. When that finished, a folder will appear in your SomaTrans folder called <b>IMG</b>, open it.
    5. locate the files that are called <b>mdl</b>###, these are where the models are located.
    6. Player Characters are located in the following numbers that are in parentheses:
    Warning: Spoilers inside!
    7. When you have found the location of whichever Player Character you wish to replace, remove the file, and create a copy of one of these files and rename it to the Player Character file you are replacing:
    Warning: Spoilers inside!
    8. Go back to SomaTrans, and go to <b>File -> Pack IMG Files</b>
    9. When that is done, go to <b>File -> Export ROM</b>
    10. Save, then enjoy! <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />



    <u>Thanks to DarthNemesis who has worked on so much stuff for Soma Bringer and helped to find out model locations!</u>
     


  2. Hehe Moo

    Member Hehe Moo Moo?

    Joined:
    Jul 14, 2008
    Messages:
    1,137
    Location:
    Australia
    Country:
    Australia
    Hey! Great idea!! I'm not that good with this kind of "messing around", but yeah, I love Soma Bringer and it sounds like a good idea xD
     
  3. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    I think it could probably be done. The models are stored in mdl\mdl.img. The pointer to the offset for a particular file n is stored in mdl.fat, and is 18 bits starting at offset 0x24+8*n, multiplied by 0x200. These files are in compressed DAD format and can be edited using DADTool, which is linked on the translation wiki.
     
  4. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    Yeah, I started thinking about it when I started enjoying a lot of the NPCs.

    Now, I think that portraits, Names, etc would be fun to change as well, but that'd be a ton of work combined with just this idea. So yeah, just swapping the little character would be cool, haha :]

    I'm going to take a peak at files in a clean rom, see if anything is there. If not, then maybe someone can show me the way.


    @Darthnemesis: Thank you very much for the help there :] maybe I'll take a peak around here then, see if anything can be done! Hopefully I'm skilled enough though, haha.
     
  5. Hehe Moo

    Member Hehe Moo Moo?

    Joined:
    Jul 14, 2008
    Messages:
    1,137
    Location:
    Australia
    Country:
    Australia

    Omfg. That is seriously... (no offense) NERD-TALK xD What the heck does that mean?~! "offset 0x28+9" whoa...

    Wow. Darth, you are a computer god.
     
  6. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    Okay, well I found the files, but .img...I have no idea how to extract the DAD files, haha. I am not very computer savvy, but once I get it down, I can usually do it.Haha.
     
  7. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
  8. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    WOW, haha! I wasn't expecting you to post an image of you doing it [​IMG]

    care for a short tutorial or something? lol, I'd love to do this myself with something to follow from the great Darth himself :].

    That's not entirely sucking up either, you are pretty amazing, haha.
     
  9. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Alright, I split the .img into separate files using the pointers from the file table, then batch decompressed them using DADTool. I looked at a bunch in a tile editor until I found the NPCs I wanted, then just copied the replacement file over the target file in mdl.img using a hex editor.
     
  10. Dominator

    Member Dominator the world end without you

    Joined:
    May 9, 2007
    Messages:
    696
    Location:
    Not on the earth
    Country:
    France
    Darth, I'm glad you manage do to it, but the combat animation are not make for npc, so i think when you press attack or something like this the game would crach or show black screen ?
     
  11. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Nope, these models are just bones and textures. The animations are the same regardless of which character you're using.
     
  12. Dominator

    Member Dominator the world end without you

    Joined:
    May 9, 2007
    Messages:
    696
    Location:
    Not on the earth
    Country:
    France
    that awesome, so the game have a real engine with no pre-made img for each animation
     
  13. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    Hmmm, and how do I split it? See, haha your talk is to heavy for a newbie like myself with this stuff. [​IMG]
    What programs do you use? How'd you find the pointers?

    Maybe later on you could show me how to do this a bit more in depth? That way the newbies at this, such as myself, could tinker and choose a neat player character? [​IMG]
     
  14. Hehe Moo

    Member Hehe Moo Moo?

    Joined:
    Jul 14, 2008
    Messages:
    1,137
    Location:
    Australia
    Country:
    Australia
    Darth if you manage to patch it, can you post it here for us =] I want to test it xD

    Also, if you patch it, will it work on the already English patched rom that you made?
     
  15. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Download model replacement demo patch
    Apply to an already patched (2008-10-11) file.
     
  16. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    So, what are you using to find those pointers and such? I only currently have Hex Workshop. I'm sure there is something else that you use though?
     
  17. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    No, I use Hex Workshop.
     
  18. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    Wow, haha. Then I must have no idea how you are using it then. As I've said, I'm a newbie to this stuff, haha. I didn't know how the models were thrown in here, and hex editing DS games are totally new to me xD

    I honestly don't have much HEX skills either. The only game I ever used hex for was Phantasy Star Online...and that was ages ago, haha. Not much work either.

    But I think I've found were to look for offsets and such, so yeah. I'll probably find out here sooner or later, haha.

    Your skills in this blows my mind away.



    Well, I think I'm going to wave my white flag here. I have no clue how to get this done, haha. I don't understand the pointers, hex, etc. To much for my brain with no knowledge of this stuff. Unless Darth would release a heavily newbie friendly guide, or some program, I have to lean on his shoulder till, haha.

    I love you Darth, knowing this game like the back of your hand rocks. xD
     
  19. CPhantom
    OP

    Member CPhantom The Noob :(

    Joined:
    May 14, 2008
    Messages:
    587
    Country:
    United States
    Hmmm, sorry for double posting, but if anyone can make a guide on how to do this, that'd be awesome. I know Darth made a slight guide there, but it is to much for my unskilled mind, haha.

    I'd really like to learn how to do this, it'd be fun. I'm sure that once a guide shows up, it'd be a walk in the park. But when numbers start popping up like "0x24 + 8*0xCA = 0x674", my head explodes. [​IMG]
     
  20. War

    Member War Take it easy~

    Joined:
    Oct 26, 2007
    Messages:
    5,409
    Location:
    California
    Country:
    Japan
    Omg, that's so awesome Darth! Is there an easy way to do this process? It would be really fun to play as some NPCs... like maybe those spirit things?
     

Share This Page