Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Random Chapters in Opus?
PostPosted: November 4th, 2009, 1:31 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Hello to all the forum!
I need help! I know that Opus makes chapter with random pages, but I was wondering if I can mount a interactive command with a mouse click or keyboard on a screen in which the User would be sent to a randomly chosen section in the publication.
The publication will contain many variables that would be the pattern in the various chapters, but how to make it randomly choose those chapters which appeared on several pages in each?
Thank you for your help and I look forward to any answers!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 4th, 2009, 5:17 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
many variables that would be the pattern in the various chapters
?????
Please explain.

Quote:
randomly choose those chapters which appeared on several pages in each
?????
Sorry. Just not clear.

What is the purpose of Chapters here?? Am I the only one missing this.

There are some basic Opus actions (Goto Page >>> Next Random). Prior posts in the forum covered, 'goto random' but do not visit a page alread viewed. Etc, etc.
search.php?mode=results

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: The issue of random chapters!
PostPosted: November 4th, 2009, 2:44 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Lar, thanks for the help.
The purpose of the various chapters is that each has a different test. Need to develop a program that contains multiple tests. The tests always follow the same mold, with a set amount of questions, but I gather them all in one program.
The issue of random chapters is that by choosing a specific theme, and click the corresponding button, the User will always have a new test, other than that you have done previously. I need the element of surprise, because the tests can not be repeated in a specific order!
As already said, the option of random next page gives me just that, a random page in the chapter. But if each chapter starts a new test, how to make the program know which point in, when choosing a new test at random? This is the problem!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 5th, 2009, 1:23 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
The issue of random chapters is that by choosing a specific theme, and click the corresponding button, the User will always have a new test, other than that you have done previously. I need the element of surprise, because the tests can not be repeated in a specific order!

OK, maybe a little clearer now.

Before I respond along those lines, let me say that I perceive the different tests as CONTENT. Especially since you said "The tests always follow the same mold". So why not read the test content in from sets of files, or from Sections within a INI file? It seems that would be easier to update and maintain also. The reason I see for using Chapters (besides logical organization) is that not only would Users 'branch off' to different sets of pages... but those pages would have different presentation or layouts possibly (not necessarily).

Nevertheless, to support your original idea and approach let's see if this helps.
* I'll assume each Chapter has a "Landing Page" as the topmost page in the Opus Organizer. Sort of a title page or welcome page to the start of the test.
* You can create a Pub-level variable or a Page Persistent variable for each Landing Page. It would store the Flag for "Read" or "Not Read" (or 1's and 0's, or "visited"/"not"). You can later work with that to exclude the page from future navigation once it was visited.
* You of course provide whatever page-sequencing you want for progressing through the test.
* At end of test section... send User back to where they make their choice of next 'Theme' I think you said.
(Note: you might use the SCORE features to take the place of the 'Flag' variable I proposed. Result is the same.)

So basically ALL that you have to do now is figure out:
1) what is the list of 'Landing Pages'... specifically those not visited yet.
2) how to implement the 'random jump' to one of those pages and not some other.

I'm sure Mackavi, Fred, Paul, Leo and others here have some existing methods to share.... whether using Arrays, Cases conditionals, ...???

One thing I would look at is Parent-Child relationships.
You could easily determine, or rather define, which CHILD of the Publication ---- is a Chapter that contains a Test Set.
Next, you only need to find your Landing Pages. Those will always be CHILD 'zero' (is this true.... index 0, or is it the last child? I forget) Child 'zero' of a Parent (which is a Chapter).

Then you just need a handler for situation where all available Tests are completed.

I hope that's a start. There may be much simpler, less-obvious-to-me solutions.[/code]

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: More Explications...
PostPosted: November 5th, 2009, 3:19 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Thanks for the tips Home 123, but I need something more direct.
Actually, there is a homepage for the program, with several buttons on each topic and choose one of these topics, the User comes to a secondary page that opens, in turn, the random test.
Each test, in turn, has 30 pages, all within a chapter and a final page, with the test result. The home page of each test is pag001, which comprises the first question. Perhaps you could insert a previous page, to hold the necessary programming, this list of home pages at random. Unfortunately, for the purpose of organization, must maintain the structure of the program, with separate chapters and the contents of 30 pages of questions over the last page of results.
User needs to be given the option of several tests by theme, so that the program, as far as possible, avoid repeating these tests in a logical sequence. The ideal would be to go scoring tests which have been shown and go alternating until all tests of each subject have been made to then start all over again.
If they were random pages, would use a command like NextRandomPage, pity there NextRandomChapter ... it would help a lot!
I will be in awaiting a new light, because I do not know how to implement this list of pages marked by several chapters, so the program can pick them randomly. Thank you for your help and look forward to some solution.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 5th, 2009, 4:05 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Sorry Nilson. I am spent. I have a hard time dealing with partial information and making assumptions, and guessing what could work.

Partial information is a deal killer. Good luck.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 5th, 2009, 7:48 am 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hello Nilson,

I think the best way to do this is by scripting:

//randomChap will be any integer between 0 and 99
var randomChap = String.random(100)
// Find the chapter object to modify
var Chap = GetPublication().GetChild(randomChap);
// Open the chapter by going to the first page in it.
GotoPage( Chap.GetFirstChild().GetName() );

You have to add a function so chapters won't appear again.
So you have to save each randomChap in an array and check or it is used before. If so run randomChap again.


Another and I think better way to do this is:

Create an array (randomChap[0], randomChap[1]......randomChap[x])
For each array create unique randomized numbers from 0 - x

The first time open the first page of a chapter with randomChap[0]
The second time open a page of a chapter with randomChap[1]
.......
.......
.......
The last time open a page of a chapter with randomChap[x]

