Stash (porn library organiser) funscript integration

@thickcock4804 - DM me. I’ll get you through it.

Hey, I migrated to stash but experienced some issues that a few scripts doesn’t play anymore (handy begins to move for a second and stopps completely) but work flawless on Scrip Player. Has anyone had this problem ?

Yeap I have some scripts that would play on Stash but miss like 95% of the strokes… switch to Handy Control and it plays correct. Other times they just won’t play at all. At first I thought it was for more complex or scripts with a lot of points… but I have some that would run and some that won’t. The only thing I can say is that it has to be in the way the app converts funscripts to CSV for uploading to handy servers but I haven’t looked into it yet.

Purchasing my house was less complicated and time consuming than setting up stash. Good lord. If I had known it would be this difficult to use 2D scripts with my quest 3 I wouldnt have bought it. I’ll give virtual desktop a try.

I agree its not really straight forward. I dropped it and just use virtual Desktop with Heresphere which is well worth its price. Works fine.

I own both HereSphere and Virtual Desktop but havent tried them together. Do you open Virtual Desktop in HereSphere - if so how?

No VD on Quest is used to connect to PC. There you run HS in VR. Until next big UE5 update you have to run SteamVR from VD first so you have the controllers in HS. Its a known bug. Check Discord VD and HS if you need help.

Ok thanks for that. I have the standalone non steam version of HereSphere. I currently use SMB shares in Windows and it works great.

1 Like

I have the exact same setup as @TedBaxter and it works perfectly. I have Stash set up to use the Handy for 2D clips but I’ll watch those on the computer. I don’t do Stash or anything else through the Quest.

I really don’t like the sound of getting the bug through VD… could be nasty.

It’s not a disease. Heresphere has a bug of missing controllers when you start it directly. You need to start SteamVR first. Talking about the PC Version of Heresphere. He will sort the bug out after the UE5 patch.

It was a joke dude, a play on words because Virtual Desktop was being abbreviated to VD then mention of a bug. Just a little juvenile humor.

2 Likes

Agreed, heresphere is selling too cheap if you ask me. I got it immediately after reading about it here. Not sure if I would have if it were more expensive, not having used it myself, but now, if I had to buy it again, I would definitely be willing to pay more lol. I dont know how they do it. I hope whoever made it got filthy rich.

1 Like

Yeah me too, some commands you need to set up to the controllers like zoom and pan around, Next flic and forward, backward but thats it.

I’ve had the same issues that you describe and decided to dig into the cause.

In my situation the issue was a wrongly defined range in the funscript, which caused Stash to create a csv with a value outside of the operating range of the Handy.
It uses this range to create the CSVs for the handy.

An example of this would be a script where the range is defined as 90 but there are actions with a position of 99. Stash then creates a CSV file with an action of 110 which is outside of the 0-100 range that the Handy uses and is then ignored. Causing the whole or parts of the script to not play.

The Script Player might use a different method to convert funscript to CSV which still produces working CSV with a wrong range

I wrote a quick python script that set the range to 100 and haven’t had any issues with those scripts since. You could see if a wrong range is also causing your problems.

If you have python installed I could also share my script, no extra libraries are needed.

TL;DR see if the ranges of your funscripts are defined properly and otherwise change them to the correct value.

1 Like

OH Like this ? “range”: 90, “actions”: [{“at”: 283, “pos”: 94},

Thanks for digging man, was getting really frustrated with setting stash up for hours, but it wasn’t working as I hoped. Now it makes sense why the script is so fucked up XD , of course it doesn’t work, you’re gaslighting the poor program thinking 90 is the limit and tell them to go to pos:94.

Removed the range parameter and now it just works. And yeah I have Python, would love to try the script. Thanks again! @blackx69

Yes, that’s exactly what I was talking about.
I’m glad you had the same issue and I could help with it. :smile:

Here is my python script. I added some settings to the top of the file so it’s easier for you to configure. I can’t upload python files so it’s a github gist link

Keep in mind it’s something I just threw together, so I take no responsibility if your drive is empty afterwards :sweat_smile:

Quick description of what it does:
It recursively goes through all the subfulders of the directory the python file is in and looks for files with a .funscript extension, checks if the range is 100. If it is 100 then it skips the file, otherwise it looks for through the file and finds the maximum position. If newRange is set to -1 then this maximum is used as the new range, and otherwise the value specified in newRange is used (by default 100)
By default it should also create a backup of the original funscript, with a .orig extension

If there are any questions feel free to reply or send me a DM and I’ll see how I can help. Also goes out to anyone else who wants to use it.

edit:
Keep in mind I do no validation of the funscripts whatsoever, so a wrongly formatted script, probably will cause it to crash.

Nice script… I tend to just use HandyControl to load and re-export. I have a feeling its doing something similar. That flow tend to fix the scripts that fail with Stash

Do you mean this one? It looks like a handy :wink: tool for funscripts, I’ll have a look at it.

I have all my funscripts in one directory structure with subdirectories for site and author from which the scripts are symlinked into the video folders with the correct name for Stash.
So for bulk fixing my script is probably a bit easier, but for fixing individual scripts with more granular control HandyControl definitely seems like the right tool.

Thanks for mentioning it, I hadn’t found it myself yet. :smile:

Yeap thats the one… A bit old but still works. And yeah totally agree with you. I just have so many scripts that I havn’t tested so when I get to one I just fix it then lol

Just wanted to say thanks, my normal Handy Control trick didn’t work for one of my scripts but your script fixed it. Thanks!