BinaryConstruct/Terraria-Map-Editor — Issue #189: TEdit Requiring Installation in Worlds Directory
Author: Alphanos
Created: 2012-01-02 16:57:05+00:00
State: open

Not sure if this counts at a bug or not, maybe it's by design. Originally I installed TEdit in a subdirectory off of the Terraria directory. However it crashed when I tried to edit things. Checking the log, I found that while it had created an undo subdirectory where it was located, it then looked for it in my profile's Worlds directory instead. Moving the executable and associated files fixed the problem.

2011-12-31 3:09 PM: Error - Could not find a part of the path 'C:\Documents and Settings\Administrator\My Documents\My Games\Terraria\Worlds\undo\undo_temp_0'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at TEditXna.Editor.Undo.UndoBuffer.Write(String filename) in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\Editor\Undo\UndoBuffer.cs:line 31
at TEditXna.Editor.Undo.UndoManager.SaveUndo() in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\Editor\Undo\UndoManager.cs:line 37
at TEditXna.Editor.Tools.PencilTool.MouseUp(TileMouseState e) in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\Editor\Tools\PencilTool.cs:line 47
at TEditXna.ViewModel.WorldViewModel.MouseUpTile(TileMouseState e) in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\ViewModel\WorldViewModel.cs:line 264
at TEditXna.View.WorldRenderXna.xnaViewport_HwndLButtonUp(Object sender, HwndMouseEventArgs e) in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\View\WorldRenderXna.xaml.cs:line 612
at BCCL.UI.Xaml.XnaContentHost.GraphicsDeviceControl.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in D:\Dev\_PROJECTS\BCCL\BCCL.Xna\UI\Xaml\XnaContentHost\GraphicsDeviceControl.cs:line 448
at System.Windows.Interop.HwndHost.SubclassWndProc(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at TEditXna.App.Main() in D:\Dev\_PROJECTS\Terraria\Terraria-Map-Editor\TEditXna\obj\x86\Release\App.g.cs:line 0