Recent Posts

Pages: 1 ... 7 8 [9] 10
81
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on January 05, 2019, 10:05:29 AM »
Scenario Editor

Fix the mechanism handles routed validation failures.
The nuget xaml behaviors are subtly incompatible with part of MVVMLight.
I expect Laurent Bugnion will change the reference in eventtocommand eventually but I need a workround for now.

All
Reduce size of the infantry square formation.
A "real" battalion square would maybe be 50 yards or so square making it under a quarter of a battalion frontage.
That would be tiny if I did that though so half the frontage square will have to do.
It's still going to be too big but this now as small as I can make it and you can still make out the kriegsspiel strength bands.

SandBox
More work making get the "target" points for a piece into a generic method that varies based on formation.
This is the points on a line for all but square when it's 4 lines.
82
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on January 04, 2019, 01:57:32 PM »
Army Editor

Blank out description for new army.

SandBox

Calculating the points for a unit in square formation.


Map Editor


In order to try and improve overall performance of the map editor when a complex map is being edited I experimented with virtualising the left tabs.
This does not noticeably improve performance and introduces a number of complications.
I've parked this work in a separate branch.
It'd be nice if switching  tabs was instant, but it seems likely saving the user that second would take an inordinate amount of work.
83
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on January 03, 2019, 09:52:36 AM »
Map Editor

Redid the bridge area calculation.

This was marking an area equal to the line drawn but bridges are drawn from the start point to the end.

SnapLine

Some refinement of the line terrains process.
Added areas.

Like when you're drawing these freehand, areas are self closing and to draw a square you draw a U.

For example:

Translated to a Field gives:


The dashed line is from the last point clicked to the cursor.
That screen grab doesn't include the cursor.


Not everything can work with this - removed those terrains which will not from the combo
Seems stable now.




I wasn't particularly careful drawing the lines there.
If you draw a line doesn't look right you can reset.
Drawing a line precisely around a field or next to another is a bit fiddly.

Since these are translated into regular terrains you can of course also delete one after you translate.

84
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on January 02, 2019, 12:58:12 PM »
Map Editor

SnapLines

Line (only) stable, still got to do area terrain types.
This new process allows you to define terrain using straight lines rather than the "ink" curved lines.
85
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on January 02, 2019, 03:26:47 AM »
Army Editor

I couldn't reproduce the issue reported with errors whilst deleting.
The current version of the map editor seems to work fine no matter whether I open a file, save, paste, edit.
I tried everything I can think of - no error.

The army file name should probably match the army name though and you can easily edit the army name.
I've changed file saving so it copes with changes to army name.
Hence if you open army XXX and change it's name to YYY when you save, the original XXX file will now be deleted and your army saved as YYY.
If you wanted to email an army to someone else, it should now be obvious in file manager which file is what.
 
86
Army Editor Tech Support / Re: crash detected deleting unit
« Last post by Andy ONeill on January 01, 2019, 02:17:38 PM »
You should be able to delete, no problem.

Just took a look at this.
The seasons festivities mean I'm not totally sober right now.
But I can't reproduce this issue with the current version of code I have.
I found a different problem with the save file name, which I've fixed and pushed the changes.
That will be delivered the next time Ezra puts a copy of the installer on the server.

I'll take another look tomorrow.

Maybe an old version of one of the libraries was distributed somehow.

The background to that "old" bug:

The unit structure you see units represented in for the treeview relies on the xml file structure.
A unit has a collection of subordinates which in turn has a collection of subordinates and so on.
When you delete it needs to go find the parent unit in order to take your unit out it's list of subordinates.
This is done by taking the CO Id property and taking a look for a unit with a matching ID.
When that wasn't set or two match then bad things happen.

You could open an xml file using internet explorer ( or an xml editor ) and check the IDs of one of your files are OK.
Or
Just click the renumber button and it'll redo the ids.
Since you don't have the scenario editor yet, the specific ID of a unit doesn't matter so much so long as they are consistent within the hierarchy.
When we eventually distribute the scenario editor then it'll matter... But we'll hopefully have worked out what's happening and fixed anything needs fixing by then.

87
Army Editor Tech Support / Re: crash detected deleting unit
« Last post by Mickey3D on January 01, 2019, 11:45:51 AM »
Renumbering IDs is solving the problem for me.
88
Army Editor Tech Support / Re: crash detected deleting unit
« Last post by Mickey3D on January 01, 2019, 11:35:26 AM »
I had a similar problem some times ago but then it was fixed: http://grogheads.com/forums/index.php?topic=22829.0

But I have done a test today and indeed the problem is back. Error message in the windows event log (sorry, French version):
Quote
Application : GSBPArmyEditor.exe
Version du Framework : v4.0.30319
Description : le processus a t arrt en raison d'une exception non gre.
Informations sur l'exception : System.InvalidOperationException
    System.Linq.Enumerable.SingleOrDefault[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
    ArmyEditor.MainWindowViewModel.<get_DeleteCommand>b__61_0(ArmyEditor.UnitVM)

Informations sur l'exception : System.Reflection.TargetInvocationException
    System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
    System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
    GalaSoft.MvvmLight.Helpers.WeakAction`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(System.__Canon)
    GalaSoft.MvvmLight.CommandWpf.RelayCommand`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(System.Object)
    MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
    System.Windows.Controls.Primitives.ButtonBase.OnClick()
    System.Windows.Controls.Button.OnClick()
    System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
    System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
    System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
    System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
    System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
    System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
    System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
    System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
    System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
    System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
    System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
    System.Windows.Input.InputManager.ProcessStagingArea()
    System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
    System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
    System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
    System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
    System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
    System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
    System.Windows.Application.RunDispatcher(System.Object)
    System.Windows.Application.RunInternal(System.Windows.Window)
    ArmyEditor.App.Main()

Version: 0.2018.09.05
Build date: 30 Oct 2018

89
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on December 31, 2018, 08:16:03 AM »
Map Editor

More testing and minor changes for re-ordering terrains.
I experimented with changing the hypsometric colours in order to try and give a more consistent tonal gradient between brown and cream.
Doing that resulted in a washed-out cooler look which is less attractive.... so I then backed the change out.

90
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on December 30, 2018, 01:20:16 PM »
Map Editor

Bug Fix.

Changing the zindex of terrain was leading to terrains having the wrong set of points associated.

The Id of the two objects was out of step.
Pages: 1 ... 7 8 [9] 10