Base distance chart (in hexes)

Uncommon Valor: Campaign for the South Pacific covers the campaigns for New Guinea, New Britain, New Ireland and the Solomon chain.

Moderators: Joel Billings, Tankerace, siRkid

Post Reply
Supervisor
Posts: 5160
Joined: Tue Mar 02, 2004 12:00 am

Base distance chart (in hexes)

Post by Supervisor »

Under "For what it's worth" department:

Attached is a zipped Excel file. On the first sheet is a chart listing all of the bases on the map (its rather large :)).

On the second sheet, only the bases that are at least 1 SPS (port or airfield) are listed (it's still fairly large, but a lot better than the first one :D).

Just something I came up with when I got tired of counting hexes. (I need a job, that's my problem. :D)

So, I thought maybe someone else could use it. So far, I haven't found any distances on the charts that are incorrect (put legal disclaimer here: yada yada yada :p).
User avatar
jhdeerslayer
Posts: 1224
Joined: Sat May 25, 2002 3:24 pm
Location: Michigan

Post by jhdeerslayer »

Thanks Rowlf! What is the column "across" and "down" mean?
User avatar
mariovalleemtl
Posts: 361
Joined: Wed Aug 09, 2000 8:00 am
Location: Montreal
Contact:

Great

Post by mariovalleemtl »

Many thanks! :)
Image Image Image
User avatar
GulfXray
Posts: 16
Joined: Mon May 07, 2001 8:00 am
Location: Bartlesville, Oklahoma USA

Thanks...

Post by GulfXray »

Thanks Rowlf! I was needing something like this and trying to figure how best to do. Answer: Wait on you!!!
Thanks
Shawn
Bartlesville, OK
Supervisor
Posts: 5160
Joined: Tue Mar 02, 2004 12:00 am

Post by Supervisor »

Originally posted by Deerslayer
Thanks Rowlf! What is the column "across" and "down" mean?
Hex position. xx hexes across, xx hexes down. Lunga, for example, is 38,40 (38 across, 40 down).
User avatar
denisonh
Posts: 2083
Joined: Fri Dec 21, 2001 10:00 am
Location: Upstate SC

You Da Man!

Post by denisonh »

Thanks!
"Life is tough, it's even tougher when you're stupid" -SGT John M. Stryker, USMC
Bernd Hesberg
Posts: 113
Joined: Thu Oct 11, 2001 8:00 am
Location: Germany
Contact:

How about calculating rather than counting ?

Post by Bernd Hesberg »

snip... Just something I came up with when I got tired of counting hexes.
...
So far, I haven't found any distances on the charts that are incorrect
Well, haven't you thought about letting Excel do all that work? The necessary data are just the position of every base (you have them) and a sufficient algorithm. You may try this one

=MAX( ABS( ColumnDifference); ABS( RowDifference))+IF( ABS( ColumnDifference)>ABS( RowDifference); ABS( RowDifference)/2; IF( ABS( ColumnDifference)>ABS( RowDifference)/2; ABS( ColumnDifference)-ABS( RowDifference)/2))

Of course, you need to substitute every occurrence of the variables 'RowDifference' and 'ColumnDifference' by their actual pairs of coordinates.
I haven't checked that for *every* possible combination. So, if there's something wrong with it, please reply.

I'd think it saves a lot of counting. Even better, it can be easily used for any other hex-based map.
Supervisor
Posts: 5160
Joined: Tue Mar 02, 2004 12:00 am

Re: How about calculating rather than counting ?

Post by Supervisor »

Originally posted by Bernd Hesberg
Well, haven't you thought about letting Excel do all that work? The necessary data are just the position of every base (you have them) and a sufficient algorithm. You may try this one

=MAX( ABS( ColumnDifference); ABS( RowDifference))+IF( ABS( ColumnDifference)>ABS( RowDifference); ABS( RowDifference)/2; IF( ABS( ColumnDifference)>ABS( RowDifference)/2; ABS( ColumnDifference)-ABS( RowDifference)/2))

Of course, you need to substitute every occurrence of the variables 'RowDifference' and 'ColumnDifference' by their actual pairs of coordinates.
I haven't checked that for *every* possible combination. So, if there's something wrong with it, please reply.

I'd think it saves a lot of counting. Even better, it can be easily used for any other hex-based map.
Sounds close to what I used. Actually (since I was using Quattro Pro and the formulas wouldn't translate to Excel) what I used was a nested IF statement.

Essentially it was as follows:

(horizontal is the absolute value of difference between the columns, vertical is the absolute value of the difference between the rows, and I rounded any calculation result)

If the horizontal was less than ½ the vertical, then the distance is equal to the vertical.

Then if the vertical was 0 or 1, then the distance is equal to the horizontal.

Otherwise, the distance is equal to the horizontal + ½ the vertical.

As I said, every distance I checked worked with this logic, and I didn't find any that didn't, but I didn't check more than a random sample of all possible combinations. I may have time on my hands, but I'm not a masochist! :D

(btw: I don't have Excel. :))
Bernd Hesberg
Posts: 113
Joined: Thu Oct 11, 2001 8:00 am
Location: Germany
Contact:

Post by Bernd Hesberg »

snip ... but I didn't check more than a random sample of all possible combinations. I may have time on my hands, but I'm not a masochist! :D

(btw: I don't have Excel. :))
Seems to be a similar situation over here. I don't have Quattro Pro, and I'm no masochist either. :D
User avatar
von Murrin
Posts: 1611
Joined: Tue Nov 13, 2001 10:00 am
Location: That from which there is no escape.

Very Cool!

Post by von Murrin »

Now, if I only had more than an hour or two a week to play... :(

(Be happy you don't have a real job :D)
I give approximately two fifths of a !#$% at any given time!
Post Reply

Return to “Uncommon Valor - Campaign for the South Pacific”