Recent Posts

Pages: [1] 2 3 ... 10
1
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 18, 2018, 09:50:37 AM »
SandBox

Bind formation of selected target so it's obvious which it's in.

Working out if a target unit is in arc of fire.
This involves calculating the offset between facing of a unit that is shooting and the bearing to the target.
At the moment I'm using 30 degrees but I may go for as much as 45.
Some designers (of other games and sims ) suggest arc of fire of close order infantry should be very limited.
I don't really follow that.
Napoleonics units drilled for front line(s) kneeling and firing line shooting over them.
Back ranks didn't shoot inbetween those in front - they shot over them.
Even the narrowest standard frontage per man allows for plenty of rotation of each.
And of course each soldier is side on to the direction they shoot in.
Yet some people reckon a unit should only shoot directly to it's front.

I think this is a convention adopted for some tabletop games as convenient.
Then propagated into computer games.
I suspect partly because it simplifies the calculations a lot if a unit only shoots directly ahead.
2
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 16, 2018, 12:28:57 PM »
SandBox

Cycle through formations with right click of piece.
Handle column in enfilade calculation.
A column is effectively rotated 90 degrees for purposes of calculating it's edge.
3
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 15, 2018, 12:14:21 PM »
SandBox

Enfilade multiplier calculation.
Enfilade is sometimes called flanking fire.
When a unit shoots at an angle acute to an advancing line of enemy then each bullet has more soldiers it can potentially hit. That makes such fire particularly effective.
https://en.wikipedia.org/wiki/Enfilade_and_defilade

This is one of the reasons commanders would try and advance their battalion straight on towards an enemy unit and avoid crossing the face of any other.
The multiplier varies between x3 when the target is directly in line with shooting and x1 (none) when it's at 60 or more degrees.

Here red is shooting at blue.
The unit blue represents is facing directly down and the point of measure is centre to centre.
There is only 1 degree offset of the blue unit's line considered to be where the men would be and hence this is almost an ideal angle for red.

4
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 13, 2018, 09:18:07 AM »
SandBox

Recalculate position etc when rotating pieces.
Working on bearing and relative angle of target piece to shooting piece.
5
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 12, 2018, 09:33:54 AM »
Choose Map

Added ability to delete map files.
This will eventually need to distinguish between paid content and ones designed by the user.
These may go in different folders though - Steam has it's own expectations for the folder structure of one of it's apps.

6
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 12, 2018, 04:16:14 AM »
MapEditor

Bug fixes on places:
Initial visibility - places were never visible in a loaded map.
The numbers showing points were repeated in the plaque when a saved map was reloaded.
Initially this bug looked totally weird - when debugging I could see the points were correct and the geometries initially correct.
Why on earth were they then changing?
These are interpreted into a collection of geometries.
The property holding these was being serialised/deserialised when it is intended to be purely calculated.
7
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 11, 2018, 08:39:03 AM »
SandBox

Bear in mind that the sandbox is intended as a utility and hence styling is only a priority if it interferes with readability.

Allow selection of red or blue piece as firing / target.
Calculate distance scaled to metres between unit centres.
This will be necessary to work out whether a unit is within effective range or not and which range band.
It also allows us to double check what units will look like at firing distances on the board.

Started on the bearing relative to facing calculations.
Mainly prove the code which will work out whether an enemy unit is within a unit's firing arc.

This is shown in the first of several tabs.
I've not even finished the first tab yet though


Internal interest only:
All
Change to how common libraries are referenced so it's easier to ensure they're compiled.
ModelLib
Moving numerous bearing calculations into ModelLib from MapEditor so they're common across the suite.
8
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 10, 2018, 07:45:08 AM »
SandBox

Added tooltip showing unit data to treeview
In the image below, the cursor is over Colborne's brigade.
Removed same from piece - I found it gets in the way a bit when trying to drag.

Drag and rotate pieces.
The piece view started off as a copy of that in ScenarioEditor.
There are now quite a few changes to the sandbox version.
The sandbox version now has:

.5 opacity by default and 1 when selected.
Only the unit symbol hit tests - this is necessary so you can rotate and drag two units when close.
Their borders are likely to overlap which meant you couldn't rotate the one with a lower Z-Order.
A different way of doing Z-Order of it's parts.
A smaller subtle triangle denoting facing.
The grey outline and facing triangle are only visible on the (two) selected pieces.
Frontage is the diameter - matched by rather than defined by the front of the unit symbol.

9
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 09, 2018, 10:12:30 AM »
SandBox
Now loading the map and showing pieces
Mostly cut and pasted from Scenario Editor.
Needs more work to stabilise even what you see there...
But I'm fairly pleased with progress so far.




The really hard part will come when I start turning our ideas on combat and morale into code.
10
General Staff Support Forum / Re: Changelog - picture heavy
« Last post by Andy ONeill on October 08, 2018, 02:02:58 PM »
Sand Box

Load Scenario
Add armies to treeviews in tab control


These treeviews have more or less the default treeview template rather than the styled ones you see in other modules.
Pages: [1] 2 3 ... 10