Jump to content
  • Portrait Mod

    evandixon

    This mod lets you customize the Pokémon portraits. Additionally, it will copy the default emotion to empty slots, for use with the Starter Mod.

    Before continuing, please make sure you've reached the "Making Mods" section of the Sky Editor guide to ROM editing.

    Instructions

    1. On the New Project window, choose "Portrait Mod" in the dropdown, and fill in the name with something that makes sense. Then click OK.
      image.png
    2. Wait for the loading to complete. This may take a while depending on your computer.
    3. Portraits should be under (Solution Directory)/(Project Directory)/Pokemon/Portraits. Sky Editor has no UI for this, so you will need to use another program.

    Remarks

    Portraits can only have 15 colors. Sky Editor currently relies on KaoUtil by @psy_commando, which requires the images are indexed PNGs. Pending Issue #68, this may change in the future.

    Edited by evandixon


    User Feedback


    I wonder if it's okay to ask a question here, 

    I have successfully built and packed the mod without errors and used indexed portraits with max 15 colours. However my game always freezes or crashes when my custom portrait is supposed to show up, here is the screenshot. It's just black. 

    I was wondering if I missed something important? 

    Thank you a lot! 

    Screenshot_20181128-002559.jpg

    Share this comment


    Link to comment
    Share on other sites
    26 minutes ago, Kyiwtie said:

    However my game always freezes or crashes when my custom portrait is supposed to show up,

    Could you upload your portraits please?

    Share this comment


    Link to comment
    Share on other sites
    23 hours ago, Kyiwtie said:

    I hope this works! sorry for the delay

    1031_starly-female.rar

    I just pushed an update that should fix it. It also drops the requirement to use indexed PNG's, so now any kind of PNG that .Net can read should work. Here's the download link for Sky Editor, and here's a modpack that uses your portraits. I don't know what player you want, so I left the player selection alone. 

    image.png

    Nice work on the portraits btw. Starly's face shows how I felt after finally getting it working.

    Share this comment


    Link to comment
    Share on other sites
    7 hours ago, evandixon said:

    I just pushed an update that should fix it. It also drops the requirement to use indexed PNG's, so now any kind of PNG that .Net can read should work. Here's the download link for Sky Editor, and here's a modpack that uses your portraits. I don't know what player you want, so I left the player selection alone. 

    image.png

    Nice work on the portraits btw. Starly's face shows how I felt after finally getting it working.

     

    You're the bomb! Thank you so much I can't wait to try it out! I owe you big time :D <3

    Share this comment


    Link to comment
    Share on other sites
    On 11/28/2018 at 12:56 AM, evandixon said:

    Could you upload your portraits please?

     

    EDIT: I found and fixed the issue, for some pachirisu images I had less than 15 colours. My bad! It works perfectly now, thank you!

     

    I hate to be that gal but I tried packing one myself since I added pachirisu portraits but the program keeps crashing or the packing doesn't end. Here is my last error report:

    I have them all indexed as well.

     

     

    System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
      --- End of inner exception stack trace ---
      at SkyEditor.Core.Utilities.AsyncFor.<RunFor>d__44.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado.VB$StateMachine_18_GetBytes.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 161
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado.VB$StateMachine_19_Save.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 222
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Projects.KaomadoProject.VB$StateMachine_4_Build.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Projects\KaomadoProject.vb:line 66
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Projects.Solution.<BuildProjects>d__39.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Projects.Solution.<BuildProjects>d__39.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Projects.Solution.<Build>d__38.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Projects.Solution.<Build>d__37.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.ROMEditor.DSModSolution.VB$StateMachine_5_Build.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\DSModSolution.vb:line 60
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.ApplicationViewModel.TaskProgressReporterWrapper.<Start>d__32.MoveNext()
    ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()<---
    <---

    ---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()<---
    <---

    ---> (Inner Exception #2) System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.BadImageFormatException: Too many colors in the image.
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetPalette(Bitmap image, Int32 paletteSize) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 130
      at SkyEditor.ROMEditor.Utilities.GraphicsHelpers.GetKaoPalette(Bitmap image) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Utilities\GraphicsHelpers.vb:line 145
      at SkyEditor.ROMEditor.MysteryDungeon.Explorers.Kaomado._Closure$__18-0.VB$StateMachine___Lambda$__0.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Kaomado.vb:line 166
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Utilities.AsyncFor.<>c__DisplayClass44_1.<<RunFor>b__0>d.MoveNext()<---
    <---

    0456_pachirisu.rar

    Edited by Kyiwtie
    found issue

    Share this comment


    Link to comment
    Share on other sites
    On 11/30/2018 at 11:27 AM, Zekrom997 said:

    Is it possible to port SMD potrait with this mod?

    It is, but only if you take care of resizing the portraits and reducing the number of colors yourself. They need to be 40x40 and have no more than 15 colors. (Maybe 16; it's been a while since I looked.)

    Share this comment


    Link to comment
    Share on other sites


    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×