This script should do it:

i=0
var Chap = GetPublication().GetChild(randomChap[i]);
while (i<x)
{
i++
}
GotoPage( Chap.GetFirstChild().GetName() );

I hope this helps you to find a solution.

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


For this message osni has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: A light at the end of the tunnel?
PostPosted: November 6th, 2009, 1:17 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Osni, very interesting your tips, I think functional!
Unfortunately, it always worked as a designer and programming as the OPP OpusScript is new ground for me. I'll post here soon a model file imp with a few pages, chapters and navigation buttons on which I would love to have their cooperation, entering the appropriate scripts.
I count with your skill and intelligence in this challenge!
Let's put it to work!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Sorry...
PostPosted: November 6th, 2009, 1:22 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Lar_123, I'm sorry if I do not know right to express my goals! I will post soon with an imp file format and the chart that I need to have in place. Many thanks for your help and your interest and hope that with this post the goals are more light ...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 6th, 2009, 2:21 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Nilson. I'm sorry too. I know I am reacting.

Don't worry about the words/language. I think we all try to make efforts here to work with what's written, and I ask to clarify when the 'meaning' is not clear. What I request though is that more of the problem statement and its constraints be revealed sooner. Especially when the person posting probably does know these things up-front. Granted, in many cases, what the problem is... does not take shape immediately... and only evolves after some discovery.
'Nuf said.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Ramdom Chapters Imp
PostPosted: November 8th, 2009, 11:57 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Finally, I am posting the file here for analysis of the companions of this forum.


You do not have the required permissions to view the files attached to this post.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Considerations on the file posted
PostPosted: November 9th, 2009, 12:10 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
In the file, there is a page and three chapters with 10 pages each, plus a final page of the test results.
On the right side of every page, there are 10 markers corresponding to the 10 questions in each test. When choosing each question, the marker is highlighted, so that the User knows which question yet to be answered. But how to keep that out of every question answered in the pages of sequential navigation, if the User go forward or backward in the pages?
Finally, the digital clock that marks the time of the user in question. The end of time, he goes to the next question the test, because the total time of the ultimate test, containing 30 questions is 45 minutes. The problem here is the slide bar, which must mark the total time of the test and not the time of the page.
How to keep the bar running in 45 minutes of the test, if it is repeated on multiple pages and always restart from scratch? How to make this bar to pause and return in the last position for each new page load?
Then friends, there are 3 challenges to be overcome here. Chapters random, markers of persisting questions answered on every page of the test and slide bar, you need to check the total time of the test and not only the time of the page.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 11:28 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Nilson,

First off, congratulations on a well thought out publication. It's always good to see people Opus efficiently.

Having looked at the quiz program you have rightly identified a lot of areas that you wish to develop but I think you need to focus on one at a time. Lets start with the random chapters.

It is actually possible to do this with Opus actions but only if you do not need the randomisation to be unique. If you don't want chapters to be repeated, then you'll have to use scripting along the lines Osni post.

The basic principle of this is as follows:

1. A publication array populated with a list of random numbers.
2. A publication number variable to index the array.
3. A single page that that uses a pre-show trigger to send to chapter using the value index in the array.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Need Help!!
PostPosted: November 9th, 2009, 2:22 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Hello Mackavi ...
Actually I am proposing three challenges in a post, but this is necessary..
It is one year I'm trying to develop this program and I can not pass those points above. I believe that with the file posted, the companions of the forum can go explaining my doubts and if possible, working on top of the model posted here.
My desktop has always been design and programming is something very new to me. I have problems connecting to the logical way to accomplish this in opusscript. Even with the ready-made formula have yet much work ahead.
With the help of sandyn, always present in the forum with valuable tips, I managed to hold the first part of my job. The tip of Osni is a light, but do not know how to apply. I left early key pages in each of the three chapters, there is an entry page, but do not know how to create this list of arrays on top of this work. I do not know how to create persistent variables, so that the markers of the questions are repeated on other pages and I do not know how to implement the problem of the bar slides.
From what I saw, my previous post - problematic quizz, had many views in this forum. Thanks to friends who helped me, I believe that many others downloaded the files and learned by studying the models posted.
I hope the same happens with this post, in which solutions may appear, thanks to help from everyone, because I believe that unity is strength, and that brilliant minds can create amazing things when they work together.
From this comes from my need urgent help from all.
I count on your help, and also with the help of lar_123, Osni and other partners who wish to face this challenge.Again, thank you all for your patience and commitment. I'll be hoping the answers.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


For this message NilsonBrasil has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 8:22 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Nilson,

Here is a countdown timer -- persistent, simple. (attached)

It is built by modifying my earlier example (in tutorial section). FYI, the 'changes' I made are: 1. to trigger by button click rather than on-show, and 2. variables were changed to be 'persistent'. (also deleted page w/ interval timer)

Here is link to the more complex/strange example :wink:
viewtopic.php?t=3081
I offer these comments for it... in case you want to explore there too.
Quote:
You may find this earlier .imp helpful, but it will take anyone reviewing it a little time to get oriented to what's going on with the clocks and the timers. I set these up as kind of a 'starter' and not a finished solution. For someone who has already started to get their hands dirty with clock objects and time calculations -- it should be helpful. If you are starting with a blank white sheet of paper, then not so much help I'm afraid.

As I noted on the Post and pub pages of that tutorial example, you can easily change the triggers for the countdown timers and clocks. Page one had a running countdown, and the other page added more of a stopwatch/interval timer. It will be a bit confusing at first since I have left so much of the data values visible.


You do not have the required permissions to view the files attached to this post.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 43 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