Encrypted-Thoughts / SLCB-ExportHelper

COMPLETED: Script to help export chatbot data to file.
MIT License
3 stars 1 forks source link

QuotesExport only creates empty files #1

Open GamepadRanger opened 2 years ago

GamepadRanger commented 2 years ago

The ExtraQuotesExport and QueueExport both work as intended, but the QuotesExport only creates empty .csv-files. I've tried it with several parameters (max, 99, 25, 1) but everytime the file created is just empty.

Could it be that a base of 200+ quotes is too much?

Encrypted-Thoughts commented 2 years ago

Not sure I kinda just made this one a whim one day to test extracting that data from chatbot and haven't tested it with more than a few quotes. When you go to info and debug in the top right corner do you see any info related to the ExportHelper script after you try and do a QuoteExport? image

GamepadRanger commented 2 years ago

Thank you for this tip! Apparently it has a problem with a certain unicode character Bild_2022-02-09_214513 I will try to find, where it is used and replace it with something else to see, if it works.

Edit: It worked, after replacing the unicode characters and restarting Chatbot. But it will not export more than 100 quotes and then stops.

2nd Edit: I've tried a couple of combinations and only quotes from the first 100 can be exported. Even if I set the parameters to export quote 125 only, it will not work.

Encrypted-Thoughts commented 2 years ago

Looks like the "QuoteView" viewmodel I'm reading the list from is linked to the page chatbot is currently on in the Quotes tab... So if you go change the page it'll export different quotes. Assuming Extra Quotes is the same way.

Kind of a pain to figure out how to fix though since it's a bit of a hack directly loading internal C# code that wasn't intended to be exposed to scripts. Not sure if or when I'd look into figuring it out. I've mostly abandoned tinkering with streamlabs chatbot at this point in favor of streamer.bot instead.

Think I may have fixed the encoding thing though if you want to replace ExportHelper_StreamlabsSystem.py with this file

josephrooks commented 2 years ago

@Encrypted-Thoughts I tried your updated file and it did work for me via the export button in the settings menu, with 77 quotes.

It does export quotes without the " around them, but it does export everything as far as I can tell.

maddpiratekidd commented 2 years ago

Error with Unicode U-201C

image