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


Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Sex Cards
PostPosted: Fri Mar 06, 2015 12:52 pm 
Offline
Veteran
User avatar
Sorry everyone.. looks like I'm filling up this forum with junk :lol:

The next script that I was going to have a try at was to see if I can do a sex game for couples...

You play as a couple and take it in turn to "pickup" a card with a task on it. Will have 4 levels from Cold (Foreplay) to Extra Hot (Full on Sex). It will also keep a track of what clothes both players are wearing for the game and strip them as needed. And obviously the cards will involve tasks relating to the level, e.g. "Blindfold your partners and kiss her neck for 2 mins" or "Bend your partner over a chair and fuck her hard for 5 mins".

Will need to think how best to store the "cards" so can be selected by random without getting the same card twice in a game and only selecting cards that match what toys / preferences the couple have..

Any thoughts are welcome

_________________
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: Sex Cards
PostPosted: Fri Mar 06, 2015 8:09 pm 
Offline
Site Admin
User avatar
Try to use lists or maps (http://groovy.codehaus.org/Collections, http://groovy.codehaus.org/JN1035-Maps). The difference are : list keys are only numbers, without holes

Here is an example for 52 cards

Code:
def usedCards = [:] // empty map

// main loop
while(...) {

//find a card, 0...51
  def card = null
  while(card == null) {
    def card = getRandom(52)
    if(usedCards[card]==null) // not in usedCards : ok
       card = null
  }
  usedCards[card] = true

  //use the card...
}



Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Sat Mar 07, 2015 6:11 pm 
Offline
Veteran
User avatar
Thanks to Doti and John, looks like I'm getting somewhere....

As I think I could be looking at 200+ cards it will be best to store them in a seperate file (or split into male and female cards..) and was then going to load them into a list e.g. :

Code:
  def f1 = new File('scripts/cards.txt')
  def cards = f1.readLines()


Am I best to keep this text file in (or a sub-folder of) the scripts folder or should I create a data folder from the base folder like we have for images, sounds etc?

Being a list i can just remove cards when picked up:
Code:
      cards.remove(curr_card)

and just pick then next card by random from cards.size() . So no need to keep a record of if its been selected as they will be reloaded next time

So one last thing.. I should have a rough version together next week.. do I just attach a zip of it here as it will prob not be good to have it on the main scripts list yet.

_________________
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: Sex Cards
PostPosted: Mon Mar 09, 2015 12:07 pm 
Offline
Site Admin
User avatar
Data file : nothing standard, you can put it in scripts/myscript/cards.txt


Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Mon Mar 09, 2015 5:58 pm 
Offline
Veteran
User avatar
Ok, my "work in progress" for anyone who is interested.... for most people I would wait for a week till I have a beta version ;)

Two major things I will do before uploading it as a beta on the main scripts pages:

1. Put the filter code in so cards drawn are filtered on current level and sex
2. Populate the cards files with around 50 cards (need at least 4x8 so does not run out even without any being filtered!)

A lot of work will then be needed to make it look nicer but it should at least work. In the short term I think I also need to put a filter in for fetishes e.g. does a couple do Anal, watersports etc.. so will be best to add that in to the data file as I populate it (in point 2 above) or I may just have different card sets?

I think I have made the data file and script flexible enough to cope with Gays,Lesbians and Bi with a few tweaks but will take a lot more work to cope with more than 2 players.

Doti, one quick question... I think I know how to do everything above but from a looks point of view it would be nice to write the text on a card image. The card image will not be full screen, I can't see a way of doing this but wanted to confirm. Thanks

Also whats the rules for pics used by the script.. e.g. if you pickup a card that asks you to do something with handcuff it would be nice to have a pic of handcuffs - I could grab one from google images but is that ok?


Attachments:
File comment: sample cards file stored in scripts/Sex_Cards
cards.txt [1.43 KiB]
Downloaded 930 times
Sex_Cards.groovy [6.51 KiB]
Downloaded 887 times

_________________
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: Sex Cards
PostPosted: Mon Mar 09, 2015 6:26 pm 
Offline
Site Admin
User avatar
It is possible to generate image dynamically, but :
- it is hard (in terms of coding)
- it won't work on Android
You can find 2 scripts that does it : White Queen and SexPuzzles


Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Mon Mar 09, 2015 9:13 pm 
Offline
Veteran
User avatar
doti wrote:
It is possible to generate image dynamically, but :
- it is hard (in terms of coding)
- it won't work on Android
You can find 2 scripts that does it : White Queen and SexPuzzles


