mheasell / mappy Goto Github PK
View Code? Open in Web Editor NEWA modern map editor for Total Annihilation
License: MIT License
A modern map editor for Total Annihilation
License: MIT License
System.OverflowException: La operación aritmética ha provocado un desbordamiento.
at Mappy.Collections.Grid<T>..ctor(int width, int height) in C:\projects\mappy\Mappy\Collections\Grid.cs:line 21
at Mappy.Data.MapTile..ctor(int width, int height) in C:\projects\mappy\Mappy\Data\MapTile.cs:line 24
at Mappy.Services.MapLoadingService.CreateMap(int width, int height) in C:\projects\mappy\Mappy\Services\MapLoadingService.cs:line 29
at Mappy.Services.Dispatcher.New(int width, int height) in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 771
at Mappy.Services.Dispatcher.New() in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 203
at Mappy.Models.MainFormViewModel.NewMenuItemClick() in C:\projects\mappy\Mappy\Models\MainFormViewModel.cs:line 180
at Mappy.UI.Forms.MainForm.NewMenuItemClick(object sender, EventArgs e) in C:\projects\mappy\Mappy\UI\Forms\MainForm.cs:line 146
at System.Windows.Forms.ToolStripItem.RaiseEvent(object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(ref Message m, MouseButtons button, int clicks)
at System.Windows.Forms.Control.WndProc(ref Message m)
at System.Windows.Forms.ScrollableControl.WndProc(ref Message m)
at System.Windows.Forms.ToolStrip.WndProc(ref Message m)
at System.Windows.Forms.ToolStripDropDown.WndProc(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(ref Message m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(ref MSG msg)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, int reason, int pvLoopData)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(int reason, ApplicationContext context)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Mappy.Program.Main() in C:\projects\mappy\Mappy\Program.cs:line 79
Looks like someone tried to make a really giant map :)
System.ArgumentException in :0
Parameter is not valid.
:0 - System.Drawing.Bitmap..ctor(int width, int height, PixelFormat format)
Created by Michael Heasell via Bugsnag
TA has a hard limit on the number of files with .hpi extension that can be in the TA folder. It has no limit for .ufo and this is the file extension that is used for all maps, as a rule. I know it's easy enough to just type .ufo at the end but this would be nice to have.
Also, TA-Forever's map library system does not even recognise files with the .hpi extension.
When trying to open V maps.ufo
with a debugger attached, the program crashes while reading maps/
directory entries, on the filename after [V] Crosshair.tnt
. Without the debugger attached the editor crashes later, when a map is selected from the map choosing dialog.
The debugger hits some native exception on this line of HpiReader.cs
:
next = NativeMethods.HPIDir(this.handle, next, directory, s, out type, out size);
No stack or locals information is available. Possibly something is going wrong inside the HPIUtil code.
ExampleException in home#example
Something really bad happened
app/controllers/home_controller.rb:123 - example
app/controllers/other_controller.rb:12 - broken
lib/important/magic.rb:4 - load_something
Created by Michael Heasell via Bugsnag
Via Bugsnag
reported version 1.0.1.0
System.ArgumentException: source area overlaps source bounds
at Mappy.Collections.GridMethods.Copy<T>(IGrid<T> src, IGrid<T> dest, int sourceX, int sourceY, int destX, int destY, int width, int height) in C:\projects\mappy\Mappy\Collections\GridMethods.cs:line 49
at Mappy.Operations.CopyAreaOperation<T>.Execute() in C:\projects\mappy\Mappy\Operations\CopyAreaOperation.cs:line 40
at Mappy.Operations.CompositeOperation.Execute() in C:\projects\mappy\Mappy\Operations\CompositeOperation.cs:line 22
at Mappy.Operations.CompositeOperation.Execute() in C:\projects\mappy\Mappy\Operations\CompositeOperation.cs:line 22
at Mappy.Operations.CompositeOperation.Execute() in C:\projects\mappy\Mappy\Operations\CompositeOperation.cs:line 22
at Mappy.Models.UndoableMapModel.ClearSelection() in C:\projects\mappy\Mappy\Models\UndoableMapModel.cs:line 386
at Mappy.Services.Dispatcher+<>c.<ClearSelection>b__50_0(UndoableMapModel x) in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 482
at Mappy.Maybe<T>.IfSome(Action<T> action) in C:\projects\mappy\Mappy\Maybe.cs:line 161
at Mappy.Services.Dispatcher.ClearSelection() in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 482
at Mappy.Models.MapViewViewModel.MouseDown(Point location) in C:\projects\mappy\Mappy\Models\MapViewViewModel.cs:line 201
at Mappy.UI.Controls.MapViewPanel.MapViewMouseDown(object sender, MouseEventArgs e) in C:\projects\mappy\Mappy\UI\Controls\MapViewPanel.cs:line 47
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at Mappy.UI.Controls.LayerView.OnMouseDown(MouseEventArgs e) in C:\projects\mappy\Mappy\UI\Controls\LayerView.cs:line 85
at System.Windows.Forms.Control.WmMouseDown(ref Message m, MouseButtons button, int clicks)
at System.Windows.Forms.Control.WndProc(ref Message m)
at System.Windows.Forms.ScrollableControl.WndProc(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(ref Message m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(ref MSG msg)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, int reason, int pvLoopData)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(int reason, ApplicationContext context)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Mappy.Program.Main() in C:\projects\mappy\Mappy\Program.cs:line 79
via bugsnag:
System.Exception: Invalid chunk header
at TAUtil.Hpi.HpiArchive.Extract(FileInfo file, byte[] buffer) in C:\projects\mappy\TAUtil\TAUtil\Hpi\HpiArchive.cs:line 242
at Mappy.Services.MapLoadingService.CreateFromHpi(string hpipath, string mappath, bool readOnly) in C:\projects\mappy\Mappy\Services\MapLoadingService.cs:line 91
at Mappy.Services.Dispatcher.OpenFromHapi(string filename) in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 735
at Mappy.Services.Dispatcher.OpenMap(string filename) in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 679
at Mappy.Services.Dispatcher.Open() in C:\projects\mappy\Mappy\Services\Dispatcher.cs:line 218
at Mappy.Models.MainFormViewModel.OpenMenuItemClick() in C:\projects\mappy\Mappy\Models\MainFormViewModel.cs:line 185
at Mappy.UI.Forms.MainForm.OpenMenuItemClick(object sender, EventArgs e) in C:\projects\mappy\Mappy\UI\Forms\MainForm.cs:line 92
at System.Windows.Forms.ToolStripItem.RaiseEvent(object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(ref Message m, MouseButtons button, int clicks)
at System.Windows.Forms.Control.WndProc(ref Message m)
at System.Windows.Forms.ScrollableControl.WndProc(ref Message m)
at System.Windows.Forms.ToolStrip.WndProc(ref Message m)
at System.Windows.Forms.ToolStripDropDown.WndProc(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(ref Message m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(ref MSG msg)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, int reason, int pvLoopData)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(int reason, ApplicationContext context)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Mappy.Program.Main() in C:\projects\mappy\Mappy\Program.cs:line 79
Via bugsnag:
System.InvalidOperationException: 비트맵 영역이 이미 잠겨 있습니다.
at System.Drawing.Graphics.CheckErrorStatus(int status)
at System.Drawing.Graphics.DrawImage(Image image, int x, int y)
at System.Drawing.Graphics.DrawImageUnscaled(Image image, int x, int y)
at Mappy.UI.Painters.BitmapGridPainter.Paint(Graphics g, Rectangle clipRectangle) in C:\projects\mappy\Mappy\UI\Painters\BitmapGridPainter.cs:line 36
at Mappy.UI.Drawables.DrawableTile.Draw(Graphics graphics, Rectangle clipRectangle) in C:\projects\mappy\Mappy\UI\Drawables\DrawableTile.cs:line 82
at Mappy.UI.Controls.DrawableItem.Draw(Graphics g, Rectangle clip) in C:\projects\mappy\Mappy\UI\Controls\DrawableItem.cs:line 75
at Mappy.UI.Controls.SelectableItemsLayer.DoDraw(Graphics graphics, Rectangle clipRectangle) in C:\projects\mappy\Mappy\UI\Controls\SelectableItemsLayer.cs:line 71
at Mappy.UI.Controls.AbstractLayer.Draw(Graphics graphics, Rectangle clipRectangle) in C:\projects\mappy\Mappy\UI\Controls\AbstractLayer.cs:line 33
at Mappy.UI.Controls.LayerCollection.Draw(Graphics graphics, Rectangle clipRectangle) in C:\projects\mappy\Mappy\UI\Controls\LayerCollection.cs:line 115
at Mappy.UI.Controls.LayerView.OnPaint(PaintEventArgs pe) in C:\projects\mappy\Mappy\UI\Controls\LayerView.cs:line 78
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, short layer)
at System.Windows.Forms.Control.WmPaint(ref Message m)
at System.Windows.Forms.Control.WndProc(ref Message m)
at System.Windows.Forms.ScrollableControl.WndProc(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(ref Message m)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(ref Message m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
The original error message is in Korean. According to google translate, "비트맵 영역이 이미 잠겨 있습니다" translates to "Bitmap area is already locked"
Showing features as the size they will actually appear on the map would make it much easier to choose features from the browser. Could be just an option "show features actual size"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.