Giter Club home page Giter Club logo

mappy's People

Contributors

mheasell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mappy's Issues

"System.OverflowException: La operación aritmética ha provocado un desbordamiento." when creating a new map

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 :)

Start pin position is incorrect

Commanders appear in-game where the top of the start position pin is on the map. They should be appearing at the bottom (where the pin points). Attached is Mappy on Gods of War overlaid with an in-game screenshot of a new game on Gods of War.

gow-commander-pin

Feature request: save as .ufo by default instead of .hpi

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.

crash when loading V maps

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

Test error in Example.com

ExampleException in home#example
Something really bad happened

View on Bugsnag

Stacktrace

app/controllers/home_controller.rb:123 - example
app/controllers/other_controller.rb:12 - broken
lib/important/magic.rb:4 - load_something

View full stacktrace

Created by Michael Heasell via Bugsnag

"System.ArgumentException: source area overlaps source bounds"

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

"System.Exception: Invalid chunk header" when loading a map

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

"System.InvalidOperationException: Bitmap area is already locked." when drawing tiles

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.