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


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Replacing intro script
PostPosted: Sat Nov 05, 2011 4:55 pm 
Offline
Site Admin
User avatar
What to do if you want an alternate startup script ?

As the recommandations say, writers should not overwrite the intro.groovy script. But the solution is quite simple : the script started at the launch of SexScripts is saved in the parameters (data.properties file). By default, this is :
Code:
intro.start_script=intro


So you have to begin your own script, lets say "myintro.groovy" by this
Code:
setInfo(.......)
save("intro.start_script", "myintro")
....


This way, the next time SexScripts will by started, "myintro.groovy" will be the first thing to load.

If you want to let the user choose, here is a corresponding code :
Code:
setInfo(.......)
if(getBoolean("Do you want this script to be your alternate startup script ?"))
  save("intro.start_script", "myintro")
....


Top
 Profile Send private message 
 
 Re: Replacing intro script
PostPosted: Sat May 11, 2013 12:46 pm 
Offline
Active member
Hey


Does this function still work? I seem to have some problem getting it to work in the latest version. I have put both in my intro and my setup file "save("intro.start_script","DW_intro");" but it still starts into the normal intro file


W.


Top
 Profile Send private message 
 
 Re: Replacing intro script
PostPosted: Sun May 12, 2013 9:56 am 
Offline
Site Admin
User avatar
Right, I make a release with the patch now


Top
 Profile Send private message 
 
 Re: Replacing intro script
PostPosted: Sun May 12, 2013 1:39 pm 
Offline
Active member
Thanks, works again ;)



W.


Top
 Profile Send private message 
 
 Re: Replacing intro script
PostPosted: Sat May 07, 2016 5:36 am 
Offline
Shy
really useful this makes it so when i am writing code for a script make it so i don't have to change the script


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

All times are UTC + 1 hour [ DST ]


Who is online

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