Author Topic: Changelog - picture heavy  (Read 25139 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr D Ezra Sidran

  • Moderator
  • Velites
  • *****
  • Posts: 32
    • General Staff
Fixed bug in the way battle lines are calculated
« Reply #285 on: May 23, 2019, 10:00:49 AM »
Wow! This was the worst case worst bug I've hunted down and killed in my 30+ years of coding. I noticed an error in a picture I posted in this article on our development blog: http://general-staff.com/battle-lines-commanders-computers/.

It's been driving me crazy for two weeks. But, it's fixed now.  I'll write a bit more about this in a blog post shortly.


Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 340
Re: Changelog - picture heavy
« Reply #286 on: May 26, 2019, 06:52:30 AM »
Game

I've started prototyping the mechanism you will use to give move orders.
The idea is:

When in order mode, there will be a chevron appears when you mouse over one of your units.
You drag that to where you want your unit to go.
As you drag, the game will calculate whether you're ordering your men through invalid terrain like a swamp, river or whatever.
There will be an indication this would be an invalid move.
Which is why it's light green.
I'll probably use light green if OK, red if not.
Not sure about using colours matching your side whilst ordering.
You're not going to see enemy orders. ( Obviously ).

A line will be drawn to where you're moving and combined with the chevron this will of course look like an arrow.
When you mouse up you will see an arrow ( in order mode ) showing where you ordered them to go.
You can then issue another move and drag a new chevron.
Some limits to the number of arrows are likely but tbd.
As is exactly how road movement will apply.
Logically, this would be outside of threat from enemy since units would likely be deployed into line for combat and hence out of column and "off" any road by their CO.


Anyhow.
The chevron is somewhat tricky because it's point is where you're going to and it needs to drag smoothly.

I've therefore been experimenting in a scratch solution.



The blue rectangle is there so I can easily tell where a specific point is.
Both that and the chevron are positioned at 100, 100
So "usually" you'd expect the chevron's left point to be on the left edge of that rectangle.

Although that's tricky to show, the chevron also rotates around the point.  As you'd expect with something showing where you're going.



Offline Dr D Ezra Sidran

  • Moderator
  • Velites
  • *****
  • Posts: 32
    • General Staff
Range of Influence
« Reply #287 on: May 29, 2019, 06:53:41 AM »
Added Range of Influence calculations. These factor in 3D Line of Sight and Range of weapons. Below is a screen shot of the ROI mapped for the battle of Antietam at dawn.



Note: visual display of ROI is for AI debugging purposes and probably won't be available in the game (it's not really necessary). It shows what every unit can hit and the cumulative firepower of all units.

This is an ROI map from the American Kriegsspiel 1882 scenario:



Notice the range and accuracy of 19th century artillery; it's accuracy falls off quickly.

I will be writing a longer and more detailed blog post about ROI at our development site: http://general-staff.com/

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 340
Re: Changelog - picture heavy
« Reply #288 on: June 09, 2019, 09:40:58 AM »
Game

Prototyping move chevrons.
First step is to prove a chevron will position correctly and point in the correct direction.
This is very quick and dirty, adding a chevron for all units.
There will be a panel for orders eventually and you'll need to be in giving-orders mode before you see any.
The final version will only show your own side's orders of course.
I'll also need some mechanism to hold the data.
The chevrons are also fixed size and I need to work out whether to scale or recalculate the chevron shape.
One step at a time though.



The chevrons point in the direction of facing - some units are in column.
The very point of the chevron is positioned at the centre of the front of each unit.
Which is a sort of logical position for movement.
Some of movement will necessarily be somewhat abstracted in that it's that point which will count for what terrain a unit moves through rather than each point of it's face.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 340
Re: Changelog - picture heavy
« Reply #289 on: June 16, 2019, 08:12:38 AM »
Army Editor

Increased range to 9000 m.
Note that this is not maximum theoretical weapon range - don't just look up the claimed range of an artillery piece and input that.

For example
Theoretically, a musket would maybe have 300m or so range.
There were a number of Napoleonic war engagements where battalions exchanged musket volleys at 100 yards.
To negligible effect.

Similarly with artillery.
Even if you could make out a unit at 9000m away, you'd probably not be able to work out where your shot landed with
Guns of this period were almost always direct fire.
The exceptions where indirect fire happened were rare and involved rather unusual circumstances.
Which of course contrasts completely with ww1 onwards where artillery fire would usually be indirect.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 340
Re: Changelog - picture heavy
« Reply #290 on: Today at 01:00:23 PM »
Map Editor

Bug Fix
If you checked the minimum zero box, the elevation values were set on the wrong collection which were then overwritten.
At the moment you can work round this with the current version by unchecking that box.

Since Google decided to force everyone to register a credit card in order to use the elevation api, they have been able to remove a number of the safeguards they used to have in order to stop abuse.
As a result of this I've been able to reduce the throttling on the service calls.
Which means a map worth of data is about twice as quick.
This, by the way, is fairly  connectivity sensitive.
It's making a service call every 40 milliseconds to get data.
The data returned is not massive by today's standards but non trivial.
A broadband connection will easily handle bandwidth.
Poor wifi connections might not.