[Help Needed] Karryn's Prison - Karryn's buttplug.io mod

Yea, which if that’s what is happening it’s so annoying that this could probably have buttplug.io natively but Lovense once again locks a product behind their shit app

I think i found what is triggering it, there is a piece of code that checks for “raid” functions and i thought that was for the scenarios when you are defeated, but apparently also triggers in normal combat.

what it does is checks for enemy actions such as talking, looking and all sexual acts, there is also one for arousal which might be the trigger.

also if there is nothing setup for it yet, it goes to a default action which indeed moves the toy for two strokes.

4 Likes

When you connect lovesense edge and try to start the game the game throws an exception that lovesense _edge_minvalue is missing (it’s also missing frrom the settings)

But can I set this up so the handy is also triggered by raid functions like the native lovesense integration?

2 Likes

Since i am not really working on this mod i thought I’d share the code i currently have and how to continue it.

currently my setup is:

  • Visual studio Code
  • Vortex Mod Loader
  • NW.js To allow debugging of the code. (i dont know where i got it from originally but i added it to the Mega Folder. once the game is started up press F12 to see a console where you can call functions and see outputs from console.log())
  • Mod Settings
  • All Mod Files and Images can be found here: Mega

To edit and build the code for use you want to:
how to build image

  • Open Karryns_Buttplug folder in Visual Studio

  • To build the project click on package.json and a small arrow with the word debug should appear on line5.

  • if you click it you get 2 options at the top. Click Build and wait for it to finish.

  • in the Karryns_Buttplug folder open the folder dist, these two files are the mod files.

  • Place the mod files in your vortex folder as follows: \mods\karryns buttplug\www\mods (You can navigate here easily by using the Open... button in the yellow bar and click: Open Mod Staging Folder. Image

Things i know about the code:

  • src/index.ts is the main start of all files if i remember correctly, which loads src/main.ts.

  • src/main.ts is where the main functions get loaded such as intiface connection.

  • ReplaceGlobalRaidFunctions function to load all types of battle interactions.

  • decorate (startBattle) function which triggers on initiating combat which currently stops all devices.

  • decorate (endBattle) function triggers after battle and currently starts the fluffing (Alternating based on arousal). The file that controlls this is in: src/actions/startFluffing.ts on line 29.

  • decorate (startTurn) i don’t remember when excactly this triggers but currently only outputs a message to the debug console.

As for Creating custom actions:

  • for a certain scenario have a look at the file: src/actions/replaceGlobalRaindFunctions.ts here is a list of the actions that can be performed, you can also add ones here. once they are triggered they will look for the file with the same name in: src/actions/raid/raidArousal.ts (for the action raidArousal). you can create more files there, but if its not found it will revert to src/actions/raid/raidDefault.ts.

  • There are a few ways to send commands to the toy as for: pattern which uses a duration in milliseconds for the whole pattern. The pattern that should be applied in order between 1 and 0. (i dont remember which is fully in and out) and i believe you can make this pattern as long as you want.

  • All current available actions are in: src/entities/device.ts

Creating Device Settings
all settings for each connected device are in: src/settings/deviceSettings.ts.
i haven’t worked with this a lot so i can’t tell you a lot about it.

I think i got everything, if not let me know!
i hope someone has the time to make this into a proper mod.

6 Likes

What if try to spoof Lovence scripts and try to convert it for handy?

Hello again everyone
I’ve been pushing chatgpt to finish the script according to the settings and speed of Lovence toys.

This is the only time it works without crashes XD
I hope someone will continue the description of the code and make the speed and position settings.

1 Like