[EDI] Karryn's Prison stroker integration with multi axis support v1.1b

About the mod (long read)

After years of development, Rem has recently announced that they would stop working on Karryn’s Prison.
They’ve added everything they felt like they needed to.
With that, the hope of actual good sex toy integration went down the drain.
I wasn’t ecstatic about the news, since I was kinda lowkey hoping they’d add support for something that isn’t complete garbage.

At the same time I was looking at a kinda basic abandoned project here, that was using intiface central, which also isn’t exactly the best, since intiface leans more into the “wide as an ocean, deep as a puddle” (idk if that works in English, I hope you catch my drift here) approach of trying to support everything under the sun at once, but only with a single linear axis.

That’s when I saw that EDI actually has multi axis support, and if the marketing proves true, the integration would be easy.

Me being slightly computer literate, but not knowing javascript at all, I set out to make something that the devs were unwilling to, so I did what everyone does nowadays, and asked AI about it.
Since we’re talking about porn here, obviously pretty much all of them except for Grok were out of the question, so I went with my dear friend Yi Long Ma’s option. thanks for not being a giant cunt xAi

After about a week of wrestling with Grok forgetting what we were working on every other day, what I emerged with was a fully functional multi axis funscript playback plugin (and funscripts) for The best eroge ever (as of writing this).

About the mod itself:
My main design principle was that I’d focus on the male in pov, instead of the Karryn focused actions the original lovense integration brought to the table.

I will try to cope with the fact that this might upset the .0001% female playerbase.

There are very few exceptions to this, I’ll list them later.
What this means is that for a specific CG there will be a specific funscript playing, that is based on the actual sex position on screen. This is based on the main actor (crown) where possible.
This let me include more lengthy and complext scripts instead of 0-1-0-1 loops, since you’ll actually have time to appreciate them, instead of jumping around between very slightly different 0-1-0-1s.
It was also relatively simple to code, because most scripts could just be assigned to the current scene ID and that’s it.

For defeat scenes, where the same CG plays from start to end, I went with separate scripts for each body slot, (e.g. hand, pussy, mouth), and set up a priority to have them play based on the highest priority hole stuffed(or a combination in a few cases).
There are some outliers, which needed specific, unique solutions, like the gym trainer poses, because Rem thought it would be fine to just not set up body slot statuses if there aren’t dozens of men and things lining up for a single hole.

Another special case was cutins for creampies, swallowing, bukkake, and Karryn’s orgasm.
At first I was going to only play reaction scripts for cutins that play for the “crown guy”, but it was really hard to set up, was only working like 80% correctly (I couldn’t make it work for bukkake, only for creampies and swallowing), so in the end I let those play for everyone in the scene.
It adds more variety, so I was like it’s probably fine.

Orgasm cutins tho, they only trigger if there’s someone inside one of her holes.
No scripts for petting cutins, like fingering and stuff, because we’re male pov focused.
The only exception here is cunnilingus, because it is a sex pose and I didn’t want to exclude it.

The last thing to handle was masturbation, which I’ve managed to get working about 90% correctly, the only thing that I couldn’t set apart from the rest was the halberd masturbation in battle, but then I was like this is too much hassle, and we’re doing male pov focus anyway, so I reverted it, because it wasn’t perfect anyway. Because of this, masturbation scenes are set to play a single filler script, specific for each one, but at this time they are all linked to the same filler.funscript, they’ll get separate ones later.

In the end, everything seems to be working fine according to my original ideas, but time will tell.
My testing was somewhat limited.

About expansion and future plans:
You can add your own scripts, but check out EDI’s page about how it works.
If you add extra axes to the existing pose scripts, you need to make them the same length as the existing ones.
All the scripts were made with the same 1 minute long video (so all the scripts are under 1 minute) In OFS. I didn’t include the video file, but you can just rename literally any video and open it along with the funscript.

I will be making scripts to map to the placeholder IDs, and there is a 2.0 version (with sex skill level based differences) I’m planning on making later, but that needs more coding and a fuckton more funscripting to be done, so it’s way out there still.

Link to the mod (all versions)

You can just drag and drop it into the game’s folder, or install the game mod files and EDI separately if you know what you’re doing.
Check EdiConfig.json, maybe you need to set “EnableMultiAxis” to true.
Launch Edi.exe and the game (the order doesn’t matter).
There is a filler that plays on poseid 69, which is the map pose, so when running around in the prison.
If you don’t like it, you can replace it with a different one, or an empty one, but then remap pose 69 in Gallery.csv to that other funscript file.

Have fun, your feedback is always welcome.

Changelog:

I’ll be keeping the prior versions in the album as well, just in case.

v1.1b:

  • Added condition for petting reactions to only play when not having sex.
  • Changed standby filler script because it was kinda shit.
  • Fine tuned some timings for reaction scripts.

