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


Post new topic Reply to topic  [ 15 posts ] 
Author Message
 SexScripts Tutorial
PostPosted: Thu Apr 18, 2013 10:47 am 
Offline
Veteran
User avatar
I've just uploaded this new script to the site, called 'SexScripts Tutorial'.

This script is based on the default 'test.groovy' script that comes with SexScripts. The original was written by Doti, and all credit for the initial idea and versions goes to him.

I actually made it initially as a personal resource, so I could have all my code snippets handy and a quick reference on how to script common tasks in SS. I eventually expanded it into something more detailed and friendly for others to use and read.

I have tried to make both the running script and the code itself easy to read and follow.

Hopefully this will prove a useful reference and source of "code snippets" for those wanting to make their own scripts!

Please post any feedback or suggestions for new examples to add in this thread, as I am happy to add new useful "tricks" to this script that people might find helpful.

Latest Version: v1.8

Requirements
None

Download
Via MediaFire or SexScripts Database


Last edited by Banjo on Sat Jun 04, 2016 6:48 pm, edited 2 times in total.

Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu Apr 18, 2013 3:40 pm 
Offline
Site Admin
User avatar
Everything ok, nice


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Sun Apr 28, 2013 11:22 pm 
Offline
Active member
This tutorial showed a bug in the software.
It will open an ton of IE screens when you dont have an email client installed or configured.
IE is not my default browser, chrome is.


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Mon Apr 29, 2013 6:49 am 
Offline
Veteran
User avatar
0385 wrote:
This tutorial showed a bug in the software.
It will open an ton of IE screens when you dont have an email client installed or configured.
IE is not my default browser, chrome is.


There are actually two problems I discovered through making this:

1) If you don't have a default email client or a media file type registered with a player, there will be unexpected issues. Not sure how to get around this short of SS handling media playing internally (which I know a few of us have requested but understand it's a lot of work) or even an option to handle emailing internally.

2) when you are asked to pick an image (second time in tutorial), if you don't pick one or choose "cancel", the program hangs. Could this be fixed with some sort of "returns null" if clause?


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Mon Apr 29, 2013 7:41 pm 
Offline
Site Admin
User avatar
0385 wrote:
This tutorial showed a bug in the software.
It will open an ton of IE screens when you dont have an email client installed or configured.
IE is not my default browser, chrome is.

SexScripts has not much control over this. I add a test.

Quote:
2) when you are asked to pick an image (second time in tutorial), if you don't pick one or choose "cancel", the program hangs. Could this be fixed with some sort of "returns null" if clause?

getFile() contains "return null", you shoud use it, but it will make the tutorial a little bit more complicated
Code:
...
def yourPic = getFile("Select an image.");
show("You can then display the image back to the user.");
if(yourPic!=null)
  setImage(yourPic);
...


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Fri Apr 03, 2015 6:28 am 
Offline
Veteran
User avatar
Just wanted to ask, Doti, if I wanted to update this script (which hopefully newcomers still find useful), are there any new SS features I should add to the tutorial that didn't exist when I last published this?


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Fri Apr 03, 2015 10:16 am 
Offline
Site Admin
User avatar
Yes, your question shows a project managment error, there's no archive of the documentation.
So, in this page : viewtopic.php?f=4&t=2 :
- isConnected(), receiveBoolean(), receiveFloat(), receiveImage(), receiveInteger(), receiveString(), send(), sendImage()
- setImage(byte[] bytes, int useless)
- getImage(String message)


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu May 28, 2015 4:02 pm 
Offline
Veteran
User avatar
doti wrote:
Yes, your question shows a project managment error, there's no archive of the documentation.
So, in this page : viewtopic.php?f=4&t=2 :
- isConnected(), receiveBoolean(), receiveFloat(), receiveImage(), receiveInteger(), receiveString(), send(), sendImage()
- setImage(byte[] bytes, int useless)
- getImage(String message)


Just finished adding a few tweaks to the tutorial update. Are those new functions all "connect to the net" functions? Since I'm avoiding using those, I just wanted to make sure there were no new offline commands to add to the tutorial before posting.


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu May 28, 2015 4:05 pm 
Offline
Site Admin
User avatar
Those functions do not connect to the net
- setImage(byte[] bytes, int useless)
- getImage(String message)


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu May 28, 2015 4:12 pm 
Offline
Veteran
User avatar
doti wrote:
Those functions do not connect to the net
- setImage(byte[] bytes, int useless)
- getImage(String message)


Thanks!

So getImage is for webcams only?

What does that setImage variant do, though? That description in the documentation is beyond my understanding. :(


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu May 28, 2015 5:04 pm 
Offline
Site Admin
User avatar
This version of setImage() is an advanced one, if you build the image yourself. Used by The White Queen and Interesting night.
That's why it receives an array of bytes (byte[]), that is, a big chunk of data. This generic state makes it possible to load from a file, build with the help of a library, etc.


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Thu May 28, 2015 5:33 pm 
Offline
Veteran
User avatar
Banjo wrote:
So getImage is for webcams only?

What does that setImage variant do, though? That description in the documentation is beyond my understanding. :(


getImage should fall back to selecting a file so should work even if you don't have a webcam.

The setImage variant is used in the overlay example so you have that already :-)

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.
https://play-clan.site profile: Liz


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Sun Sep 13, 2015 9:07 am 
Offline
Veteran
User avatar
Updated with some very basic examples of using arrays, and how this can be useful.


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Tue Sep 29, 2015 8:01 pm 
Offline
Site Admin
User avatar
All of this is very good.

Just one thing, there is a standard email address domain for samples : whatyouwant@example.org (or example.com, .net, .edu).


Top
 Profile Send private message 
 
 Re: SexScripts Tutorial
PostPosted: Sat Jun 04, 2016 6:48 pm 
Offline
Veteran
User avatar
Small update to fix missing file errors in previous version.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

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