VRC Forum Index VRC Forums
Support, bug reports and general discussion related to the Virtual Radar Client for VATSIM.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NOTE: These forums are now read-only. For new posts, please use the appropriate VATSIM forum.
$oclock and $dist error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    VRC Forum Index -> vSTARS Bug Reports
View previous topic :: View next topic  
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Sat Nov 22, 2014 10:49 pm    Post subject: $oclock and $dist error Reply with quote

It appears these commands don't work...at least in this command:

.ARPT $arr is at your $oclock($arr), $dist($arr) miles, report the field in sight.

Also, does .AUTOTRACK save after you save your profile?
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Sat Nov 22, 2014 11:22 pm    Post subject: Reply with quote

When you say the commands don't work, what do you mean?

No, .autotrack is not something you want saved because you aren't always the one controlling departures.
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Sat Nov 22, 2014 11:52 pm    Post subject: Reply with quote

Alias commands...

Another question, sorry...are the text comms between you (the controller) and pilots on your frequency supposed to be the same color? It sometimes is a bit confusing when they look the same (aside from your messages vs. theirs)
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Sun Nov 23, 2014 12:52 am    Post subject: Reply with quote

JHG0 wrote:
Alias commands...


Yes, I know that, but what do you mean when you say they don't work?

JHG0 wrote:
Another question, sorry...are the text comms between you (the controller) and pilots on your frequency supposed to be the same color? It sometimes is a bit confusing when they look the same (aside from your messages vs. theirs)


Yeah, they're both Cyan. I have an item on my list for a future version to make them separate colors.
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Wed Nov 26, 2014 2:13 pm    Post subject: Reply with quote

Sorry about the delay, forgot I made this post.

Okay, it seems I found the problem...commands that take arguments don't seem to work as intended.

For example:
Code:
.ARPT $arr is at your $oclock($arr), $dist($arr) miles, report the field in sight.

If the airport is ABCD and it is 5 mi and 12 o'clock it should look like this:
Code:
ABC1234, ABCD is at your 12 o'clock, 5 miles, report the field in sight.

But instead it looks like this:
Code:
ABC1234, ABCD is at your ----, ---- miles, report the field in sight.


Also, $uc(...) and $lc(...) don't work in an alias command. I'm not sure which other ones don't exactly work.

Thanks,
Josh
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Wed Nov 26, 2014 2:17 pm    Post subject: Reply with quote

JHG0 wrote:
For example:
Code:
.ARPT $arr is at your $oclock($arr), $dist($arr) miles, report the field in sight.

If the airport is ABCD and it is 5 mi and 12 o'clock it should look like this:
Code:
ABC1234, ABCD is at your 12 o'clock, 5 miles, report the field in sight.

But instead it looks like this:
Code:
ABC1234, ABCD is at your ----, ---- miles, report the field in sight.


Thanks ... that actually tells me what you mean by "don't work".

JHG0 wrote:
Also, $uc(...) and $lc(...) don't work in an alias command. I'm not sure which other ones don't exactly work.


Here we go again. Razz What do you mean by "don't work" ???
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Thu Nov 27, 2014 10:54 am    Post subject: Reply with quote

Sorry about that...

Code:
.caps $uc($0)

With $0 being "word", the output should be
Code:
WORD


Instead the output is
Code:
$uc(word)


I haven't checked the actual output of this in the past week and don't fully remember it so I could be wrong but I do remember it outputting "$uc" every time the variable was used in an alias command.
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Thu Nov 27, 2014 11:28 am    Post subject: Reply with quote

Can you check and tell me if you're still seeing this problem? Works fine for me.
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Thu Nov 27, 2014 1:44 pm    Post subject: Reply with quote

Okay...

My alias command:
Code:
.123456 $uc($0) $lc($1)


Input:
Code:
.123456 aa BB


Output:
Code:
$0 aa BB


Do the commands with $oclock(...) and $dist(...) output properly for you?
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Thu Nov 27, 2014 2:55 pm    Post subject: Reply with quote

JHG0 wrote:
My alias command:
Code:
.123456 $uc($0) $lc($1)


That should be:

Code:
.123456 $uc($1) $lc($2)


JHG0 wrote:
Do the commands with $oclock(...) and $dist(...) output properly for you?


Yes. If they're not working for you, it's probably because of the same reason the lc/uc commands aren't working. (That being the fact that you're using $0 instead of $1 to reference your first parameter.)
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Thu Nov 27, 2014 3:25 pm    Post subject: Reply with quote

Shoot, that makes sense...so used to starting with 0...

Thanks Ross!

[EDIT] The .ARPT command error uses $arr rather than $1.
Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Sun Nov 30, 2014 8:32 pm    Post subject: Reply with quote

Sorry, I still do not know how to fix the issues I'm having.
Turns out that all my aliases use $1 first rather than $0, I just messed up the tester command.

Would you happen to have any alias commands that use the $oclock() and/or $dist() functions that are known to output the expected text?
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Sun Nov 30, 2014 8:38 pm    Post subject: Reply with quote

Here's one that works for me:

.rais $uc($1) is at $oclock($1), $dist($1) nm, report field in sight
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Author Message
JHG0
Member


Joined: 22 Dec 2013
Posts: 57

PostPosted: Sun Nov 30, 2014 11:07 pm    Post subject: Reply with quote

In that case...do you think that those functions (oclock and dist) are having issues using $arr as their argument?
Back to top
View user's profile Send private message
Author Message
Ross
Developer


Joined: 07 Jul 2005
Posts: 6818
Location: Vermont

PostPosted: Sun Nov 30, 2014 11:14 pm    Post subject: Reply with quote

I just tested using the exact alias you posted above:

$arr is at your $oclock($arr), $dist($arr) miles, report the field in sight.

And it worked fine. Are you sure the target aircraft has a flight plan on file with an airport as the destination field filled in, and that airport is in the vSTARS navigation data xml files?

Try using the .find command on the airport.
_________________
Ross Carlson - Developer

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    VRC Forum Index -> vSTARS Bug Reports All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group