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

Would you mind sharing how the editing can be made? Also if I want to add script to a scene that’s not scripted yet what software would I need and how can I do it? I would like to give it a try, thanks ! :slight_smile:

You have to edit EdiKarrynPose.js.
The code is in plaintext, so you can use any text editor, even notepad if you’re a masochist.
Notepad++ is a step up, but I’m sure there are even better tools for the task.
I’ve also used Visual Studio Code a bit.
I don’t know what scene you want to code exactly, but most scenes are handled by an override of the original Game_Actor.prototype.setPose function, but there are some others for cases that had different conditions.
The checkDefeatScenes(actor) function handles most of the other stuff, where there are priorities based on which slots are being used.
The basic logic is just getting a pose ID and then passing that to EDI via EdiClient.Play().
The pose IDs are mapped to funscript files in Definitions.csv.
If you’re unfamiliar with javascript, I’d recommend using some kind of AI tool.

Also, if a scene is not scripted, then it was probably really problematic to script the way I wanted it to, like masturbation, or something is broken.
That’s why those scenes just use play fillers.

glhf :^)

I’m not sure what you mean when you say gallery.
The filler script is set to “gallery” type in EDI, which just causes it to loop and have a lower priority than “reaction” type.
From what you wrote I would get the picture that you’re talking about some kind of gallery in the game if I didn’t know that it doesn’t exist. Or maybe I was just unaware for the past 6 years and roughly 600 hours of playtime xd. CCmod’s [I can’t remember] mode that’s kinda like a free battle works like a normal battle, so that should play the scripts normally.

If you’ve made more filler scripts I can add them to the main post, or you can just leave them here in a comment I guess.
It doesn’t hurt to have more variety.

Thanks so much for the details! I actually just wanted to script a scene when Karryn’s pleasure gauge is full (orgasms). What are the steps to make that happen?

Additionally, would also like to script a more intense filler script after that happen…

If Fillers where marked as Fillers jn the definition.csv, and the pose code actually called to use Fillers for those pose IDs, then we can add custom filler funscripts like the one I linked

I added chapters to the funscripts I posted above, which can be added to the definitions. There’s 3 types for the category, Gallery (standard), reaction (used to “cut in"), and filler. You don’t have anything in the EDI definition.csv marked as filler

Edi can automatically start using filler scripts when its not playing a gallery, useful for when a character is just walking around. You can also set different levels of filler for intensity

This function handles that:

// Override raidOrgasm
Game_Actor.prototype.raidOrgasm = function(numOfOrgasm) {
EdiKarrynPose.log(raidOrgasm called - numOfOrgasm: ${numOfOrgasm});
const result = EdiKarrynPose.Game_Actor_raidOrgasm.call(this, numOfOrgasm);
try {
const pussyStatus = this.getBodySlotStatus ? this.getBodySlotStatus(PUSSY_ID) : 1; // SLOT_FREE = 1
const analStatus = this.getBodySlotStatus ? this.getBodySlotStatus(ANAL_ID) : 1; // SLOT_FREE = 1
EdiKarrynPose.log(raidOrgasm - PUSSY_ID status: ${pussyStatus}, ANAL_ID status: ${analStatus});
if (pussyStatus === 30 || analStatus === 30) { // SLOT_PENIS = 30
const funscriptId = numOfOrgasm > 2 ? 90002 : numOfOrgasm > 1 ? 90001 : 90000;
EdiKarrynPose.triggerFunscript(funscriptId, raidOrgasm);
} else {
EdiKarrynPose.log(No raidOrgasm funscript triggered - no penis in PUSSY_ID or ANAL_ID);
}
} catch (err) {
EdiKarrynPose.log(Failed to handle raidOrgasm: ${err.message});
}
return result;
};

You can find it al line 394.

It only triggers if there’s a dick inside her pussy or ass, playing 90000, 90001 or 90002 based on the number of orgasms (100%, 200%, 300% pleasure)
Based on my tests it is working as intended. If you want it to always trigger, just remove the condition for (pussy status = 30 or anal status = 30)

Ah right, I get what you’re saying.
The reason it’s set up like this is because the filler I’m using corresponds to specific poses (like -1, the “map” pose). It is actually called, it’s not like it’s just playing because nothing else is playing.
There isn’t really a state where nothing is playing, so a “filler” entry wouldn’t ever get triggered, because the plugin isn’t set up to stop script playback, it just reverts to playing filler.funscript, which is set as “gallery” type to loop.
It was easier to implement like that with the original setpose function override.
I assume you know how to swap the script, it’s just a matter of overwriting the file and changing the duration in the .csv.
If you want multiple fillers for the -1 pose id, which is the “running around the map” state, then that would need a more refined implementation on the plugin side.

Yup, we would just need to update the -1 or other “filler pose” detection to just call stop instead, and update the type in the definitions file. Should be an easy update

Do I need to rename them, like
from
orgasms.funscript
double
triple …etc

to

90000.funscript
90001.funscript
90002.funscript

inside the gallery > KP folder?

nah you don’t need to rename anything.
the funscripts are linked to the numeric IDs through the csv.

1 Like

How to ues?

Mentioning this here because these mods are literally the only reason I know of this game, they’re dropping a JAV porn parody of this game. Was scrolling by and saw the cover and thought I recognized it. Lo and behold, JAV parody with Otsu Alice.

Figured this would be an interesting thing to mention since not everyone follows JAV releases.

2 Likes

I looked but having a hard time finding that release! Lemme know if anyone’s got a link to share!

Its not out yet. Officially releases on the 14th. Thats why you can’t find it.

Well its out on the torrent sites. Im not linking cause we have rules against torrent. Just search the code MKMP-718 on sukebei to find it.

Its on jav (dot) guru /957360/mkmp-718-busty-prison-guards-gradual-corruption-in-prison-rpg-live-action-karryns-prison-seina-arisa/