Menu

Can't save

Help
Bob
2012-10-12
2013-05-08
  • Bob

    Bob - 2012-10-12

    How come I can't save? I extract my save to a folder inside a folder using Horizon, then I open willowtree, as an administrator, and I open my save. Then if I try to save, whether I edited it or not, it says this:

    ************** Exception Text **************
    System.ArgumentException: Value of 'null' is not valid for 'stream'.
       at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
       at System.Drawing.Image.FromStream(Stream stream)
       at WindowsFormsApplication1.WillowTree.Save_Click(Object sender, EventArgs e)
       at DevComponents.DotNetBar.BaseItem.RaiseClick(eEventSource source)
       at DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
       at DevComponents.DotNetBar.PopupItem.InternalMouseUp(MouseEventArgs objArg)
       at DevComponents.DotNetBar.ButtonItem.InternalMouseUp(MouseEventArgs objArg)
       at DevComponents.DotNetBar.MenuPanel.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at DevComponents.DotNetBar.MenuPanel.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Please explain to me how to fix this issue!

     
  • matt911

    matt911 - 2012-10-12

    The code looks like this in WT# 2.2.1.102:

                Assembly newAssembly = Assembly.GetExecutingAssembly();
                Stream WT_Icon = newAssembly.GetManifestResourceStream("WillowTree.Resources.WT_CON.png");
                Package.HeaderData.ContentImage = System.Drawing.Image.FromStream(WT_Icon);
    

    As far as I can see the only way for this error to happen is if the icon resource stream has been removed from WillowTree#.exe's internal manifest file.  If you have not tampered with the executable in some way that should not happen.  I remember back some time before version 2.2.1.102 there was an issue with the icon stream being missing and it was later fixed.  Perhaps you have one of the older broken versions?

    I'd suggest downloading the latest release version as your first option:

    https://sourceforge.net/projects/willowtree/files/latest/download?source=files

    You can work around the fact that WT# can't make the Xbox package since it can't access the icon by changing the savegame format of the save you edited to **PS3**, saving it as SaveGame.sav, then using Horizon to delete the old SaveGame.sav from inside your savegame package then inject your new SaveGame.sav in its place.  Ultimately then Horizon is handling the Xbox package creation step that WT# is failing.

     
  • Bob

    Bob - 2012-10-12

    Thank you very much! Turns out I didn't have the latest version and that was the problem. Strange how WillowTree didn't fell like telling me that though…

     
  • Bob

    Bob - 2012-10-12

    feel*

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.