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


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 null issue with send/receive
PostPosted: Sat Mar 10, 2018 5:57 pm 
Offline
Veteran
User avatar
the following code worked yesterday
basically "get random number and check it's not in use"

Code:
done=false
while(done==false){
       subid=getRandom(999999999)
       if(receiveString("enforced_chastity."+subid)==null){done=true}
   }   
send("enforced_chastity."+subid,"x")


however today it fails to see null's and loops continually.

I changed code to
Code:
done=false
while(done==false){
   subid=getRandom(999999999)
   if(receiveString("enforced_chastity."+subid)==null){done=true}
   else{show(receiveString("enforced_chastity."+subid))}
   }   
send("enforced_chastity."+subid,"x")

to check what values were held if not null......
and it outputs "null"

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


Top
 Profile Send private message 
 
 Re: null issue with send/receive
PostPosted: Sat Mar 10, 2018 10:37 pm 
Offline
Addict
Hi lifeinplymouth,

when trying to reproduce your problem I encountered the following interesting thing. In version 3.3.2018 the receiveString-function does not returen a null-value, but a string containing the word 'null'. Version 10.01.2018 returns a null-value. This is strange.

If you updated sexscripts in between tests, this may be the reason.


Regards

cgut2001


Top
 Profile Send private message 
 
 Re: null issue with send/receive
PostPosted: Sun Mar 11, 2018 3:07 pm 
Offline
Site Admin
User avatar
I'll check, but the code above must have made you automatically banned (doing much more communications than allowed)


Top
 Profile Send private message 
 
 Re: null issue with send/receive
PostPosted: Sun Mar 11, 2018 3:28 pm 
Offline
Addict
Hi doti,

I forget to include the code used for the check. It's a slight modification of the code-snipped lifeinplymouth submitted, mainly without the while-loop.

Checking for null-value, works (if condtion met) in 10.01.2018, doesn't work in 03.03.2018

Code:
def subid=0
def done = false
subid=getRandom(999999999)
if(receiveString("enforced_chastity."+subid)==null){ done=true }
else{show(receiveString("enforced_chastity."+subid))}
show("enforced_chastity."+subid+" x "+done)



Checking for string containing 'null', works in 03.03.2018 but doesn't work in 10.01.2018


Code:
def subid=0
def done = false
subid=getRandom(999999999)
if(receiveString("enforced_chastity."+subid)=="null"){ done=true }
else{show(receiveString("enforced_chastity."+subid))}
show("enforced_chastity."+subid+" x "+done)



Tracing variables with some development-tools showed in the 10.01.2018 version a null-value is returned while the 03.03.2018 it's string with a length of 4.

Although it could be worked around by using something like the code below, I guess there's some glitch.

Code:
if((receiveString("enforced_chastity."+subid)==null) || (receiveString("enforced_chastity."+subid)=="null"))



Regards

cgut2001


Top
 Profile Send private message 
 
 Re: null issue with send/receive
PostPosted: Sun Mar 11, 2018 3:48 pm 
Offline
Site Admin
User avatar
Thank you

Some new releases will be delivered today


Top
 Profile Send private message 
 
 Re: null issue with send/receive
PostPosted: Wed Mar 28, 2018 2:34 pm 
Offline
Veteran
User avatar
Thanks @doti!


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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.