Right now there's no way I know of to get imported characters to auto-reply. The only way for now is to use their shortcuts. You have to manually trigger them when it's appropriate for them to speak. However, they should behave as you expect, otherwise.
If you're still having a problem importing files, is there a chance you could DM a non-working file to the Dev? I think they believe this issue is resolved.
The problem seems to be in a thread somewhere. I can export characters (no chats) and import that fine. I can import both pre-mem and post-update threads individually.
But when trying to export all characters + chats, something is breaking in the import. Could be one specific thread of mine ruining the batch?
AI Character Chat Import Error
A lot of people, including myself are unable to import threads or batch exports.
It's already been noticed by people in chat, thanks so much!
Also, unless I'm going crazy and it's always been this way, thanks for setting it up so characters can read each other's char sheets, if that's something you did. If it's always been that way then I'm just not as observant as I think, XD.
Thanks for the update. I'll do as you suggest and wait for your next message, but I'm happy to run a long thread and check things periodically. Will make sure it's something I don't mind passing along if need be. Would it be alright if I shared the link with a couple extra people in the perchance discord? Get a few more eyes and hands bug-testing?
Sure, I would be happy to help test when it's ready. Thanks for working on it!
I kind of rely on it not disappearing automatically. I don't think that user knows that you can also clear the box by clicking on any character shortcut. Or, you know, ctrl-A then backspace, lol.
(The reason I like it staying is in case the AI response isn't quite what I wanted, I can delete the message, edit my instructions without retyping the whole thing, and try another generation.)
(Edit: Just saw that you suggested an option. That's good too, lol)
Also, possibly any way to add custom shortcuts through the Custom Code? So that we could ‘bake in’ the shortcuts to the characters instead of on the threads. Just a thought.
Yes, any way of calling imported characters without it being a physical user command would be a godsend. Would allow for more intricate automation, maybe even having characters trigger automatically if their names come up.
Memories in AI Character Chat
Really hesitated to make this, but it's been so long, with the last mention being "hopefully they'll be done in the next few days".
I've been pestering via the feedback button, along with other users. There's people in chat asking almost every day if memories are coming back.
They're a pretty important part of keeping things coherent. I know your focus isn't on the AI chat at all...but man...we would really, REALLY appreciate these being back.
pester /mem pester pester
*I'm assuming it must be extremely tedious or something for the dev to put it off this long, lol. He's been saying "a few days" for a few weeks. :p *
(No shade, Dev is awesome. Bug response is top-notch)
A.I. character chat not loading previous messages
Saw a bunch of people in chat suddenly complaining about missing messages from their threads. It seems it won't load messages past a certain point when scrolling up.
The text still exists and seems able to be accessed, just not by the user unless they export the thread as a text file. At least one user was on a laptop.
Yeah...almost like that's the problem. XD
Got it, thanks! :D
So, first, it works brilliantly, thanks! One quirk, the keywords don't seem to like spaces, which is weird. In the code I posted I was able to use "living room" as a keyword, but in your code it wouldn't trigger until I shortened it to "living". Any idea why that might be? Still very usable, I just thought it was a bit odd. (I did remove the if (message.author line and the expectsReply line.)
Edit: And I like your VN! :)
Oooh, thank you! And thank you for commenting everything, super helpful!
Custom Code for A.I. characters question (changing backgrounds automatically?)
I hope this is okay here, since it's primarily a coding question. I've been going around in circles with the coding assistant, trying to get something that will listen for keywords in chat and change the background (and avatar, but I gave up on that for now) automatically. None of the code she's given me has ever worked.
I did get this from her, which works: ``` `var backgroundUrls = { 'keyword1': 'https://example.com/background1.png', 'keyword2': 'https://example.com/background2.png', // Add more background keywords and URLs as needed };
function changeBackground(keyword) {
let link = backgroundUrls[keyword];
if (link) {
let prevMessage = oc.thread.messages.at(-2);
prevMessage.scene = { 'background': {'url': link} };
oc.thread.messages.pop(); // Remove the command message from the chat
} else {
oc.thread.messages.push({
author: 'system',
content: <div class="error-message">Error: Invalid background keyword provided. Please use one of the following: ${Object.keys(backgroundUrls).join(', ')}.</div>
});
}
}
oc.thread.on("MessageAdded", function({message}) { if (message.author == 'user' && /^\/change-bg/.test(message.content)) { let keyword = message.content.replace('/change-bg ', ''); changeBackground(keyword); } });` ```
This at least allows you preset keywords and urls so you can just type "/change-bg keyword" instead of "/change-bg url", so....it's something, I guess.
But I'd really like it to happen automatically, like if a keyword shows up in the course of chat, the background changes. But nothing I tried ever seemed to be able to change the avatar (but I guess it would only work on the active character? Does custom code execute on imported characters?)
(Edit: Thought I'd be cute and give the coding assistant the ability to look at urls, and pointed her at the custom code pages, but it doesn't retrieve enough of the page to be useful, I don't think.)
You can still find stocks that pay dividends. 3-month treasury dealios pay out regularly, and something like MORT (A REIT ETF) has like 11% dividend rate. Companies like Microsoft and Amazon also pay dividends, but small, like 3-5%.
Eyyy, thanks for sharing this. (I'm the one that asked, lol.) Super helpful when it's needed.
If you've ever dealt with addiction or know someone who has, it's not obvious. People will go to great lengths to convince themselves they don't have a problem.
Which A.I. chat are you using, the old or new format? I just checked the old format (I had an old chat saved in it from before I switched) and tried exporting it. It named the file for me, and didn't have those export options. Your files show "perchance-character-exports", which is what happens when you export characters from the new interface.
Make sure you're importing them into the new interface as well, using the "Import" button. Also, you can click the save icons in each thread to export just that thread and the characters in it.
Yeah...that is a little personal, lol.
Yeah, I have it bookmarked. Just thought it was an ominous sign, lol. (But it was...scaling issues. x_x )
Omfg I love you! (I had thought about the custom code as a variable but thought surely changing avatar size was benign.)
I did notice in the last few minutes before I checked here that it seemed to be working a little better. Thanks so much!
A.I. Chat removed from site?
I just happened to notice that the A.I. chat is no longer on the top bar of the perchance.org website.
I know it's been having issues the last few days (ever since the summary update, really), but this is concerning, combined with the fact there's been no acknowledgement of the bugs from the dev that I've seen.
I'm just worried that it's being discontinued or removed. I'd be absolutely crushed if it went away. Just wondering what's going on?
A couple recent A.I. chat bugs: summary editor, mysterious data hiccup overnight, pester, and more
Last night (7/24), there seems to have been a major glitch. I'm guessing on the LLM side. People, including myself, were having trouble generating posts, and sometimes receiving posts that seemed to be parts of different stories altogether.
This morning it seemed to be back to normal. But there've still been a few hiccups, like the "stop response" button had disappeared a few times, leaving me to helplessly watch as the A.I. rambles.
I tried to open the summary but instead got a blank window with the warning not to delete them, a submit and cancel button, and nothing else. Hitting the submit button just closed the window. Tested it on a second thread and it didn't work either. (Edit: Should note that both threads were long, and should have had summaries. It was working early yesterday as far as I'm aware.)
Pester pester /mem pester
Thanks!___
(Windows 11, Chrome on desktop)
Error trying to import AI chat .json files. (Solved)
Edit #2: This is now a bug-report. I changed the "reply as" option back to the default user, exported the thread, and it imported correctly.
Because I'm paranoid, I export my data frequently, but when testing to see how easy it was to re-import data, I keep running into this error.
I've tried exporting the thread multiple times, but it will not import properly. The imported thread appears and is interactable, but if you click on it, it starts an infinite loading screen that locks up the tab.
Considering the amount of time I've spent on some of these stories, it makes me uneasy that the official method of saving them just...doesn't work.
Windows 11, Chrome on desktop.
Anything I can do to save the thread aside from the soulless text export? (which I'm grateful for, don't get me wrong!)
Edit I tried a couple other threads that work, so it's only the current one I'm on that's messed up somehow. The only differences I can think of between it and the other threads are that I had added some styling in the character sheet, like a background and opacity to the text boxes. I also set user responses to respond as an imported character, instead of the default "user".