Search Archive

Trip Computer question

By bryvale · Aug 20, 2009in Hacks/Mods💬 33 posts👁️ 3,302 views
Page 1 of 2
Posted Aug 20, 2009 · 00:12 UTC#1

I added the trio computer to my system (running 3.01) and everthing is working great except the on map trip data always shows on the map....even when I set it to off on the map settings. I'm sure I missing some code along the way but I have no idea what it is. Any suggestions?

Thanks for the help

Posted Aug 20, 2009 · 00:30 UTC#2
I added the trio computer to my system (running 3.01) and everthing is working great except the on map trip data always shows on the map....even when I set it to off on the map settings. I'm sure I missing some code along the way but I have no idea what it is. Any suggestions?

Thanks for the help

 

check the variable you used, if the variable you declared doesn't have a ' example' then on navigatemap.ui when it call for the variable it shouldn't have th ' example '

Posted Aug 20, 2009 · 00:55 UTC#3

The variables I used did not have the quotes around it but I'm not totally sure what to compare it to. Can you be kind enough to post the text you are talking about.

Appreciate the help.

Posted Aug 20, 2009 · 01:09 UTC#4
The variables I used did not have the quotes around it but I'm not totally sure what to compare it to. Can you be kind enough to post the text you are talking about.

Appreciate the help.

 

i'm not sure how they are set up on your's but if i were to set up a setting this is the way i would do it,

 

here's an example of a code i'm using for turn restriction

 

in my setting_800_480.ui i created a setting for the turn restriction on/off

i declared a variable on the header part

 


 

and then added this code on the layer i wanted it to be in

 




 

and in created a script in navigatemap.ui

 


 

and added this code on my st_navigatemap just at the end of script init

 

run sc_roadsignshow

 

what that would do is whenever your in the navi screen it will automatically run the script and check if you have it set on on or off and do the actions necessary

Posted Aug 20, 2009 · 02:03 UTC#5

Thanks for the idea but I don't know enought about coding to apply this to my system. Anyone know how to apply this to the trip cpmputer or maybe know what code i could possibley be missing to fix the problem? Again that for the help!

Posted Aug 20, 2009 · 02:13 UTC#6
Thanks for the idea but I don't know enought about coding to apply this to my system. Anyone know how to apply this to the trip cpmputer or maybe know what code i could possibley be missing to fix the problem? Again that for the help!

 

no prob

Posted Aug 20, 2009 · 05:29 UTC#7
Thanks for the idea but I don't know enought about coding to apply this to my system. Anyone know how to apply this to the trip cpmputer or maybe know what code i could possibley be missing to fix the problem? Again that for the help!

 

This thread should help:

 

viewtopic.php?f=34&t=26206

Posted Aug 20, 2009 · 21:51 UTC#8
I added the trio computer to my system (running 3.01) and everthing is working great except the on map trip data always shows on the map....even when I set it to off on the map settings. I'm sure I missing some code along the way but I have no idea what it is. Any suggestions?

Thanks for the help

 

I'm curious, from what zip did you get the files to add the trip computer? Also, did you try running that zip first to see how it functions?

 

There's similar codes like IDT suggested for the on/off of the blue boxes in my zip that was posted for 2.0. Bsnively added a map button onto his for when the on-screen trip boxes are off and the code differs slightly. diaftia added a trip box to the quick launch buttons using bsnivelys button image. They all have something different about them that may effect the on/off switch.

 

Just for the hell of it, did you try to initiate the on/off action after you had a gps signal? If you tried it without a signal, give it a shot with the signal and report back what happens.

Posted Aug 21, 2009 · 01:45 UTC#9

I took the mod from bsnively's post and added it to my system (form the directions he posted and some additional help). I would like to add diaftia's on/off button to the quick launch. Do I just need to add the line of code to the quick start menu innavigate 800-480?

Posted Aug 22, 2009 · 03:48 UTC#10

SO, I made an attempt at adding the proper code. Here is what I added to the Navigate 800-480 on my quick start menu.

 

Now I am gettting the error message

FFuierror: Unknown object identifier

identifier =[sc_tripcomputer] script "[unnammed]" command O

 

 

Thanks for the help!!!

Posted Aug 22, 2009 · 04:13 UTC#11
SO, I made an attempt at adding the proper code. Here is what I added to the Navigate 800-480 on my quick start menu.

 

Now I am gettting the error message

FFuierror: Unknown object identifier

identifier =[sc_tripcomputer] script "[unnammed]" command O

 

 

Thanks for the help!!!

 

If sc_tripcomuter is a script, as a name suggests, you can't .SHOW it, only run it. Also, needs a space before VISIBLEMODEL.

Posted Aug 23, 2009 · 04:48 UTC#12

Still working on this with no luck. I added the following to navigatge800_480 page under my other quick launch buttons:

 

 

I got a start up error that stated the system was missing a . I've played around with adding layers with no luck. Here is what the trip computer section looks like.

Any suggestions?

;*******trip comp N-S-E-W version with route*******

;

visiblemodel="navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current' onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

;*****N-S-E-W's trip comp - no route*****

 

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

 

;************ END no route ***********

Posted Aug 23, 2009 · 04:48 UTC#13

Still working on this with no luck. I added the following to navigatge800_480 page under my other quick launch buttons:

 

 

