The Java Feeder

This forum is for users who are developing applications (or resources) to work alongside BaseStation (i.e. add-ons) and who wish to discuss development techniques.

Moderators: KineticChris, KineticDavid, Moderators

edgy31

Re: The Java Feeder

Postby edgy31 » June 27th, 2011, 7:39 am

There's a file called map.zip. Inside there is one called map-se.dat. Extract that and store it in your home directory as map.dat.

SE here meaning South latitude, and East longitude. The system was from the old VATSIM maps.

View that file with notepad and you will see the syntax. Also take a look at the one in the zip called map.dat (default) is the one I use for USA.

It's a terrible mapping system, and not as good as basestation. I'd like to replace the map algorithm, but I'm slow...

The sector tool lets you put in lat/lon points and at least create some VOR, Airports and Fixes. All pretty low tech. You have to take the output of the sector tool and graft it into the map.dat file. Under the right "[]" header.

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 27th, 2011, 10:11 am

Thanks Edgy but nothing is showing. I changed map-se.dat to map.dat and placed it in my \Users directory with the .conf file. I added my local VOR in the same syntax as the Brisbane one but nothing shows on the map. I have checked the Map and Colour settings all to no avail. This is the top part of the map.dat I have, PM_VOR is the one I added:

[Airport]
YBAF 0.000 S027.34.13.001 E153.00.29.002 A
YBBN 0.000 S027.23.03.001 E153.07.03.000 A

[RUNWAY]
10R 28L 092 272 S027.34.25.000 E152.59.56.980 S027.34.35.000 E153.00.34.988
10L 28R 095 275 S027.34.18.998 E152.59.51.968 S027.34.32.999 E153.00.43.988
01 19 015 195 S027.24.13.889 E153.07.03.821 S027.22.31.001 E153.08.03.001
14 32 136 316 S027.21.28.001 E153.07.25.000 S027.22.14.002 E153.07.59.020

[VOR]
PM_VOR 113.400 S040.19.13.000 E175.38.16.000
BN_VOR 113.200 S027.21.56.999 E153.08.21.001

[NDB]
BN_NDB 302.0 S027.24.23.000 E153.05.53.002

[ARTCC HIGH]
;- NAURU FIR BRISBANE NAURU
NAURU_FIR_ N003.30.00.000 E160.00.00.000 N003.30.00.000 E170.00.00.000
NAURU_FIR_ N003.30.00.000 E170.00.00.000 S010.00.00.000 E170.00.00.000
NAURU_FIR_ S010.00.00.000 E170.00.00.000 S011.48.00.000 E166.52.30.000
NAURU_FIR_ S011.48.00.000 E166.52.30.000 S010.30.00.000 E166.45.00.000
NAURU_FIR_ S010.30.00.000 E166.45.00.000 S004.49.59.999 E160.00.00.000
NAURU_FIR_ S004.49.59.999 E160.00.00.000 N003.00.00.000 E160.00.00.000
NAURU_FIR_ N003.00.00.000 E160.00.00.000 N003.30.00.000 E160.00.00.000

Anything obvious?
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 27th, 2011, 12:14 pm

Go to the MAP onscreen config button, then click on GEO. The other buttons are for the other items. Make sure the map.dat file is in the same directory as the config file.
The data you show looks good.

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 28th, 2011, 6:43 am

Mmm, I did actually figure out the GEO virtual button on the Viewer itself but all I get is a black screen with aircraft. I'm blowed if I can get it to show me anything, I can't see what I've done wrong!
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 28th, 2011, 11:37 am

Well darn, guess I need to get to work on the map part. Maybe try the unedited version. Could be an error in the map file. I just took the map-se.dat, renamed it to map.dat and this is what I got:

Image

edgy31

Re: The Java Feeder

Postby edgy31 » June 28th, 2011, 1:28 pm

Oh, one more thought... The mouse wheel lets you zoom in and out. Maybe you're zoomed-in too far?

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 28th, 2011, 7:34 pm

Ha ha, no such luck. I'll have scan through the SE map when I get home tonight to see if there is anything amiss. Thanks Edgy.
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

User avatar
bones
Posts: 9737
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man
Contact:

Re: The Java Feeder

Postby bones » June 28th, 2011, 9:56 pm

Is there an [INFO] section in the DAT file and if so what does it show?

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 29th, 2011, 9:34 am

No info, but I notice there is one in zipped folder for map.dat? Is this significant and what is the syntax?
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 29th, 2011, 11:41 am

It doesn't process the [info] or #define statements. It just treats them as comments.

User avatar
bones
Posts: 9737
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man
Contact:

Re: The Java Feeder

Postby bones » June 29th, 2011, 2:31 pm

OK - in which case we can knock that idea on the head.

Have you tried any other map files - or did you run the map file before making any edits?

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 30th, 2011, 8:54 am

bones wrote:Have you tried any other map files - or did you run the map file before making any edits?


I'm not sure what you mean by "run the map file"? I run an application or I configure a config file, as far as I'm able to ascertain the map files (map.dat) is a configuration of text in a particular format that is then interpreted and applied by the application. So I wouldn't know how to run a map file, I wasn't aware that it could be run, am I missing a whole section on how this viewer pieces together?

If you are asking whether I have saved any of the map-xx.dat files as map.dat then the answer is yes, but I have noted that there are significant differences in the text content format (other than the obvious lat/lon), for example in the map-uk.dat file after the initial comment lines that begin with a semicolon, there are rows of data beginning with #define but in map-se.dat there are no such rows.

I've tried stripping out all but the [GEO] lines, leaving only my local VOR line of data in the immortal words of Manuel of Fawlty Towers, "I see nothing"!

Is it a graphics card issue? I wouldn't have thought so, I see PP outlines, I see Basestation outlines, I see maps and picures and viseos and colours and pretty things flying around.......sorry, got carried away there, must be the red wine with dinner that did that!

Damn it, why can't I see coasts and VOR's!!!!!!!
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 30th, 2011, 4:21 pm

nzradar wrote:I'm not sure what you mean by "run the map file"?


He meant run the program with an unedited file.

I have noted that there are significant differences in the text content format (other than the obvious lat/lon), for example in the map-uk.dat file after the initial comment lines that begin with a semicolon, there are rows of data beginning with #define but in map-se.dat there are no such rows.


My program is too dumb to process those commands, so it ignores them.

I'm not at a place where I can check right now, but see if there is this option in adsviewer.conf

screen.directdraw = false

maybe set it to "true"

That will allow it to use Windows DirectDraw.

That might be in a later version I was playing with though.

nzradar
Posts: 66
Joined: May 16th, 2011, 7:14 pm

Re: The Java Feeder

Postby nzradar » June 30th, 2011, 7:18 pm

Yep, been there, done that, still nothing.
Michael
New Zealand
Home Website: http://www.nzradar.com
ADS-B Traffic: http://www.nzradar.com/?page_id=16
SBS-1er/microadsb
BaseStation/PlanePlotter
Windows 8 Consumer Preview

edgy31

Re: The Java Feeder

Postby edgy31 » June 30th, 2011, 9:20 pm

Open up a DOS window and type:

echo %HOMEPATH%

Is your map.dat and adsviewer.conf and adsnet.conf files in that directory?


Keeping the window open, type:

java -jar ADSViewer.jar

See if you get any error messages.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests