Have you made a funscript or estim file? help?

Discussion about Cock Hero and other sexy videos.

Moderator: andyp

Post Reply
fagustree
Explorer At Heart
Explorer At Heart
Posts: 186
Joined: Tue Oct 10, 2017 10:36 pm
Contact:

Have you made a funscript or estim file? help?

Post by fagustree »

I'm adding built in support for sex toys to my cyoa site. I can connect to them over bluetooth.
Some of the ch stroke beats are pretty fast... even 8th notes are kinda fast for a vibrate command to a device...

How do you usually structure your scripts? do you vary intensity based on the frequency of beats if they are really close together? How do you normally formulate where strokes and vibrates should be and how long they should be?

I don't have much experience with these scripts or what to expect from them.
Author of https://cyoa.club https://test.cyoa.club
Drop by and chat on discord about the app if you're a developer or a user.
Sponsor my development at https://www.patreon.com/ftrees to help me spend more time adding features and keeping it running.
User avatar
LondonGent
Explorer At Heart
Explorer At Heart
Posts: 280
Joined: Fri Jul 31, 2020 9:47 am

Re: Have you made a funscript or estim file? help?

Post by LondonGent »

What sort of toys are you attempting to support? Funscripts are designed for stroking toys, not vibrators. Each command is a timestamp and a position causing the toy to move to that location, rather than switch on/off.

For cock hero scripts it's really quite simple - each beat onscreen is recorded as a command in the funscript. For easy mode the positions alternate between 0 (bottom) and 100 (tip) on each beat. Hard mode each beat is position 100 and a position 0 command is added half way between them.

Very fast beats are (mostly) dealt with by the toys themselves. If they don't have time to complete the stroke they will just start moving in the opposite direction as soon as the next command arrives. Effectively the stroke length gets shorter, rather than reducing the frequency of strokes.

If you're trying to convert funscripts to work with a vibrating toy, I'd suggest mapping the vibration to the movement speed of the toy, rather than the position. This can easily be calculated for two commands as the difference in positions divided by the difference in timestamps.

E-stim is a whole different and more complex beast, but it is linked because there are several good tools for automatically converting funscript files in to e-stim audio files that mimic the stroking sensation. If you want to support these you'll need to be able to output the special audio to a separate audio-device from whichever one is playing the sound - you can't just hook up to them via bluetooth.
User avatar
47dahc
Explorer At Heart
Explorer At Heart
Posts: 286
Joined: Mon Aug 03, 2020 1:43 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: Have you made a funscript or estim file? help?

Post by 47dahc »

For vibration toys that are simply on and off, you might be able to find .beat files. They are basically a .txt file that removes the position data from the time stamp. I think that would be a good way to command on/off cycles for them.

Converting a funscript is not that hard using find, replace, and a quick formula in excel. When I first started messing around with funscripts and estim I would convert them to a beat txt file.

Here is the process I used with funscripts and it really is simple once you’ve done it a couple of times.
Spoiler: show
  • Change or save file.funscript to file.csv
  • Open it with excel
  • Select cell A1 and press Crtl-A to select all the values in cells and the Crtl-C to copy the values
  • Scroll back to A2 and right click and select transpose in the paste menu. All values should be in the A column.
  • Row 1 can now be deleted.
  • Delete any values you don’t need or want. I usually delete everything before the actual actions.
  • Change the format of Column A to Text. This will keep the numbers as they are.
  • Add a filter to row 1 and deselect anything with a {“pos”:##. This should leave you with nothing but timestamps. ex. at:75965}
  • Click the find and select menu and select replace
  • In the find field, type “at:” without the quotes. Leave the replace field blank. Click replace all. This will erase all instances of “at:”
  • Once complete, in the Find field, type } and leave the replace field blank. This erases all the }.
  • All you should have left is a bunch of 4-7 digit numbers depending on the length of the file.
***If your beat or txt file requires the time stamps to be ##.### then do the following, if not, skip to step 15.
  • 13. Now in cell B1 type =A1*0.001. This will translate your number into a number with 3 decimal places. For ex 74567 will become 74.567. If need be, change the column format options to number with 3 decimal spaces. This will keep the zeros at the end.
  • 14. Hover your mouse in the bottom right corner of B1 until the crosshair shows up and then double click. The formula will continue all the way to the end.
  • 15. Now copy column B and paste the values only in column C. A and B can now be deleted.
16. You can also skip step 15 and just paste the values in a text file and save it as file.beat or file.txt.
Keep funscripts for strokers and estim. Viewing the data is simple since they open up with Notepad.
Creator of MetroVerter The Metronome to Tcode converter
My Guide on How to create and mix estim surround videos
My guide on Setup TeaseAI - Awakening with Restim
throwawayacct
Explorer At Heart
Explorer At Heart
Posts: 302
Joined: Wed Jul 31, 2019 5:51 pm

Re: Have you made a funscript or estim file? help?

Post by throwawayacct »

Converting a funscript to stim is easier than that. Socialstim user created a converter.

https://cfs6t08p.github.io/funstim/funstim.html
fagustree
Explorer At Heart
Explorer At Heart
Posts: 186
Joined: Tue Oct 10, 2017 10:36 pm
Contact:

Re: Have you made a funscript or estim file? help?

Post by fagustree »

starting with a vibe.

what im finding is that web bluetooth command throughput is very slow... I can get maybe 5 total commands per second... which is on off on off on. so maybe 2 pulses per second... not very fast...