Ok, thanks will leave that for now as it would be nice to run the script on an android tablet :-) The other option would be if I can change the background.png image? Also Doti, wondered if I can request a feature update (not sure it can be done) but it would be nice to have a full screen mode (like F11 in browsers) just to make a script like this more immersive?

Groovy is proving easier than I thought, I've done step one from my goals above in 10mins so if I get inspired with the cards I may post the beta tomorrow :-)

_________________
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: Sex Cards
PostPosted: Mon Mar 09, 2015 9:53 pm 
Offline
Site Admin
User avatar
There will be slightly better fullscreen mode in the next release of SexScripts


Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Tue Mar 10, 2015 2:56 pm 
Offline
Veteran
User avatar
Ok have put a beta version up for everyone to have a play with and give suggestions. Think the key area I need help with is adding more "cards" but not sure if it works best keeping the number of cards limited. If you want to add cards the file is in a subfolder of scripts. Each card is on a seperate line formated as values in this order:
Code:
  0 Sex of Person getting Card 0 = can be either, 1 = Female, 2 = Male
  1 Sex of other person: 0 = can be either, 1 = Female, 2 = Male
  2 Level 1 = True or False
  3 Level 2 = True or False
  4 Level 3 = True or False
  5 Level 4 = True or False
  6 Card Text - put in key words e.g. PARTNER,ME (case sensitive)
  7 Next Text = a follow on text.. e.g first text tells you to blindfold and then this is shown once that done
   8 Time = Do a waitWithGauge - Handy for massage your partner for 2 mins
  9 Pic  = Load a picture to relate to the task
  10 Toys required = comma list - must match toys list
  11 Fetishes  = comma list eg. anal watersports etc..


When adding cards keep in mind that I hope to make it Les/Gay/bi friendly soon so for example if you have a task that involves your partners cock but nothing gender specific for you you would start a card [0,1, ... instead of [2,1, .... Also if you are just suggesting cards can you post them here and I will add them into my next update rather than having a mess with merges.

Think I will need to tweak the timing for levels.. Maybee shorter for earlier levels and Level 4 hopefully you will abandon the game before it finishes :oops: also will see how the clothes stripping goes.. may need to be quicker :) Anyway only way to see how it works is for couples to have a play for real...

_________________
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: Sex Cards
PostPosted: Tue Mar 10, 2015 3:56 pm 
Offline
Site Admin
User avatar
When adding a card, do you want us to post here (in a spoiler block ?) or republish with the addition or PM you ?


Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Tue Mar 10, 2015 5:24 pm 
Offline
Veteran
User avatar
doti wrote:
When adding a card, do you want us to post here (in a spoiler block ?) or republish with the addition or PM you ?


Yes sorry was not clear, just rambling as normal ;)

Just post on here (prob best with a spoiler block) or if you have more than 10 to add just attach your revised cards.txt file.

_________________
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: Sex Cards
PostPosted: Wed Mar 11, 2015 10:03 pm 
Offline
Site Admin
User avatar
There's a fun typo : "public" => "pubic" (hairs).
Very good script, high quality

Anyway, 4 more cards :
Show spoiler


Top
 Profile Send private message 
 
 Re: Sex Cards
PostPosted: Thu Mar 12, 2015 2:06 am 
Offline
Veteran
User avatar
haha so public hair whats on your head?

thanks

that card update looks a bit bias for the guys? you may like something hot on your cheast too? :lol:

_________________
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: Sex Cards
PostPosted: Thu Mar 12, 2015 5:34 pm 
Offline
Veteran
User avatar
Ok, the script now asks for each players sex so should work for Gay & Lesbians :D think we have enough cards in now to just work but some feedback would be good and you can also sugest some more cards if you like ;)

Think you should have fun as the script is now working well so enjoy... hope a few of you get to give it a try this weekend and let me know your thoughts :roll:

_________________
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: Sex Cards
PostPosted: Thu Mar 12, 2015 6:14 pm 
Offline
Site Admin
User avatar
Had an idea : I could show something that looked more like a card with this code :
Code:
show("<div style='background: white; padding:90px 40px; border:2px solid black; margin:3px; text-align:center'>Card 1\n\nDo this, gently</div>");

Very limited : no border-radius, no border, result unknown (probably correct) with android.


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

All times are UTC + 1 hour [ DST ]


Who is online

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