Jump to content
  • Portrait Mod

    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.

    Edited by evandixon




    User Feedback

    Recommended Comments



    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

    Is it possible to port SMD potrait with this mod?

    Edited by Zekrom997

    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

    Hi There! I'm getting this error after I attempt to build my portrait and starter mod. System.BadImageFormatException: Too many colors in the image. I know the portraits can't have more than 15 colors, but horsea (the poke i'm modding for) has about 18 colors in its standard portrait. Is that the actual limit, or is horsea somehow an exception? Also attached are the portraits for horsea I have made. 

     

    Horsea.zip

    Share this comment


    Link to comment
    Share on other sites

    On 1/30/2019 at 5:49 PM, Wanya said:

    Hi There! I'm getting this error after I attempt to build my portrait and starter mod. System.BadImageFormatException: Too many colors in the image. I know the portraits can't have more than 15 colors, but horsea (the poke i'm modding for) has about 18 colors in its standard portrait. Is that the actual limit, or is horsea somehow an exception? Also attached are the portraits for horsea I have made. 

     

    Horsea.zip

    I'm only seeing 15 colors in the standard one you uploaded.

    image.png

    Having repacked the portraits a lot without error, I'd be very surprised if any of the existing portraits had more than 15 colors. The image format can only physically store 16, and one of those is for transparency. (I don't remember if Sky Editor supports transparency.)

    Share this comment


    Link to comment
    Share on other sites

    7 hours ago, evandixon said:

    I'm only seeing 15 colors in the standard one you uploaded.

    image.png

    Having repacked the portraits a lot without error, I'd be very surprised if any of the existing portraits had more than 15 colors. The image format can only physically store 16, and one of those is for transparency. (I don't remember if Sky Editor supports transparency.)

    Can transparency affect the colour count? Since I don't have a program to count the colours (I'm using affinity photo and I this is the first time I've done pixel art), I counted the colours manually. There's 4 colours in the eyes, 4 different blues for the body, 3 different yellows in the belly, 3 for the grey outlining and 4 for the background, making a total of 18, unless the grey outlining don't count for colours? Also, almost all of my portraits are getting errors when I unpack them individually. the only ones not giving me errors are grin, shouting, dizzy, and sign (all with the lowest colour count). I don't know what i'm doing wrong...

    Share this comment


    Link to comment
    Share on other sites

    On 2/2/2019 at 5:32 PM, Wanya said:

    Can transparency affect the colour count?

    Transparency counts as a single color, but I'm not aware of any portraits that have any.

    On 2/2/2019 at 5:32 PM, Wanya said:

    Since I don't have a program to count the colours (I'm using affinity photo and I this is the first time I've done pixel art), I counted the colours manually.

    Since some of the colors can be very close to each other, manual counting will not only prove difficult but also unreliable.

    I didn't check all of them, but Pained has one too many colors:

    image.png

    To get here in GIMP, use Colors -> Info -> Colorcube Analysis

    Grin works because it only has 13. The maximum is 15.

    Share this comment


    Link to comment
    Share on other sites

    Hello! I have tried to build the modpack, but the portrait mod seems to be stuck on "packing", even after an hour or so. Is this normal?

    Share this comment


    Link to comment
    Share on other sites

    Just now, Slimy Sliggoo said:

    Hello! I have tried to build the modpack, but the portrait mod seems to be stuck on "packing", even after an hour or so. Is this normal?

    Are there any errors in the errors dialog? It's pretty bad about putting stuff in there without telling you.

    Share this comment


    Link to comment
    Share on other sites

    I did check the errors tab, but nothing is written in there. I have also checked, and all the portraits (at least the ones I made) had 15 colors or less.

    Edited by Slimy Sliggoo

    Share this comment


    Link to comment
    Share on other sites

    So after a few hours of packing, it finally finished, but it ended with an error.

    System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The directory is not empty.

      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
      at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
      at DS_ROM_Patcher.Utilities.xdelta.Dispose(Boolean disposing)
      at DS_ROM_Patcher.ModBuilder._Closure$__77-0.VB$StateMachine___Lambda$__8.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.Utilities.AsyncFor.<>c__DisplayClass42_1`1.<<RunForEach>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
      --- End of inner exception stack trace ---
      at SkyEditor.Core.Utilities.AsyncFor.<RunForEach>d__42`1.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 DS_ROM_Patcher.ModBuilder.VB$StateMachine_77_BuildMod.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.Projects.GenericModProject.VB$StateMachine_41_Build.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Projects\GenericModProject.vb:line 281
    --- 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.SkyStarterModProject.VB$StateMachine_5_Build.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\Explorers\Projects\SkyStarterModProject.vb:line 119
    --- 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.IO.IOException: The directory is not empty.

      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
      at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
      at DS_ROM_Patcher.Utilities.xdelta.Dispose(Boolean disposing)
      at DS_ROM_Patcher.ModBuilder._Closure$__77-0.VB$StateMachine___Lambda$__8.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.Utilities.AsyncFor.<>c__DisplayClass42_1`1.<<RunForEach>b__0>d.MoveNext()
      --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.IO.IOException: The directory is not empty.

      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
      at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
      at DS_ROM_Patcher.Utilities.xdelta.Dispose(Boolean disposing)
      at DS_ROM_Patcher.ModBuilder._Closure$__77-0.VB$StateMachine___Lambda$__8.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.Utilities.AsyncFor.<>c__DisplayClass42_1`1.<<RunForEach>b__0>d.MoveNext()<---
    <---

    Share this comment


    Link to comment
    Share on other sites

    I think I may have the same issue

    Exception Details:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Xceed.Wpf.AvalonDock.Controls.LayoutAnchorableTabItem.OnMouseEnter(MouseEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
       at System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, IList`1 otherOrigins, DeferredElementTreeState& oldTreeState, Action`2 originChangedAction)
       at System.Windows.Input.MouseDevice.ChangeMouseOver(IInputElement mouseOver, Int32 timestamp)
       at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.MouseDevice.Synchronize()
       at System.Windows.Input.InputManager.HitTestInvalidatedAsyncCallback(Object arg)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Window.ShowHelper(Object booleanBox)
       at System.Windows.Window.ShowDialog()
       at SkyEditor.UI.WPF.StartupHelpers.VB$StateMachine_4_ShowMainWindow.MoveNext()

    Loaded Assemblies:
    --------------------
    mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

    SkyEditor.ROMEditor.UI.WPF, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.ROMEditor.UI.WPF.exe

    PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll

    WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll

    System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

    System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

    PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll

    System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll

    System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

    System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

    SkyEditor.UI.WPF, Version=0.0.0.158, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.UI.WPF.dll

    SkyEditor.Core, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.Core.dll

    Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll

    System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

    System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

    Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
    C:\Users\Doryn\Desktop\Games\Sky Editor\Newtonsoft.Json.dll

    System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll

    System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll

    System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll

    SkyEditor.ROMEditor.Windows, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.ROMEditor.Windows.dll

    SkyEditor.CodeEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.CodeEditor.dll

    SkyEditor.CodeEditor.UI.WPF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.CodeEditor.UI.WPF.exe

    SkyEditor.ROMEditor, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\SkyEditor.ROMEditor.dll

    DSPatcher, Version=1.0.0.4, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\DSPatcher.exe

    DotNet3dsToolkit, Version=0.0.0.86, Culture=neutral, PublicKeyToken=null
    C:\Users\Doryn\Desktop\Games\Sky Editor\DotNet3dsToolkit.dll

    ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310
    C:\Users\Doryn\Desktop\Games\Sky Editor\ICSharpCode.AvalonEdit.dll

    Xceed.Wpf.AvalonDock, Version=3.4.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4
    C:\Users\Doryn\Desktop\Games\Sky Editor\Xceed.Wpf.AvalonDock.dll

    PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll

    PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXml.dll

    PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemData.dll

    UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll

    System.Deployment, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll

    Microsoft.GeneratedCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    An error occurred while listing the Loaded Assemblies:
    System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
       at System.Reflection.Emit.InternalAssemblyBuilder.get_Location()
       at SkyEditor.UI.WPF.ErrorWindow.UpdateExceptionDetailsMessage()

    Share this comment


    Link to comment
    Share on other sites

    Hey!

    When the tool gets to the patching stage for my portrait mod, this error shows up. (I'm pretty sure I'm using a supported ROM)

    https://i.imgur.com/QiWthuA.png

     

    When testing it out in DeSmuME, the rom freezes like this after getting the starter.

    https://i.imgur.com/3lRBRIK.png

    I'm wondering if I did anything wrong? (I am  using wine with .NET framework 4.6.2 on it. I know it isn't supported, but everything seems to work fine) The portraits from said mod are also provided.

    portraits.zip

    Share this comment


    Link to comment
    Share on other sites

    6 hours ago, augustus__ said:

    I'm wondering if I did anything wrong? (I am  using wine with .NET framework 4.6.2 on it. I know it isn't supported, but everything seems to work fine) The portraits from said mod are also provided.

    portraits.zip 233.93 kB · 0 downloads

    I've never tested it outside of Windows. I make no promises I can get it working, but I can take a look at least. What OS are you using? Also could you upload the modpack zip file in the output directory?

    Share this comment


    Link to comment
    Share on other sites

    10 hours ago, augustus__ said:

    I'm using Linux.

    There's a lot of different kinds of Linux. Which distro/version?

    Share this comment


    Link to comment
    Share on other sites

    Hi, I am making two modpacks, while one is on hold while i try to get in touch with the Stats Util creator, I'm almost done with adding Numel as a viable partner! Only problem is, i am having a problem a lot of others have had... getting an error that my palette has too many colors. I've reduced each image to 14 colors now and I am having no success. I would love to know why it's not working...here are the portraits and error message

     

    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 168
    --- 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.Utilities.AsyncFor.AsyncFor.<>c__DisplayClass47_1.<<RunFor>b__1>d.MoveNext()
      --- End of inner exception stack trace ---
      at SkyEditor.Utilities.AsyncFor.AsyncFor.<RunFor>d__47.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 163
    --- 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 224
    --- 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 69
    --- 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.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 168
    --- 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.Utilities.AsyncFor.AsyncFor.<>c__DisplayClass47_1.<<RunFor>b__1>d.MoveNext()<---

     

    EDIT: I am also having this issue with my other portraits. for vulpix 

    0350_numel.rar

    0037_vulpix.rar

    Edited by maddiepink5

    Share this comment


    Link to comment
    Share on other sites

    On 7/4/2019 at 12:10 AM, maddiepink5 said:

    Hi, I am making two modpacks, while one is on hold while i try to get in touch with the Stats Util creator, I'm almost done with adding Numel as a viable partner! Only problem is, i am having a problem a lot of others have had... getting an error that my palette has too many colors. I've reduced each image to 14 colors now and I am having no success. I would love to know why it's not working...here are the portraits and error message

     

    EDIT: I am also having this issue with my other portraits. for vulpix 

    0350_numel.rar 20.42 kB · 2 downloads

    0037_vulpix.rar 29.83 kB · 0 downloads

    It does look like your Numel portraits should be working. However, the grin and angry portraits for Vulpix both use well over 15 colors (I haven't checked the others). If those are present when building, then unfortunately the whole project will fail to build.

    Share this comment


    Link to comment
    Share on other sites

    I see what you are talking about, my art program was giving me completely different information about the colors. Should note that just the Numel portraits by themselves weren't working, though. Nevertheless, I've gone and indexed all the portraits and I am still getting errors. Here is the error message and updated portraits. If it is of any interest at all, when I went to choose Numel as my partner by using these images by manually editing kaomado.kao, it simply recolored the last partner I had selected with Numel's palette and froze.

     

    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 168
    --- 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.Utilities.AsyncFor.AsyncFor.<>c__DisplayClass47_1.<<RunFor>b__1>d.MoveNext()
      --- End of inner exception stack trace ---
      at SkyEditor.Utilities.AsyncFor.AsyncFor.<RunFor>d__47.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 163
    --- 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 224
    --- 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 69
    --- 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 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.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 168
    --- 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.Utilities.AsyncFor.AsyncFor.<>c__DisplayClass47_1.<<RunFor>b__1>d.MoveNext()<---

     

    EDIT: I'm an idiot, fixed it! Got a working mod, finally! Thanks for the help

    Portraits.rar

    Edited by maddiepink5

    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

×
×
  • Create New...