Other ideas I'm looking at are varying the intensity of the vibe when it detects beats close together... but wondering what ppl do when things get tricky like that. Might have to suggest that users download the native bluetooth controller app as a companion. I wanted the full install-less experience, but there aren't many good options for me at this point it looks like.
Author of https://cyoa.club https://test.cyoa.club
Drop by and chat on discord about the app if you're a developer or a user.
Sponsor my development at https://www.patreon.com/ftrees to help me spend more time adding features and keeping it running.
User avatar
hosenguy
Explorer At Heart
Explorer At Heart
Posts: 323
Joined: Sun Jun 14, 2015 11:22 pm
Gender: Male
I am a: None of the above

Re: Have you made a funscript or estim file? help?

Post by hosenguy »

The developers of the OSR open stroker found that bluetooth is not sufficient to work at any reasonable speed. They use wifi or direct USB at this time. The Fleshlight Launch uses bluetooth but has a lot of complaints for numerous reasons. The Handy uses wifi.
User avatar
LondonGent
Explorer At Heart
Explorer At Heart
Posts: 280
Joined: Fri Jul 31, 2020 9:47 am

Re: Have you made a funscript or estim file? help?

Post by LondonGent »

fagustree wrote: Wed Jan 27, 2021 5:41 pm starting with a vibe.

what im finding is that web bluetooth command throughput is very slow... I can get maybe 5 total commands per second... which is on off on off on. so maybe 2 pulses per second... not very fast...

Other ideas I'm looking at are varying the intensity of the vibe when it detects beats close together... but wondering what ppl do when things get tricky like that. Might have to suggest that users download the native bluetooth controller app as a companion. I wanted the full install-less experience, but there aren't many good options for me at this point it looks like.
Speed of stroke = intensity of vibe will be the best way to go. Just looking for beats close together won't work - some scripts have positions in the middle of strokes, not just at the top and bottom. These can look like really fast beats but are actually just more complex strokes.

For example this is a single down-up stroke lasting 1 full second:

Code: Select all

{"pos":100,"at":0},
{"pos":98,"at":50},
{"pos":90,"at":100},
{"pos":79,"at":150},
{"pos":65,"at":200},
{"pos":50,"at":250},
{"pos":35,"at":300},
{"pos":21,"at":350},
{"pos":10,"at":400},
{"pos":2,"at":450},
{"pos":0,"at":500},
{"pos":2,"at":550},
{"pos":10,"at":600},
{"pos":21,"at":650},
{"pos":35,"at":700},
{"pos":50,"at":750},
{"pos":65,"at":800},
{"pos":79,"at":850},
{"pos":90,"at":900},
{"pos":98,"at":950},
{"pos":100,"at":1000}
You also need to consider what happens if stroke don't go all the way from 100-0-100. I wrote a RLGL script recently that had large sections stroking only the tip, going from 100-60-100 instead of the full travel. Using speed would account for this but number of beats or position would not.
fagustree
Explorer At Heart
Explorer At Heart
Posts: 186
Joined: Tue Oct 10, 2017 10:36 pm
Contact:

Re: Have you made a funscript or estim file? help?

Post by fagustree »

I need more information from the group here... like what toys are most prevalent... etc..
Author of https://cyoa.club https://test.cyoa.club
Drop by and chat on discord about the app if you're a developer or a user.
Sponsor my development at https://www.patreon.com/ftrees to help me spend more time adding features and keeping it running.
fagustree
Explorer At Heart
Explorer At Heart
Posts: 186
Joined: Tue Oct 10, 2017 10:36 pm
Contact:

Re: Have you made a funscript or estim file? help?

Post by fagustree »

I made some progress on mapping close beats to intensity.
https://imgur.com/a/b6LrZRv
Author of https://cyoa.club https://test.cyoa.club
Drop by and chat on discord about the app if you're a developer or a user.
Sponsor my development at https://www.patreon.com/ftrees to help me spend more time adding features and keeping it running.
Electro
Explorer At Heart
Explorer At Heart
Posts: 563
Joined: Thu Feb 13, 2020 9:45 am

Re: Have you made a funscript or estim file? help?

Post by Electro »

For the vibrator thing operating off of bluetooth, since you are looking to use the funscript file, it doesn't need to send the command for the specific speed of the vibe to occur at the exact time that the funscript commands it, if there is a 250ms bluetooth and vibe speedup/slowdown lag time, you would just adjust the time that it sends that command sooner. I thought the players of the fleshlight strokers could be adjusted for timing, not sure why that would cause a problem forcing them to not use bluetooth, just send the commands earlier via a lookahead function.

I agree that the best way is to speed up and slow down the vibe to match the speed of the stroking, maybe more specifically the amount of total movement over time, since there are some funscript files that make a 10% movement rapidly, but that doesn't quite equate to rapidly moving full strokes, so for a vibe it might still be a medium pace.

Interesting project, good luck
User avatar
Rule63MePlease
Explorer At Heart
Explorer At Heart
Posts: 187
Joined: Sun Sep 20, 2015 4:13 am
I am a: None of the above

Re: Have you made a funscript or estim file? help?

Post by Rule63MePlease »

Funscripts? . . . This sounds interesting. I have never made anything like that, but I am interested in learning more about how one could make scripts for controlling different kind of devices. :yes:
Post Reply