S3 Series

Home Page FAQ Team Search
  Register
Login 
View unanswered posts View active topics  

Delete all board cookies

All times are UTC




New Topic Post Reply  [ 16 posts ]  Go to page
1, 2
 >> Next 
  Print view
Previous topic | Next topic 
Author Message
Offline 
 Post subject: Compass Rose
PostPosted: Mon May 04, 2015 2:37 pm 
User avatar

Joined: Wed Nov 13, 2013 1:14 am
Posts: 1047
Does anyone know how to add a Compass Rose to the map? I would like to put one over the target area.

Thanks for the help.

<S>


Capt Hawk
CO - The Knights Who Say Ni!


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 3:24 pm 
User avatar

Joined: Mon Nov 11, 2013 3:46 pm
Posts: 407
Location: Des Moines, IA, USA
You have 2 options that I am aware of. Put it on the map image, ie the DDS file. Or, write dotfile code to do it.


phenix
Stats Custodian
S6c


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 3:30 pm 
User avatar

Joined: Wed Nov 13, 2013 1:14 am
Posts: 1047
I never modified a DDS before. I know how to create a DTF file, but not sure how to do a compass rose on it.

Does anyone have a cool compass rose I can use or an example how to do it in a DTF file?


Capt Hawk
CO - The Knights Who Say Ni!


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 4:14 pm 
User avatar

Joined: Mon Nov 11, 2013 3:46 pm
Posts: 407
Location: Des Moines, IA, USA
Here's a simple one that you can put a formula to.

.mapcolor {red} {green} {blue} 255
.mapcircle {X} {Y} {R}
.mapline {X} {Y-2R} {X} {Y+2R}
.mapline {X-2R} {Y} {X+2R} {Y}
.mapline {X-R} {Y-R} {X+R} {Y+R}
.mapline {X+R} {Y-R} {X-R} {Y+R}

replace {} with numeric values
on .mapcolor use values 0-255 to generate the color you want. 255 0 0 would be red for example
Let X, Y be the grid location of your target. Go offline and note the location in the HUD.
R is the radius of the compass rose circle. 20 miles would be a value of R=105600


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 6:10 pm 
User avatar

Joined: Wed Nov 13, 2013 1:14 am
Posts: 1047
Here's what I did with no results. I use F199 and my test field.

.mapcolor @green@
.mapcircle {113388} {761254} {105600}
.mapline {113388} {761254-2105600} {113388} {761254+2105600}
.mapline {113388-2105600} {761254} {113388+2105600} {761254}
.mapline {113388-105600} {761254-105600} {113388+105600} {761254+105600}
.mapline {113388+105600} {761254-105600} {113388-105600} {761254+105600}


Capt Hawk
CO - The Knights Who Say Ni!


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 7:13 pm 
User avatar

Joined: Sat Nov 09, 2013 2:42 pm
Posts: 392
Take the brackets out Hawk and put the total values in for your math functions.


<S>
Zinhwk

HADES Flight
475th FG (v)
zinhwk@fly-jg77.com


Windows 10.1
AMD A10 6800K Black Edition (OC 4.2Ghz)
16 GB DDR3
GeForce GTX 770Ti
1TB SATA Western Digital "Blue" HDD
24" LG LED 1080p
CH Controls


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 7:21 pm 
User avatar

Joined: Wed Nov 13, 2013 1:14 am
Posts: 1047
I get the cir and some lines, but not sure about the "2R" call. I have some weird lines showing up.

.mapline {X} {Y-2R} {X} {Y+2R}
.mapline 113388 761254-2105600 113388 761254+2105600


.mapcolor @green@
.mapcircle 113388 761254 105600
.mapline 113388 761254-2105600 113388 761254+2105600
.mapline 113388-2105600 761254 113388+2105600 761254
.mapline 113388-105600 761254-105600 113388+105600 761254+105600
.mapline 113388+105600 761254-105600 113388-105600 761254+105600


Capt Hawk
CO - The Knights Who Say Ni!


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 7:33 pm 
User avatar

Joined: Sat Nov 09, 2013 2:42 pm
Posts: 392
I edited my post later, sorry its not easy to set up a math function typing on a phone.

Map lines need two coordinates to draw. Point A(Xa,Ya) and Point B(Xb,Yb)

So the command is looking for 4 numbers, not functions

The end result should be.

.mapline Xa Ya Xb Yb

You know this from other dtfs, all phenix was giving you were functions to plug into excel/calculator, whatever to give you a number to put in for the coordinate values based on your origin to pump out a neat, accurate compass.


<S>
Zinhwk

HADES Flight
475th FG (v)
zinhwk@fly-jg77.com


Windows 10.1
AMD A10 6800K Black Edition (OC 4.2Ghz)
16 GB DDR3
GeForce GTX 770Ti
1TB SATA Western Digital "Blue" HDD
24" LG LED 1080p
CH Controls


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 8:40 pm 
User avatar

Joined: Mon Nov 11, 2013 3:46 pm
Posts: 407
Location: Des Moines, IA, USA
Sorry math stuff. :)

X+2R means X + ( 2 x R )

The nice thing about using an equation to map out the numbers is you can move it as needed.


phenix
Stats Custodian
S6c


Top
 Profile  
Reply with quote  
Offline 
 Post subject: Re: Compass Rose
PostPosted: Mon May 04, 2015 9:52 pm 

Joined: Sat Nov 09, 2013 1:38 am
Posts: 476
Location: 42 49'57.61N 73 57'13.52W
Compass image ... I am not sure if it is large enough for you but its all I have.


Attachment:
compass.png
compass.png [ 57.06 KiB | Viewed 6624 times ]


<S>

Doc
@doctrdart


Top
 Profile  
Reply with quote  
Search for:
Display posts from previous:  Sort by  
New Topic Post Reply  [ 16 posts ]  Go to page
1, 2
 >> Next 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  

Powered by The S-3.