de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Re: Selfbt
PostPosted: Fri Aug 28, 2015 1:45 pm 
Offline
Site Admin
User avatar
In sexScripts, most of the getImage() and getFile() code is already inside a try{} block. And all of this inside a big try{} block around all script code. getImage() or getFile() (or any another SexScripts function) throwing an exception is an unexpected thing.
(A crash means something wrong far below, in the webcam driver and its relation with the OS.)


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Fri Aug 28, 2015 11:28 pm 
Offline
Veteran
User avatar
right then........

reinstated the 'captured/null' block.

let's try this again shall we?


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Mon Aug 31, 2015 8:26 am 
Offline
Regular
Quote:
Not sure if something got commented out that shouldn't of... Normally getImage should not throw an exception (or whatever its called in groovy) if you don't have a camera it will just pop up a fileopen dialog for you to select an image file so in this case you should still have a check that its a webcam not a selected file (e.g. not null and from captured folder) so would suggest above is changed to: - See more at: viewtopic.php?f=7&t=525&p=3217#p3217


In my experience it didn't pop up a fileopen if there is no camera. The program pauses in my cause. But gives no indication that it has done so. Regardless, if someone is bound and it pops up that dialog and doesn't continue the program, it's still a problem. The try catch block merely is the best way to handle a program failure without the program locking up in anyway.... though it wouldn't work the same if a dialog pops up. It would just stop at the dialog to get a file. That could be very problematic...

Anyway, the current version appears to work for me at first glance. i'll report any problems I come across.


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Mon Aug 31, 2015 11:39 am 
Offline
Site Admin
User avatar
You may want to put a short code in the beginning (common to other scripts that needs a webcam and nothing else) :
Code:
if(loadBoolean("application.truewebcam")==null) {
  show("Testing webcam...")
  def startWebcam = getTime()
  save("application.truewebcam", getImage()!=null && getTime()<startWebcam+10)
  show("Thank you")
}

Then, whenever needed, test
Code:
if(loadBoolean("application.truewebcam"))...

But, anyway, even with a true webcam, with some systems, a user interaction is needed : OS complaining about UAC, Android asking for the camera button...


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Mon Aug 31, 2015 7:28 pm 
Offline
Veteran
User avatar
doti wrote:
You may want to put a short code in the beginning (common to other scripts that needs a webcam and nothing else) :
Code:
if(loadBoolean("application.truewebcam")==null) {
  show("Testing webcam...")
  def startWebcam = getTime()
  save("application.truewebcam", getImage()!=null && getTime()<startWebcam+10)
  show("Thank you")
}



it (kind of) does this now,
at the beginning of the script (whether first run or not) it does the following

Code:
try {
      image_temp = getImage()
   if ((image_temp == null) || (!image_temp.contains("captured")))
      {
      has_cam = false
      }
   else{has_cam = true
      save("selfbt.has_cam",has_cam)
      }
      }
   catch( Throwable t )
      {
         has_cam = false
      }

basically if the cam fails or goes to user selected image then has_cam is set to false and all future calls to the cam are contained in if's

Code:
if has_cam==true
       {
        getImage()
        }


if i'm missing something then let me know!


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Mon Aug 31, 2015 9:32 pm 
Offline
Veteran
User avatar
v1.12 is up.

changed lock up text to make clearer
added deciding line to give something to read during initial wait for the random timer
added code for binding time.
Many grammar fixes
changed timings to slow some things down.


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Wed Sep 02, 2015 6:40 pm 
Offline
Regular
User avatar
Can give instructions to get in self bondaga according the toys i have at the start of the game?
which kind of surprises are in the game?

thank you


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Wed Sep 02, 2015 7:20 pm 
Offline
Veteran
User avatar
Selection of "what to use" in each session based on a users toys list is on my to-do list.

In terms of surprises there's only the one at the moment but any suggestions are welcome.


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Mon Sep 07, 2015 5:45 am 
Offline
Veteran
User avatar
New version up with a couple of changes.

Code:
//v1.20 added version check and auto download of new version if available
//      removed firstrun code and replaced with new setup for better explanation
//      changed some timings
//      added "slave view" to cheat timer
//      bug fix on random.jgp remaining on screen after event


Still to do list:
get toy list + extras so script decides your predicament
implement game to play/occupy during session
implement penalty for failing to complete game/timer/and any commands correctly


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Fri Sep 25, 2015 1:18 pm 
Offline
Veteran
User avatar
v1.30

next surprise can now be set

_________________
"If you don't gosub a program loop, you'll never get a subroutine."


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Tue Sep 29, 2015 7:51 pm 
Offline
Site Admin
User avatar
Sorry I can't validate this script.

I can see that it takes some pictures with the webcam, the real username, and send all this on the internet, with no real explaination of where or when this will be used.


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Thu Oct 01, 2015 1:45 am 
Offline
Regular
Yes, where do the pictures go? I would like to see others completing or even compete with the script. :) hmmm, who can stay tied up longer. Longer means more pictures. I wont complain. Release the script. :)


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Fri Oct 02, 2015 12:57 am 
Offline
Veteran
User avatar
doti wrote:
Sorry I can't validate this script.

I can see that it takes some pictures with the webcam, the real username, and send all this on the internet, with no real explaination of where or when this will be used.


ok here is how it works:
Show spoiler

_________________
"If you don't gosub a program loop, you'll never get a subroutine."


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Fri Oct 02, 2015 10:11 am 
Offline
Site Admin
User avatar
Quote:
each user is issued a random id and that,AND ONLY THAT ID is sent to the 'internet' this is the same site used in the jenifer scripts and does the same as that script


I'm afraid this is false.


Top
 Profile Send private message 
 
 Re: Selfbt
PostPosted: Fri Oct 02, 2015 1:29 pm 
Offline
Veteran
User avatar
doti wrote:
Quote:
each user is issued a random id and that,AND ONLY THAT ID is sent to the 'internet' this is the same site used in the jenifer scripts and does the same as that script


I'm afraid this is false.


I think I didn't explain too well, by 'the internet ' I mean other than the sexscripts server, clearly the other info goes there!

_________________
"If you don't gosub a program loop, you'll never get a subroutine."


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: rainsford and 3 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:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.