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
 Adding packages to Groovy
PostPosted: Sat Oct 20, 2018 8:27 pm 
Offline
Regular
Hi,

I recently discovered this amazing piece of software, been missing out for years! I'm not sure if this question has been asked, tried searching but didn't come up with anything too relevant. I was wondering if it is possible to add packages to the Groovy version? I was looking at the json or xml packages, but can see they aren't included by default. Putting them in the folder doesn't load them either. Do I need the source code to be able to add these?

The reason I ask, I use the program Random Dresser (well an upgraded version I've been changing), and I am curious about trying to convert some of this code into a web service, which SexScripts could then request from. Things like random toys or implements, things to wear and so on. This would be just from a local server, I think it could add an interesting dimension to scripts like Jewell.

Thanks in advance.


Top
 Profile Send private message 
 
 Re: Adding packages to Groovy
PostPosted: Sun Oct 21, 2018 1:46 pm 
Offline
Site Admin
User avatar
2 things :
- Some of them may be included in the regular version. Just ask about them, and possibly it'll be added (depending on the size, the number of people asking for it, ...)
- You should be able to add manually as any jar ; put the downloaded jar in the "lib/" directory and try the command : java -Djava.ext.dirs=lib -Dfile.encoding=UTF-8 -jar sexscripts.jar


Top
 Profile Send private message 
 
 Re: Adding packages to Groovy
PostPosted: Mon Oct 22, 2018 8:16 pm 
Offline
Regular
doti wrote:
2 things :
- Some of them may be included in the regular version. Just ask about them, and possibly it'll be added (depending on the size, the number of people asking for it, ...)
- You should be able to add manually as any jar ; put the downloaded jar in the "lib/" directory and try the command : java -Djava.ext.dirs=lib -Dfile.encoding=UTF-8 -jar sexscripts.jar



Great, thanks for the reply. The second option is working for me, the json package is loading for me so all good. Thanks again.


Top
 Profile Send private message 
 
 Re: Adding packages to Groovy
PostPosted: Tue Jun 18, 2019 6:56 pm 
Offline
Regular
alecss wrote:
doti wrote:
2 things :
- Some of them may be included in the regular version. Just ask about them, and possibly it'll be added (depending on the size, the number of people asking for it, ...)
- You should be able to add manually as any jar ; put the downloaded jar in the "lib/" directory and try the command : java -Djava.ext.dirs=lib -Dfile.encoding=UTF-8 -jar sexscripts.jar



Great, thanks for the reply. The second option is working for me, the json package is loading for me so all good. Thanks again.


How did you get this to work?

I tried this too, but get an error:

unable to resolve class JsonSlurper

when using the following code:
Code:
def jsonSlurper = new JsonSlurper()
def object = jsonSlurper.parseText('{ "name": "John Doe" }')


Top
 Profile Send private message 
 
 Re: Adding packages to Groovy
PostPosted: Wed Jun 19, 2019 9:47 am 
Offline
Site Admin
User avatar
You should use the complete name of the JsonSlurper class
Code:
def jsonSlurper = new groovy.json.JsonSlurper()
def object = jsonSlurper.parseText('{ "name": "John", "ID" : "1"}')

The Json package is now included as a standard library of SexScripts


Top
 Profile Send private message 
 
 Re: Adding packages to Groovy
PostPosted: Wed Jun 19, 2019 4:05 pm 
Offline
Regular
Thanks, that worked like a charm!


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 5 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.