v1.1:

  • Added triggers for the following cutins in the .js plugin: boobs_petting, nipples_petting, clit_petting, pussy_petting, butt_petting, anal_petting, finger_sucking, spanking_1, spanking_2, spanking_3, flaunt, karryn_kiss_1, karryn_kiss_2, enemy_kiss_1, enemy_kiss_2, rotor_attach, rotor_play, dildo_insert, dildo_play, bead_insert, bead_play, cockpet
  • Added scripts for the cutins above
  • Added separate scripts for attack, defend, unarmed, evade, down poses
  • Changed playing scripts for couch masturbation and toilet masturbation fillers
48 Likes

For the short testing I did it works wonders. Cant wait to see how this evolves. Thanks

1 Like

I haven’t played Karyn’s prison yet to be with this mod.
Thank you so much

2 Likes

Thank you very much for this. It works for handy quite well.

However, the mod really lacks more scenes scripted. You’ve mentioned that only the parts with males are scripted, but they are small minority of all the actions in the game. One can play for hours and the only played script will be the filling script. Especially at the beginning.

I think scripting all the stuff like finger licking, mastrubation and actual fight actions (slashes) would make it much more fun.

7 Likes

TL;DR: I’ll see what I can do.

You’re right about not much happening until you get to the part where she’s actually touching dicks.
I’ll consider adding stuff for other cutins/actions as well when I’m done with the stuff I wanna do first.

If you check out the instructions on EDI’s page you can actually add scripts for the attack/defend/evade/kick poses for yourself. It’s just a matter of mapping it in the included Gallery.csv(just tag them as reaction), because it is already handled by the .js script (so you don’t have to touch the actual code), I just mapped the same filler to them as well.

I wouldn’t say actions with males are a small minority tho, it’s a porn game. About a woman having sex with males.
I’m sure it really is monotone af in the beginning.
I didn’t really test the earlygame, since I had to have access to all sidejobs and positions and defeat scenes to test them.
It might also be jarring to have the full intensity scripts playing right from the get go, that’s why I wanna implement sex level based conditions in the long run.

You’re only stuck with the filler(s) playing forever if you literally make an active effort to avoid sex.
I’m not saying it’s not a valid way to play, I actually do it all the time. I give myself the largest handicaps possible and try to keep her pure for as long as possible, but then you’re not really playing the ero portion of the eroge.

What I mainly wanted to do with this mod is give the community a platform that can easily be expanded upon.
Of course, I’ll do it myself over time, but nothing is stopping anyone from making some more funscripts to add variety. It’s all set up to handle them without any changes to the code.
There are more people here who can make funscripts than those who can make a .js plugin to call them in game.

6 Likes

Thank you! Can’t wait to give this a try!

Does the Lovense hooks still work, or are they broken with this mod?

1 Like

It should still work, this isn’t supposed to break anything, it just adds some extra calls for EDI.

2 Likes

Version 1.1 is up with petting related action scripts.
I’ve tested functionality (they trigger when they need to), not the scripts themselves.
As always, your feedback is welcome.

10 Likes

Ok so I actually tested the gameplay itself a bit and found that the standby filler is actually dogshit so I changed it.
I also tweaked twoke some of the other combat reactions and the duration for the petting reactions.
AAAAAND I also added a condition for the petting reactions to only play if Karryn isn’t having sex.
This serves as a fine middle ground to alleviate the monotony before sex scenes actually start triggering while not fucking up their flow when they do.
Maybe I’ll add a switch later, but I’d need to incorporate a dependency for “Mods Settings” in order to actually have the option appear in game, or have YOU change it for yourself in the .js, which you can already do, except you’re not flipping a bool, but removing an if condition. it’s line 456
Current version is 1.1b, because the change was a minor fix I guess.(?) not like it matters
File should be in the album, but tell me if it isn’t. Or don’t. Your call.

15 Likes

Been playing this for a couple days, amazing work and would love to see more.

Did anyone do anything with the DLCs yet?

When you say DLCs I assume you mean the gym trainer side activity.
Those 2 scenes are included in the mod, I’m not sure what you mean by “doing anything”.

The normal trainer scene plays scripts based on what skill Karryn is using, the “demonstrate” (rinkan) scene is coded to work like defeat scenes, where there’s a priority based on the occupied slots.

Tell me if there’s something that feels like it’s broken, I’ll check it out.

Does it happen to anyone else that sometimes when Karryn gets downed, the downed script continues to play all the time and never stops again?

If it only happens sometimes, I’m not sure what’s causing it.
I’ve just tested it and for me it works as it should.
Getting downed plays 8 (down_stamina) and if I use revitalize it will go back to 5 (standby).
Does anyone else have this issue?
Can it be reproduced or is it completely random?
The mod is programmed to call for the new script every time Karryn changes poses, so in theory there isn’t really any room for error.

1 Like

Loved this game before but damn does this change the experience great stuff right here!

3 Likes

One of my favorite games, super looking forward to 2.0! I’ve been connecting my OSR2 to Ayva and controlling it through a series of streamdeck macros that alt+tab back into the game, but being able to JUST use EDI is something I’ve been looking forward to for a long time!

Fantastic game, such a shame it’s not animated. Scripting is pretty great too. Anyone have any other games EDI compatible and of this quality?