Does anyone have a spreadsheet which will allow me to determine what sector hexes are within J1, J2, J3, J4, J5, and J6 of a given sector hex? For example, when jumping from hex 0940, what hexes are within each of those jump distances?
Cheers,
Baron Ovka
Are you looking for something that will list ALL hexes within a given range of the hex itself, or are you looking to be able to list all world hexes within a given Jump distance from the hex itself?
I have a spreadsheet somewhere containing the methodology for calculating the distance between two hex ID values. I also wrote a bit of VB.NET code that will go through all worlds, determine their World Trade Values (for use with GURPS TRAVELLER) and then determine the distances from each other (as that's part of how you determine the final Bi-world Trade Value for trade flows.
Let me know what you're looking for and whether or not you are using a windows environment or not. I can even show you how to create your own macros (as VBA is very much like VB.NET) using Excel if you'd like. It isn't all too challenging to create your own macros.![]()
Well, since I cannot figure out how to attach a file,
Have you tried the icon with the paperclip (right of the happy face)?
The green users cannot attach files.
That explains it! Thought, again, that I was missing something obvious.
How does one become not-green? Post count?
[SIZE=2]my $parsecs = distance from: $thisWorld to: $thatWorld;
[/SIZE]
int distance( $from, $to )
{
my $a1 = $from.row + int( $from.col / 2 );
my $a2 = $to.row + int( $to.col / 2 );
my $d1 = abs( $a1 - $a2 );
my $d2 = abs( $col1 - $col2 );
my $d3 = abs( ($a1 - $col1) - ( $a2 - $col2 ) );
# return the largest value from the three options
return $d1 if $d1 > $d2 > $d3;
return $d2 if $d2 > $d1 > $d3;
return $d3; # last man standing
}
I have a spreadsheet somewhere containing the methodology for calculating the distance between two hex ID values. I also wrote a bit of VB.NET code that will go through all worlds, determine their World Trade Values (for use with GURPS TRAVELLER) and then determine the distances from each other (as that's part of how you determine the final Bi-world Trade Value for trade flows.
Let me know what you're looking for and whether or not you are using a windows environment or not. I can even show you how to create your own macros (as VBA is very much like VB.NET) using Excel if you'd like. It isn't all too challenging to create your own macros.![]()