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


Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Tutor wanted.... :-/
PostPosted: Sat Aug 01, 2020 10:06 pm 
Offline
Addict
User avatar
Hey,

I'm trying to write scripts but I'm having a heckuva time trying to get my syntax correct. Are there any script writers willing to help me debug? I hate to flood the forums with dumb questions. :oops:

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Sun Aug 02, 2020 10:08 am 
Offline
Addict
Just ask all questions in one thread if you not want to flood here.

What me helped learn groovy is the tutorial from Banjo, this site: https://www.tutorialspoint.com/groovy/index.htm and a editor that complains about everthing: IntelliJ IDEA Community Edition from https://www.jetbrains.com/idea/

In IntelliJ you start a new project, select groovy (look left table), extract SS in the project folder and make a new groovy script in the scripts folder.


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Mon Aug 03, 2020 11:38 pm 
Offline
Addict
User avatar
Thanks...

I started out a lot more complex than the code shown below but kept simplifying it until this and still have issues. I think it is with the watch () but not sure.

Show spoiler

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Tue Aug 04, 2020 10:28 am 
Offline
Addict
You must put a function before you use it. Put watch over intro!


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Tue Aug 04, 2020 3:16 pm 
Offline
Addict
User avatar
MissEshock2002 wrote:
You must put a function before you use it. Put watch over intro!


:oops: Thanks. I'll get better. :lol:

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Wed Aug 05, 2020 11:47 pm 
Offline
Addict
User avatar
Dumb question #2 - Why can't I get my IF .. ELSE statement in WatchPorn working?

Show spoiler

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Thu Aug 06, 2020 1:08 pm 
Offline
Regular
You need ==, not = for comparison. So change from

Code:
if (playergender = "male") {

to
Code:
if (playergender == "male") {


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Thu Aug 06, 2020 7:04 pm 
Offline
Addict
I think you need the basic for programming.
Here is most you need for groovy in very short overview: https://www.youtube.com/watch?v=B98jc8hdu9g&t=216s
You don't need the installing from the video, but everything in println() and the loops shown works in Sexscript!


Last edited by MissEshock2002 on Fri Aug 07, 2020 4:07 pm, edited 1 time in total.

Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Thu Aug 06, 2020 9:54 pm 
Offline
Active member
Do the groovy commands actually work with Sexscripts groovy syntax/functions or whatever they are called?

Almost everything in that video is foreign to the actual .groovy files that Sexscripts uses.
Example, I've never come across println in a sexscript and that is the primary method to display text to the UI in the Youtube video. I also noticed the same thing when I tried to look up Apache Groovy documentation and I pretty much came to the conclusion that Apache Groovy is the underlying language and that most stuff got renamed for the Sexscripts API/programming. This leads me to referencing everything from other scripts(including the test script that comes with sexscripts) and from the main stickied documentation on top of this script writing forum with the names of the functions/commands. Not even sure what the programming lingo is anymore. I last programmed was over a decade ago with C++(did a 2 month course but never did anything beyond this) and learning Sexscripts has a learning curve, but I seem to understand it best when I see something I'm trying to do as it's implemented by someone else and then reverse engineer to learn the functionality. I'd eventually like to create a 'memory' type game, the type where you flip the cards and make matches but it seems difficult on this platform because the UI only allows about 4 items as clickable before it creates a dropdown list when ideally I'd like to click an image but that functionality doesn't appear to exist here. Until then I'll probably fork an interactive script of a different type(following CC license or getting permission) to pervert it into an estim script to get my start.


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Thu Aug 06, 2020 11:33 pm 
Offline
Addict
User avatar
Zap, that makes me feel better. Some of the commands I've been trying, I copied and pasted from various tutorial sites directly and when they wouldn't work, my frustration level grew. Like you, I'm referencing back to other scripts to scavenge what I can but some of the coding isn't always clear. At least to someone of my skill level! LOL

MissEshock2002 is being really generous and helpful by sharing scripts segments in the repository thread. I've already picked up on several things that I plan to make use of.

_________________
Just here for laughs ... and grimaces. ;)


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Fri Aug 07, 2020 4:06 pm 
Offline
Addict
Zap wrote:
Do the groovy commands actually work with Sexscripts groovy syntax/functions or whatever they are called?

Almost everything in that video is foreign to the actual .groovy files that Sexscripts uses.
Example, I've never come across println in a sexscript and that is the primary method to display text to the UI in the Youtube video.

You're write, Zap. The video is very confuse for beginners.
You don't need the installing from the video, but everything in println() and the loops shown works in Sexscript!


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Mon Aug 10, 2020 12:08 am 
Offline
Addict
Zap wrote:
I'd eventually like to create a 'memory' type game, the type where you flip the cards and make matches but it seems difficult on this platform because the UI only allows about 4 items as clickable before it creates a dropdown list

It makes the drop down with 6 or more button or if the text is long. With 5 buttons you can make 4 directions and one "Flip" button. You need vars for selected position and draw all memory cards in image and a rectangle around the selected.
It's a nice challenge. I think I try to make a memory game. How hard can it be? :lol:


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Mon Aug 10, 2020 4:05 am 
Offline
Active member
"It's a nice challenge. I think I try to make a memory game. How hard can it be?"

My idea was to have the cards not match pictures, but instead play various different estim patterns that all feel different and it would be up to the player to remember how each card felt so they could match them all up.

If you end up doing a memory game of some kind, I'd like to add in an estim function as a fork to it. I've got the estim code down, it's easy enough to do and I even forked a lines tease as a test and it punishes mistakes and slow typing instead of adding time, while playing pleasurable sound files during typing if there wasn't a mistake the line before. I'm working to put together a stim resource pack but keep wanting to change to make it to better match the pain files I have, the volume needs adjustments before I release any of it because I don't want to revise it after anyone else creates a script around it otherwise it makes unwanted changes to the stim in their script, and I'll probably normalize the audio filenames too. I'm trying to figure out an intermittent problem where playBackgroundSound(null) isn't stopping audio properly because it's stopped my script development dead in its tracks.

This is bamaswitch's thread though, so I'm going to put it in a different one to not go off topic too far.


Top
 Profile Send private message 
 
 Re: Tutor wanted.... :-/
PostPosted: Mon Aug 10, 2020 8:42 pm 
Offline
Addict
Zap wrote:
My idea was to have the cards not match pictures, but instead play various different estim patterns that all feel different and it would be up to the player to remember how each card felt so they could match them all up.

Oh, that is a funny idea. :D
I made the memory game. It was not a hard as I think. Here is link to the script: https://pastebin.com/VxYyYAvc
Graphics are not made now.
Here is the thread: https://ss.deviatenow.com/viewtopic.php?f=4&t=990


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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, 2015
This website uses session cookies only.