I got a start up error that stated the system was missing a . I've played around with adding layers with no luck. Here is what the trip computer section looks like.

Any suggestions?

;*******trip comp N-S-E-W version with route*******

;

visiblemodel="navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current' onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

;*****N-S-E-W's trip comp - no route*****

 

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

 

;************ END no route ***********

Posted Aug 23, 2009 · 10:29 UTC#14

this may be a silly question, but someplace did you accidentally type in

 

Figured I would ask, since that's something I might do...

 

Thanks,

Ben

Posted Aug 23, 2009 · 14:38 UTC#15

Ya, Layer.....that was just a typo

Posted Aug 23, 2009 · 15:28 UTC#16
Still working on this with no luck. I added the following to navigatge800_480 page under my other quick launch buttons:

 

 

I got a start up error that stated the system was missing a . I've played around with adding layers with no luck. Here is what the trip computer section looks like.

Any suggestions?

;*******trip comp N-S-E-W version with route*******

;

visiblemodel="navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current' onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

;*****N-S-E-W's trip comp - no route*****

 

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

 

;************ END no route ***********

 

are those scripts inside a layer? your hide button is asking for a ui_NSEWtripcomp layer so that might be it

Posted Aug 23, 2009 · 18:33 UTC#17

I think I am getting closer. I added the Layer but I am still getting a start up error:

FFUIERROR: Parse Error [, , , ,

 

Here is ther button I added to the quick start menu:

 

Here is the layers I added to the trip computer:

;*****N-S-E-W's trip comp - no route*****

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

 

;************ END no route ***********

Posted Aug 23, 2009 · 18:54 UTC#18

 

you're missing a > on this code

 

 

also, what layer is the script above in?

Posted Aug 23, 2009 · 19:14 UTC#19

Here is where it sits. Thanks for taking a look!

 

 

 

map.ISROUTEVALID vValidRoute vDeletableRoute

runif vValidRoute 1 sc_btnARM_Itineary_OnRelease

Posted Aug 23, 2009 · 19:15 UTC#20
Here is where it sits. Thanks for taking a look!

 

 

 

map.ISROUTEVALID vValidRoute vDeletableRoute

runif vValidRoute 1 sc_btnARM_Itineary_OnRelease

 

this is on what ui?

Posted Aug 23, 2009 · 19:18 UTC#21

 

Is that what you are looking for?

Posted Aug 23, 2009 · 19:22 UTC#22

 

Is that what you are looking for?

 

the file where you have it, eg. navigatemap.ui

Posted Aug 23, 2009 · 19:32 UTC#23

Yup, navigatemap_800_480

Posted Aug 23, 2009 · 20:44 UTC#24

could you just post your navigate_800_480.ui so i could take a look at it

Posted Aug 23, 2009 · 21:08 UTC#25

;*****************

; xucheng

;*****************

 

;****************************************************************************************************************

 

 

 

 

 

; State Modes (vStateMode):

; "3DFlyOverMode" : FlyOver and Simulate

; "2DPlanMode" : Has route with own start point (navigation is off)

; "3DCruiseMode" : Follow mode (navigation is off)

; "3DNavigateMode" : Has route and navigating (navigation is on)

; "2DNavigateMode" : Has route and navigating (navigation is on)

; "2DOverviewMode" : Overview (start/stop automaticly)

 

;****************************************************************************************************************

 

;****************************************************************************************************************

 

; the STOPFLYOVER command also stops other kinds of simulations (i.e. saved track replay)

 

;

;

 

 

 

 

;temp

;

 

;time

 

;*******trip comp N-S-E-W version with route*******

;

visiblemodel="navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current' onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

;*****N-S-E-W's trip comp - no route*****

 

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='run sc_tripreset_confirm' usefocus=0

onclick='playsound "!sectionbeepB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='nextstate ST_TRIPCOMPUTER' enabledmodel="!ui.vOnFlyover" USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.prev_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.next_trip, run sc_trippageinfo' usefocus=0 USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid">

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartB"' USE_SEPARATED_SAFETY_MODE=0>

visiblemodel="!navigation.distance_to_manuver.valid" onrelease='other.tripcomputer.pause_current'

onclick='playsound "!sectionstartA"' USE_SEPARATED_SAFETY_MODE=0>

 

;************ END no route ***********

 

;quickmenu

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

map.ISROUTEVALID vValidRoute vDeletableRoute

runif vValidRoute 1 sc_btnARM_Itineary_OnRelease

 

 

;house numbers display

 

 

map.ISROUTEVALID vValidRoute vDeletableRoute

runif vValidRoute 1 sc_btnARM_Itineary_OnRelease

 

 

 

 

;

;

;

;

 

;

;

;

;

 

;

;

;

 

 

;road name picture

 

;road name picture, searchmap

 

 

;route name and housenumber(next and the third road name)

 

;first corner distance

 

 

;**********************************12.16********************************************

 

 

;Voice guidance mute

 

;Stop Nav Button

 

 

;corner picture

 

;road arrow

 

 

 

 

 

 

 

 

 

 

 

 

 

;Auto Recalc

 

;HIDED FUNCTION

 

 

 

 

 

 

;luwenyu 12.24

 

 

 

 

 

 

 

;

 

 

;************percent***************

Page 1 of 2