[Bug Report] AI Character Chat Import Error
A lot of people, including myself are unable to import threads or batch exports.
A lot of people, including myself are unable to import threads or batch exports.
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.
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.
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.)
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?
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)
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".