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


Post new topic Reply to topic  [ 131 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9
Author Message
 Re: Farkel - A Dice Game
PostPosted: Thu Aug 23, 2018 1:16 am 
Offline
Addict
Hey @cd228

I haven't had time to look, but if you could (read Int / fetch the first 4 bytes) and compare against "FF D8 FF EO" - (as long as they are jpgs) then you could possibly confirm if an img has already been decoded and skip, rather than decoding twice. If this is what you was talking about.

_________________
while (!succeed) try();


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Thu Aug 23, 2018 9:09 am 
Offline
Veteran
modnar wrote:
Hey @cd228

I haven't had time to look, but if you could (read Int / fetch the first 4 bytes) and compare against "FF D8 FF EO" - (as long as they are jpgs) then you could possibly confirm if an img has already been decoded and skip, rather than decoding twice. If this is what you was talking about.


Cool. I had absolutely no idea :-).
Is the string you refer to, some sort of fingerprint all jpgs start with?
When I have some time I will try it out :-)


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Thu Aug 23, 2018 11:07 am 
Offline
Addict
Sent you a pm

** Edit **

I must admit, having images which aren't view able is a great idea, especially then thumbnails wouldn't accidentally show up on my computer if anybody went searching :)

_________________
while (!succeed) try();


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Thu Aug 23, 2018 5:21 pm 
Offline
Veteran
modnar wrote:
Sent you a pm

** Edit **

I must admit, having images which aren't view able is a great idea, especially then thumbnails wouldn't accidentally show up on my computer if anybody went searching :)


Exactly:).
Originally I intended it as a reward system, so you wouldn't be able to peek at the images in the folder.
And later I went on to incorporate it as a tease element, where certain pictures are hidden so you wouldn't be able to check them in case you are asked to remember something from previous images.

But it is possible to maybe do it on the fly, so every picture is encoded, and only decoded when actively shown. I don't know if it would introduce some lag.


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Fri Aug 24, 2018 2:06 am 
Offline
Active member
Hey,

Found an error which causes the script to end.

On the initial setup, I selected that if I lose I want to receive butt spanks, and she gave me a number, I opted to negotiate and then it errored.

Code:
groovy.lang.MissingMethodException: No signature of method: ss.FullScript_Farkel.getInteger() is applicable for argument types: (java.lang.String, java.lang.Double) values: [<i>Suggest amount of spanks:</i>, 20.36989525676701]

Possible solutions: getInteger(java.lang.Object, java.lang.Integer), loadInteger(java.lang.String)


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Fri Nov 02, 2018 3:09 pm 
Offline
Addict
A problem occurred a few days ago with no pictures appearing in the penalty phase. I tried to cure the problem by again downloading the script and the expansion pack and I ended up with no pictures appearing for the game or the penalty phase?

What has happened?

Thanks,

bendedknee


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Thu Nov 08, 2018 7:44 pm 
Offline
Veteran
bendedknee wrote:
A problem occurred a few days ago with no pictures appearing in the penalty phase. I tried to cure the problem by again downloading the script and the expansion pack and I ended up with no pictures appearing for the game or the penalty phase?

What has happened?

Thanks,

bendedknee


Try redownload one more time (both original and extra package). Now before launching go to your data file in sexscripts and change both farkel.version=(to something random), and the same with farkel expansion version.


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Sun Mar 24, 2019 12:19 pm 
Offline
Active member
too bad you have too write lines for Amberlight to win the extra set of pictures


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Sat Jan 25, 2020 7:40 pm 
Offline
Regular
I have a handful of fixes for Farkel.

    Spelling and phrasing fixes
    Math fixes to avoid non-integer display of some numbers
    Slightly shorter wait times in a few cases
    Clarify some dates/times with denial


