News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

Posibile to connect to chat bot?

Started by dota6v4, Jul 16, 2024, 07:01 AM

Previous topic - Next topic

dota6v4Topic starter

Hi,I'm new here,but have been playing BK for a while.I'm not good at coding on python.(Also not good at english :) ).So I just want to know if this is possible.

Recently i tried some of the  Text Generation models and using koboldcpp to load these models .Then integrated the API into other programs to create a conversational interface. It is even possible to simultaneously load the TTS and Stable Diffusion APIs.
So I'm wondering if its possible to connect these API to BK or other renpy games?
That can turly improve the immersion of this game which allow you to make real conversation with girls, and get different reactions.

If it could be use in BK, it can help user generate  background stories, make different coversation due to each characters.Further more, TTS(text to sound) can also be considered

Jman

I know nothing about AI integration, but in theory you'd need some sort of Python-KoboldAI API interfacing module like KoboldAPI, put it into your Ren'Py installation, import and set up... and then spend at least weeks coming up with hooks that'd transform BK internal data into AI prompts.

So, connecting seems easy enough, actually making use of said connection in a meaningful way, yeah, that'd essentially be similar to writing a new version of the tag system from scratch.

Perhaps you could hook it up to the dialogue system, and pass either just the text in the dialogue database, or the label and other dialogue parameters into a prompt, and overwrite the result with the AI response.
And with strange aeons even death may die...

Goldo

I think the hardest part is not even the integration: it's the lack of gameplay impact. Suppose you have this whole cool conversation with a girl, she becomes your waifu or something, you have some incredible adventures... The game will know nothing about it. Not a single stat will have moved by a single digit.

Given the open ended nature of AI, that seems inescapable. You can use the game to generate prompts, in theory, but you can't really integrate any meaningful feedback loop within the gameplay.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Jman

You could perhaps get some sort of tags passed back together with the prompt, at the chatbot's discretion.

Trying to translate this stuff back into game-mechanical consequences is going to be a project and a half, though.
And with strange aeons even death may die...