Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently September 28th, 2024, 1:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Saving your session in Opus Scorm
PostPosted: December 12th, 2011, 9:08 pm 
Offline

Joined: October 31st, 2011, 3:21 pm
Posts: 28
Opus: Pro 9.6
OS: Windows 7 Professional 64 bit
System: Intel i7-2600k, 16 GB RAM, Nvidia Quadro 4000
Hello all,

I'm really new to Opus Scorm and I'm trying to find a way in which the user can exit the LMS and return at a later time from where they left off. Currently I have an exit button that takes the user to the "exit_PG" page..... and that's about it.


For this message zmayor has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Saving your session in Opus Scorm
PostPosted: December 13th, 2011, 1:53 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Don't know how others test for this but we have a default start page which the user visits each time they launch the course. This has a page script that contains the code:
if(String.length(LMS_LESSON_LOCATION)>1)
{
Return_Frame.Show()
}
LMS_LESSON_LOCATION is the OPUS SCORM variable that stores the last page visited and thus if its length is more than one character a pop-up frame is shown. This frame poses the question "Do you want to return to the place where you last left the course?" and contains two buttons YES and NO. The yes button contains the code: GotoPage(LMS_LESSON_LOCATION) and the no button just advances the user to the next page.

To store the page name as the LMS_Lesson_Location put this code on each page (or on the master):
LMS_LESSON_LOCATION=this.GetName();
SetLMSValue("cmi.core.lesson_location",LMS_LESSON_LOCATION)


Hope this is helpful.

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi, zmayor


Top
 Profile Visit website  
 
 Post subject: Re: Saving your session in Opus Scorm
PostPosted: December 13th, 2011, 6:03 pm 
Offline

Joined: October 31st, 2011, 3:21 pm
Posts: 28
Opus: Pro 9.6
OS: Windows 7 Professional 64 bit
System: Intel i7-2600k, 16 GB RAM, Nvidia Quadro 4000
Andrew,

Do I insert the script as a Script Object on the page (start and master slide)?
Also, how do I get the first script to show the frame I want, if my frame is called "frame_1"? Do I enter it as this...

if(String.length(LMS_LESSON_LOCATION)>1)
{
Return_Frame.Show(frame_1)
}

The errors I have been getting are...
initialization_PG, [261] : Undefined identifier 'AddJSCommand'
start,Script 7 [3] : Undefined identifier 'Return_Frame'

I'm a newbie when it comes to scripts and Opus Scorm. :?

Thanks!


For this message zmayor has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Saving your session in Opus Scorm
PostPosted: December 14th, 2011, 2:51 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Okay,
Just a few basics that may help. The stucture that is generated by Opus contains (nearly) all the coding that you need but you need to do a few tweeks to help things along.
The basic structure is a publication (Untitled1) a chapter (Content) and three pages (Script Page, initalization_PG and exit_PG)

I normally create all the learning pages within chapters, grouping them logically into subject matter headings. Within a chapter at the top of the tree I place Script Page and initalization_PG, along with a master background page. The background page must have Script Page as its master (set in properties tab) and each learning page uses the master background page as its master page, thus when each learning page is viewed the script page is run in the background. I put the command
Code:
LMS_LESSON_LOCATION=this.GetName();
SetLMSValue("cmi.core.lesson_location",LMS_LESSON_LOCATION)
as part of a script on the master backgound page which is run when the page is shown, i.e. use an On Show action.
Finally I have a last chapter which contains exit_PG which is where the learner is directed if they click an exit button on any of the learning pages.
'AddJSCommand' is part of the Private SCORM Functions script within the Script Page. Can I suggest that you view your publication with Preview Publication rather than Preview Page, as the latter will always generate errors because the publication has not started via initalization_PG.

SCORM is not the easiest thing to get your head around, however, I found the Contents and Index help pages very helpful.
Also have a look on the Interweb for the Reload project and download their Scorm 1.2 player. That will allow you to run your packages on a virtual server and monitor the interactions.

Hope the above helps.

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi, zmayor


Top
 Profile Visit website  
 
 Post subject: Re: Saving your session in Opus Scorm
PostPosted: December 14th, 2011, 4:43 pm 
Offline

Joined: October 31st, 2011, 3:21 pm
Posts: 28
Opus: Pro 9.6
OS: Windows 7 Professional 64 bit
System: Intel i7-2600k, 16 GB RAM, Nvidia Quadro 4000
Sweet! It worked!

I was also wondering if you knew how to save variables every time you exit the publication.

Good work Andrew!


For this message zmayor has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Saving your session in Opus Scorm
PostPosted: December 15th, 2011, 9:17 am 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Glad you have had success.

Regarding the saving of variables, have a look at the Implementation Functions script in the initialzation_PG. You will find it is split into two parts, the first is run when the publication starts and loads values from the LMS with the GetLMSValue command. The second part saves the contents of variables back to the LMS as the publication ends using the SetLMSValue command.

If you need a list of valid variables used in Scorm 1.2 have a look at http://www.adlnet.gov, they publish "The SCORM Implementation Guide: A Step-by-Step Approach" which I have found very handy.

Finally, I thank you for your appreciation.

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


For this message Andrew Thompson has been thanked by : mackavi, zmayor


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group