Code:
--- a/scripts/Farkel.groovy
+++ b/scripts/Farkel.groovy
@@ -205,7 +205,7 @@ def playSoundDiceroll = {
//Different image functions
def setImageGame = {
   //DOTI : no more
-   //see post 6398, ans SexScripts documentation
+   //see post 6398, and SexScripts documentation
   //def folder = new File(System.getProperty("user.dir")+"/images/farkel/"+mistress+"/"+pictureSet+"/")
   def folder = new File(getDataFolder()+"/images/farkel/"+mistress+"/"+pictureSet+"/")
   def fileArray = folder.listFiles()
@@ -309,7 +309,7 @@ def options = {
            rememberDenial = false
         }
      }else if(option == 5){
-         if(getBoolean("If you enable this feature, you will enlist in a tournament against all the mistresses. It will consist of three rounds, and only if you beat all rounds will you be able to clame the prize of cumming.","Enable","Disable")){
+         if(getBoolean("If you enable this feature, you will enlist in a tournament against all the mistresses. It will consist of three rounds, and only if you beat all rounds will you be able to claim the prize of cumming.","Enable","Disable")){
            tournament = true
         }else{
            tournament = false
@@ -409,7 +409,7 @@ def introduction = {
      if(getBoolean("Not so fast!\n\nIf you lose you will not only be denied an orgasm. You will also receive a punishment based on how bad you played the game.", "I'm in", "*bail*")){
         show("I am very pleased to hear that.")
         takenBet = true
-         wait(5)
+         wait(3)
      }else{
         show("I guess you are not man enough.\n\nThen let us just play a casual game")
         wait(5)
@@ -434,7 +434,7 @@ def betAlgorithm = { maxPunish, minPunish, chanceOfCum, randomSeverity ->
      def a = (maxPunish/2)-b*Math.log(50)
      punishment = (int) (a+b*Math.log(chanceOfCum))
   }else { //If the chance is below 50% an exponential function is used.
-      punishment = (int) 20*Math.pow(Math.pow(50/minPunish,1/50),chanceOfCum)
+      punishment = (int) (20*Math.pow(Math.pow(50/minPunish,1/50),chanceOfCum))
   }
   return punishment*randomSeverity

@@ -451,7 +451,7 @@ def betNegotiation = {
   def punishmentChoice

   show("So let us start by negotiating the terms.")
-   wait(5)
+   wait(3)
   
   def endNegotiation = false
   def negotiationRound = 0
@@ -502,7 +502,7 @@ def betNegotiation = {
            punishmentSentence = " a ruined orgasm"
            punishmentSuggestion = "ruined"
            punishmentUpperLimit = 3 // just a place holder
-            punishmentLowerLimit = 0  // just a place holder
+            punishmentLowerLimit = 1  // just a place holder
         }
      }

@@ -517,7 +517,7 @@ def betNegotiation = {
               show("It's a deal")
               endNegotiation = true
               agreement = true
-               wait(5)
+               wait(3)
            }else{
               if(getBoolean("What would you like to negotiate?", "Punishment", "Chance of cumming")){
                  agreedPunishment= getInteger("<i>Suggest amount of "+punishmentSuggestion+":</i>", agreedPunishment)
@@ -576,7 +576,7 @@ def betNegotiation = {
      }
   }
   if(patience<=0){
-      agreedPunishment = (int) initialPunishment * 1.15
+      agreedPunishment = (int) (initialPunishment * 1.15)
      setImageDefeat(1)
      show("My patience is running short!\n\nYour punishment just increased and will now be "+agreedPunishment+punishmentSentence+".\nThat's my final offer!")
      showButton("Okay, Mistress "+mistress+"!")
@@ -997,7 +997,11 @@ def playerRound = {
   }
   playerTotal += roundPoints
   displayTotals()
-   show(display+"You got "+roundPoints+" points that round. That brings your grand to "+playerTotal+"."+"\n\n\n\n\n\n")
+   if (roundPoints) {
+      show(display+"You got "+roundPoints+" points that round. That brings your grand total to "+playerTotal+"."+"\n\n\n\n\n\n")
+   } else {
+      show(display+"You got "+roundPoints+" points that round. Your grand total remains "+playerTotal+"."+"\n\n\n\n\n\n")
+   }
   wait(10)

   if(playerTotal >= (gameEndValue/2) && !halfWay){
@@ -1025,7 +1029,7 @@ def spanking = { message, spanks, bpm ->
//Decides the punishment based on the score
def executePunishment ={
   if(punishmentSuggestion=="spanks"){ //it would be more intuitive to use another identification form to figure out which punishment is used. But I did not want to cram unecessary variables in here.
-      def rounds = (int) agreedPunishment/20
+      def rounds = (int) (agreedPunishment/20)
      def leftover = agreedPunishment % 20
      show("As we agreed, "+agreedPunishment+ " spanks to the butt.")
      wait(5)
@@ -1037,7 +1041,7 @@ def executePunishment ={
      }         
      return
   }else if(punishmentSuggestion=="slaps"){
-      def rounds = (int) agreedPunishment/10
+      def rounds = (int) (agreedPunishment/10)
      def leftover = agreedPunishment % 10
      show("As we agreed, "+agreedPunishment+ " slaps to the balls.")
      wait(5)
@@ -1060,17 +1064,17 @@ def executePunishment ={

      if(denialTimeStamp>getTime() && rememberDenial){
         currentlyInDenial = true
-         cal.add(Calendar.MINUTE, (int) (denialTimeStamp-getTime())/60)
+         cal.add(Calendar.MINUTE, (int) ((denialTimeStamp-getTime())/60))
         denialUntil = cal.getTime()
      }
-      denialTimeStamp = (int) denialUntil.getTime()/1000 //Convert from millis to seconds. Comparable with getTime()
+      denialTimeStamp = denialUntil.getTime()/1000 //Convert from millis to seconds. Comparable with getTime()
      if(rememberDenial){
         save("Farkel.denialTimeStamp", denialTimeStamp)
         denialMistress = mistress
         save("Farkel.denialMistress", denialMistress)
      }
-      if(!currentlyInDenial) show("As agreed you will have "+agreedPunishment+" minutes of denial.\n\nIn other words, you cannot cum until " + denialUntil.format("HH:mm")+" "+denialUntil.format("dd/MM")+".")
-      else show("As agreed you will have "+agreedPunishment+" minutes of denial.\nSince you are already in denial, your time will be added to your already existing time.\n\nIn other words, you cannot cum until " + denialUntil.format("HH:mm")+" "+denialUntil.format("dd/MM")+".")
+      if(!currentlyInDenial) show("As agreed, you will have "+agreedPunishment+" minutes of denial.\n\nIn other words, you cannot cum until " + denialUntil.format("HH:mm")+" on "+denialUntil.format("EEE MMM dd")+".")
+      else show("As agreed, you will have "+agreedPunishment+" minutes of denial.\nSince you are already in denial, your time will be added to your already existing time.\n\nIn other words, you cannot cum until " + denialUntil.format("HH:mm")+" on "+denialUntil.format("EEE MMM dd")+".")
      showButton("Yes Mistress "+mistress+"!")
      return
   }else if(punishmentSuggestion=="ruined"){
@@ -1149,9 +1153,9 @@ def TimeOfDenial ={
   Date denialUntil = new Date()
   Calendar cal = Calendar.getInstance()
   cal.setTime(denialUntil)
-   cal.add(Calendar.MINUTE, (int)(denialTimeStamp-getTime())/60)
+   cal.add(Calendar.MINUTE, (int)((denialTimeStamp-getTime())/60))
   denialUntil = cal.getTime()
-   return denialUntil.format("HH:mm")+" "+denialUntil.format("dd/MM")
+   return denialUntil.format("HH:mm")+" on "+denialUntil.format("EEE MMM dd")
}

def CheckDenialStatus = {
@@ -1984,7 +1988,7 @@ def victoryPlayer = {
            setImageVictory(1)
            show("Awww, am I being unfair?\n\nWell, at least I am not the sucker with sore balls!")
            wait(8)
-            show("Jerk you cock for me!")
+            show("Jerk your cock for me!")
            showButton("I am hard, Mistress "+mistress+"!")
            setImageVictory(2)
            show("Good!\nNow get to the edge!")
@@ -2386,7 +2390,7 @@ def victoryPlayer = {
               
            }
         }
-         def timeDeadline = (int)(timeTaken[0]+timeTaken[1]+timeTaken[2])/3
+         def timeDeadline = (int)((timeTaken[0]+timeTaken[1]+timeTaken[2])/3)
         if(timeDeadline > 25){
            setImageDefeat(1)
            show("That was pathetic. You spent "+timeDeadline+" seconds on average on the sentences.")
@@ -2621,7 +2625,7 @@ def victoryPlayer = {
               show("Now give me 20 strokes as fast as possible!\n\nNo cumming!")
               showButton("Done, Mistress "+mistress+"!")
               setImageVictory(2)
-               show("Common, you can do it faster than that!\n\nAgain!")
+               show("Come on, you can do it faster than that!\n\nAgain!")
               showButton("Done, Mistress "+mistress+"!")
               setImageVictory(3)
               show("That's better!")
@@ -2964,9 +2968,9 @@ def victoryPlayer = {
                        show("I hope you are ashamed of your performance.")               
                        wait(5)
                     }else{
-                        show("Stop! No even a ruined orgasm for you!")
+                        show("Stop! Not even a ruined orgasm for you!")
                        showButton("Yes, Mistress "+mistress+"!")
-                        show("Now leave with your blue balls.\n\nI hope you are ashemed of your performance.!")
+                        show("Now leave with your blue balls.\n\nI hope you are ashamed of your performance.!")
                        wait(8)
                     }
                  }


Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Fri Jun 10, 2022 3:32 am 
Offline
Regular
bug when negotiating punishment

chance to cum 30% and lower pops up an error message


Attachments:
Screenshot 2022-06-09 213211.jpg
Screenshot 2022-06-09 213211.jpg [ 22.83 KiB | Viewed 6328 times ]
Top
 Profile Send private message 
 
 Re: Farkel - A Dice Game
PostPosted: Mon Jan 23, 2023 11:09 pm 
Offline
Newcomer
Hi, everyone!
It seem, there are many missed parenthesis after cast, in script.

I had bug with denialTime, which it hadn't add to the counter.
So i issue, this part of script V3.3.1

- issue1 in line 1063: this bug cause an error message like the post of Xt599, under mine.
old line: cal.add(Calendar.MINUTE, (int) (denialTimeStamp-getTime())/60)
new line: cal.add(Calendar.MINUTE, (int) ((denialTimeStamp-getTime())/60))

- issue2 in line 1066: this bug cause an overflow of data, because it's casting before the division operator.
old line: denialTimeStamp = (int) denialUntil.getTime()/1000 //Convert from millis to seconds. Comparable with getTime()
new line: denialTimeStamp = (int) (denialUntil.getTime()/1000) //Convert from millis to seconds. Comparable with getTime()

Be careful! There are the same minor bug in ralph333 script, 2 post under mine, and certainly many other in the source.


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 131 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

All times are UTC + 1 hour [ DST ]


Who is online

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