Right now, looking at sector data on TravellerMap, Core is located at 0,0, and everything else is relative to it.
I wrote a jump route finder, and load multiple data files. I converted the HEX field to a BIGHEX field, consisting of 6 digits. Using the +/- modifiers from datasets (for example Daibei is located at -1,2) results in NEGATIVE hex numbers for anything Spinward and/or Coreword from the Core sector.
IMTU I've located Core at Kk - column K, row k, which equates to 11,11. Some other locations are Ij = Corridor, Jk = Dagudashaag, Jm = Daibei, In = Dark Nebula, Ll = Delphi, and Hj = Deneb. I went with an odd number to literally center the Core sector on the sector map.
Note that a 6-digit hex limits me to about 23 x 23 sectors mapped AND loaded into the pathfinder - SIGNIFICANTLY larger than current mapped space on TravellerMap; I can go 10 sectors in any direction from Core, and stay within that numbering system. This is the equivalent of a hex map 736 hexes wide by 920 tall.
The method to calculate the relative (bighex) number comes out to this:
In my database, the Entry for Capital looks like this (header included):
This generates a unique hex number for each and every hex, and lets my jump route calculator function correctly. And yes, I could do the same thing by "adding" a fudge factor of +11,+11 to the original x,y location.
Is there any consideration being given to "updating" the sector files for the location of the sectors relative to Core?
Has there been any discussion about relative hex numbers?
My approach is pretty simple...comment or thoughts are appreciated.
I wrote a jump route finder, and load multiple data files. I converted the HEX field to a BIGHEX field, consisting of 6 digits. Using the +/- modifiers from datasets (for example Daibei is located at -1,2) results in NEGATIVE hex numbers for anything Spinward and/or Coreword from the Core sector.
IMTU I've located Core at Kk - column K, row k, which equates to 11,11. Some other locations are Ij = Corridor, Jk = Dagudashaag, Jm = Daibei, In = Dark Nebula, Ll = Delphi, and Hj = Deneb. I went with an odd number to literally center the Core sector on the sector map.
Note that a 6-digit hex limits me to about 23 x 23 sectors mapped AND loaded into the pathfinder - SIGNIFICANTLY larger than current mapped space on TravellerMap; I can go 10 sectors in any direction from Core, and stay within that numbering system. This is the equivalent of a hex map 736 hexes wide by 920 tall.
The method to calculate the relative (bighex) number comes out to this:
Code:
' covert a letter grid coordinate to numeric equivalent, based on ASCII codes
' ucase converts a string to uppercase, and ASC(<char>) returns the number of the
' character in the ASCII table. Subtract 65 to convert the letter to a number
' from 0 (A) to 25 (Z)
' GridXY and HEX are hardcoded here for example purposes
GridXY = "Kk" ' this equates to Core sector
HEX = 2118 ' and the hex for Capital
xPos = Asc(UCase(Mid$(GridXY, 1, 1))) - 65 ' xPos will be 11
yPos = Asc(UCase(Mid$(GridXY, 2, 1))) - 65 ' yPos will be 11
' Split the hex number
x1 = HEX / 100
y1 = HEX mod 100
BigHex = (xPos * 32 + x1) * 1000 + (yPos * 40 + y1)
In my database, the Entry for Capital looks like this (header included):
Code:
BIGHEX HEX HAME UWP B Z PGB AL
341418 2118 Capital A586A98-F B - 605 Im
This generates a unique hex number for each and every hex, and lets my jump route calculator function correctly. And yes, I could do the same thing by "adding" a fudge factor of +11,+11 to the original x,y location.
Is there any consideration being given to "updating" the sector files for the location of the sectors relative to Core?
Has there been any discussion about relative hex numbers?
My approach is pretty simple...comment or thoughts are appreciated.