The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
Thread Tools Display Modes
Old 08-01-2007, 10:50 PM   #1
Low Bitrate
IandI's CarPC Specs
 
Join Date: Apr 2007
Location: San Dimas, Cali
Posts: 76
My Photos: (0)
Dev Issues Maybe Bugs

Non of my digitalmods work while moving with module_IsSafe=True. Can anyone else use the digitalmods that are available while moving? I think all of them have that flag set to true. Is this a known bug?

Code:
Function Module_IsSafe() module_IsSafe = True End Function

Also, I am trying to preform an action before SD shuts down using Overlay_OnShutdown. I tried this and it doesn't work. Is there a different way to accomplish this?

Code:
Function Overlay_OnShutdown() Overlay_OnShutdown = FALSE 'Do some stuff Overlay_OnShutdown = TRUE End Function

Another problem I have is that the following does not store the value persistently when I restart SD. I am using it for both a module and an overlay if that matters.

Code:
module.SetStringOption 0, ProfileName ProfileName = module.GetStringOption(0)


Last edited by IandI : 08-02-2007 at 12:28 AM.
IandI is offline   Reply With Quote
Sponsored Links
Old 08-02-2007, 10:07 PM   #2
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,957
My Photos: (0)
What version are you running. 1.1.0.0 fixed a problem with return values being ignored in scripts.

Is there an options.sdo in your scripts path and does it change when saving? This is where the opitons should be stored.
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Old 08-03-2007, 12:44 AM   #3
Low Bitrate
IandI's CarPC Specs
 
Join Date: Apr 2007
Location: San Dimas, Cali
Posts: 76
My Photos: (0)
Quote: Originally Posted by god_of_cpu View Post
What version are you running. 1.1.0.0 fixed a problem with return values being ignored in scripts.

Is there an options.sdo in your scripts path and does it change when saving? This is where the opitons should be stored.

Actually, I think it is just not working in the overlay. I think it's working fine in the module. The options.sdo is there. Did you fix that bug in the overlay also? I don't think there are many examples using overlays, so maybe no one tried yet. Yes, I am running 1.1.0.0 (release version). Do these type of options read and write the hard drive each time or do they get stored in memory?

I want to release the speed volume digitalmod I made and this is holding me up. I will triple check my code again to see if it is my mistake.

Please comment on the other items when you have time. Thanks.
IandI is offline   Reply With Quote
Old 08-08-2007, 02:11 PM   #4
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,957
My Photos: (0)
Quote: Originally Posted by IandI View Post
Actually, I think it is just not working in the overlay. I think it's working fine in the module. The options.sdo is there. Did you fix that bug in the overlay also? I don't think there are many examples using overlays, so maybe no one tried yet. Yes, I am running 1.1.0.0 (release version). Do these type of options read and write the hard drive each time or do they get stored in memory?

I want to release the speed volume digitalmod I made and this is holding me up. I will triple check my code again to see if it is my mistake.

Please comment on the other items when you have time. Thanks.

Return values are working in 1.1.0.0 for overlays, so is saving of options.
Does the following code work for you if you implement it. Basically, you should see a message box when the back function happens and the back function should be cancelled since TRUE was returned. The count should be incremented in the message box every time it is called and the count should continue incrementing after restarting StreetDeck from where it left off.
Code:
'******************************************************************************* 'Overlay_OnFunction 'DESC: event OnFunction - Called when a function is sent to the panel, return true if the panel processes it '******************************************************************************* Function Overlay_OnFunction(eFunction) If eFunction = eFUnctionBack Then overlay.MsgBox "Back", overlay.GetIntOption(1) overlay.SetIntOption 1, overlay.GetIntOption(1) + 1 Overlay_OnFunction = TRUE ElseIf eFunction = eFunctionStop Then overlay.SetIntOption 1, 0 else Overlay_OnFunction = FALSE End If End Function

__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchscreen Issues w/Hibernation & CNX-P1290 jmciver Power Supplies 0 12-20-2006 07:48 PM
1.6 Bugs (sorry) GReeToZ Centrafuse 14 03-06-2006 10:08 PM
Use of DoEvents leads to lots of different and serious usability bugs. Arathranar RR Bug Tracker 0 06-14-2005 10:46 PM
Power issues in 03 Mustang tj!2k4 Power Supplies 17 12-22-2004 01:16 PM
[OFFICIAL THREAD] NMC 0.7 alpha.1 bugs netsuo NeoCar Media Center 46 11-09-2004 05:02 PM


All times are GMT -5. The time now is 11:24 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics