1. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,366
    Country:
    Spain
    Hey folks! Some of you might know me from my tutorial about how to export from 3DS games to Unity Engine, exporting lets go models and animate them with Mixamo or exporting Switch models and animate them with 3DS animations.

    Well, thanks to Mvit, Golui, Reisyukaku, @KillzXGaming and the rest of the PokéModding team, we can now export the models and animations from Nintendo Switch games to Unity Engine in a few minutes.

    Lets start!

    NOTE: This DOESN'T apply Mystery Dungeon DX. At the moment of this post, Lets Go animations are a bit broken, so go for SWSH ones. Also, Blender importer is not working properly, but 3DS Max is, so we will use it.


    What do you need:

    - Pokémon Lets Go Eevee/Pikachu/Sword/Shield decrypted
    - Switch Toolbox: https://github.com/KillzXGaming/Switch-Toolbox
    - 3DS Max (I will use 2019 for this tutorial)
    - This 3DS Max Script: Download
    -SMD plugin for 3DS Max: Download
    - Unity Engine


    Step 1: Prepare your game.

    - Get the desired game (In this case Pokémon Sword)
    - Decrypt the game with your favourite method.
    I recommend taking a look to these tutorials if you don't know how to do it: https://gbatemp.net/threads/decrypt...backup-loading-ryujinx-yuzu-in-1-click.506954 or https://gbatemp.net/threads/extract-nsp-nca-xci-update-all-in-one-tool-for-layeredfs.511156/
    - Place all files anywhere in your PC.

    Step 2: Get the desired model and export the GFBMDL file.

    - Open Switch Toolbox
    - Click on File > Open.
    - Look for the Pokémon gfpak you want to export. In this case, I'm gonna export Sobble which is pm0951_00_00.gfpak (if you want to check the IDs to know which one matches a Pokémon, check this thread: https://gbatemp.net/threads/tutoria...-and-animate-them-with-3ds-animations.552486/

    - Click on (+) next to the gfpak name in the hierarchy and the list will be displayed. We need to double click in > Quick Access > Models > gfbmdl file. (rare is for Shiny one). Once you do it, it will show more options and the model will be rendered.

    upload_2020-5-10_23-2-49.png

    You can 2 two things here: Export the model or export the gfbmdl.

    A) Exporting the GFBMDL

    - Right click on the gfbmdl > archive > export raw data > save the gfbmdl anywhere in your computer (remember where).


    sobble.png

    - Right click on Textures > Export All > Save them anywhere you want

    B) Exporting the model as DAE:

    - Instead of Archive > Export Raw Data, just click on Export Model > Save them anywhere you want. Toggle export all textures to export every used texture with it.

    Step 3: Export all the animations

    -
    Click on (+) next to Quick access > Animations
    - Double click on each .gfbanim. Then, if you select again the gfbmdl (with left click) and then select any gfbanim, the animation will be displayed in the timeline.

    upload_2020-5-10_23-7-48.png

    - You need to go one by one > Right click > Export Animation > Save them wherever you want (same folder as the gfbmdl helps to have everything ordered).

    Step 3: Export the 3D model and add animations to it.

    - Download SMD plugin and install it.

    A) If you exported the GFBMDL file:

    - Download the GFBMDL script.
    - Unzip the script anywhere in your computer.
    - Run 3DS Max.
    - In the toolbar, click on Scripting > Run Script > Open the script
    - A new window will appear.

    [​IMG]

    - Click on Import *.GFBMDL > Look for the GFBMDL file exported in step 2 and open it.
    - The model will load.

    upload_2020-5-10_23-15-42.png

    B) If you exported the .DAE:

    - File > Import > Look for the exported DAE in step 2.
    - Model will load.


    - After that, click on File > Import > select the animations exported in step 3. They are in .SMD Files.
    - Sword Models need to be rotated in 90º on the X axis.

    upload_2020-5-10_23-21-54.png

    - File > Game Exporter > Select the location where the FBX will be saved > Export.

    Step 4: Import animations into Unity

    - Open Unity Engine
    - Create/open your project
    - Drag the FBX to the project resources tab.
    - Click on the FBX. In the inspector > You will see Avatar definition as No Avatar> Click there and select "Create from this model" > Apply
    - Now Click on the arrow in the FBX to open it > Select all animationclip files > Left Control + D to duplicate them outside the FBX
    - Toggle loop whenever is needed.
    - Add it to your scene and give it some cool materials (Remember textures must be mirrored in the same way 3DS ones: https://gbatemp.net/threads/tutoria...ed-models-from-3ds-to-unity-engine-3d.532962/).

    Step 5: Enjoy!

    screenshot_1.png

    Credits:

    - @KillzXGaming: Switch Toolbox
    - @Demothene: PLGU Shaders

    - @PRAGMA: Romfs decrypting tutorial
    - @huma_dawii: Other decrypting tutorial
    - @Random Talking Bush: 3DS Max Exporter Script
    - Rei, Golui, Mvit and all pokéModding team for making this possible.

    Other useful threads:

    - https://gbatemp.net/threads/tutoria...-and-animate-them-with-3ds-animations.552486/

    - https://gbatemp.net/threads/tutoria...ainer-models-and-rig-them-with-mixamo.547159/

    - https://gbatemp.net/threads/tutoria...ed-models-from-3ds-to-unity-engine-3d.532962/
    - https://gbatemp.net/threads/tutorials-discussion-how-to-make-pokemon-shaders.547875/
     
    BellBlitzKing and SepraB like this.
  2. CH_obsidian

    CH_obsidian Newbie
    Newcomer

    Joined:
    May 11, 2020
    Messages:
    4
    Country:
    China
    — Posts automatically merged - Please don't double post! —

    Hello, I am China pokemon fan, have what way can contact you to discuss the game? Is a problem on my side, SMD format plugin after import are damaged, what do you have a powerful SMD plugin?
     
    Last edited by CH_obsidian, May 11, 2020
  3. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,366
    Country:
    Spain
    Sometimes toolbox doesn’t export animations correctly. Just export them again and retry
     
  4. CH_obsidian

    CH_obsidian Newbie
    Newcomer

    Joined:
    May 11, 2020
    Messages:
    4
    Country:
    China
    Can you share you imported SMD tools? Can you tell me? Thank you very much!
     
    Last edited by CH_obsidian, May 11, 2020
  5. CH_obsidian

    CH_obsidian Newbie
    Newcomer

    Joined:
    May 11, 2020
    Messages:
    4
    Country:
    China
    I'm sorry, my English is not very good,
    May express is not very clear.
    Now my side MAX is wrong, after the merger SMD model and animation not merged together. What is the good way?
     
    Last edited by CH_obsidian, May 11, 2020
  6. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,366
    Country:
    Spain
    As I said: Export model + animations again. Try again from there.
     
  7. CH_obsidian

    CH_obsidian Newbie
    Newcomer

    Joined:
    May 11, 2020
    Messages:
    4
    Country:
    China
    Ok, thank you very much
     
    Last edited by CH_obsidian, May 11, 2020
  8. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,366
    Country:
    Spain
    If you find useful my tutorials, credits are appreciated :D
     
  9. SepraB

    SepraB Newbie
    Newcomer

    Joined:
    May 19, 2020
    Messages:
    2
    Country:
    Colombia
    Hey, @Manurocker95 thanks for sharing all this info. As a pokemon fan, multimedia professional, unity developer and video-games enthusiast, I find all these tutorials awesome!!!!!

    This is my first time decrypting a game and happy to be doing it with pokemon. I have read your tutorials and followed the steps, they are great. I also checked your youtube videos... the way you are re-creating lightning, atmosphere, movement.... WOW

    But still, I have a question somehow out of the topic. I have found characters, pokemon, grass, trees, doors, stadium but where the **** are the buildings (houses, pokemon centers, etc)??? Thanks in advance if you can solve this question.
     
    Last edited by SepraB, May 19, 2020
  10. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,366
    Country:
    Spain
    Thanks man! Always glad to help :)

    iirc, models are placed in romfs/bin/field/area/yourdesiredarea/mdl
     
  11. SepraB

    SepraB Newbie
    Newcomer

    Joined:
    May 19, 2020
    Messages:
    2
    Country:
    Colombia
    Thank you so much!! I am understanding more about the file extensions. Hope your plans continue that good, I will be attentive to your updates.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - [Tutorial], Pokémon, animated