Styles not loading
For some reason my styles are no longer loading?
The following error shows up in terminal:
My CSV file: styles.csv
This is what shows up now:
Not sure why it's not loading them. Just saved a new style and it just stopped loading and throwing that error.
I took a look at your styles.csv file, and looks like it is formatted incorrectly...
The first line in the file should be like this:
name,prompt,negative_prompt
Then each line below it should start with
name of the style comma prompt comma negative_prompt
If your prompt and/or negative styles contains a comma, enclose them with "" like this:
MyStyleNo1,"My style, number one",
MyStyleNo2,"My style, number two",My negative style
MyStyleNo3,"My style, number three","My negative style, number three"
See here how the original style file is formatted that is included with Forge.
I took a look at your styles.csv file, and looks like it is formatted incorrectly... The first line in the file should be like this:
name,prompt,negative_promptThen each line below it should start withname of the style comma prompt comma negative_promptIf your prompt and/or negative styles contains a comma, enclose them with "" like this:MyStyleNo1,"My style, number one", MyStyleNo2,"My style, number two",My negative style MyStyleNo3,"My style, number three","My negative style, number three"See here how the original style file is formatted that is included with Forge.
Okay I think I see what you mean. So, I tried that and it doesn't fix the issue. I'm not exactly sure what's going on to prevent it from showing up after using the method you mentioned with the comma fix.
Also I've noticed that if I take the working CSV take a row and rearrange them moving them up or down maintaining the formatting, that also cause the entire list to disappear.
Any ideas?
I have to say I can't make heads or tale of that style-file you shared, so I would suggest you start from scratch. Create a new spreadsheet in Excel, Google Sheets, LibreOffice Calc or similar software. Like this quick file I created here (You can edit it):
The 3 first columns should only contain (in column A1)
name, (in column B1) prompt (in column C1) negative_prompt since Forge will use those as names.
Add a title for the prompt in column A, your prompt in column B, and if used, any negative prompt in column C.
After you have added all your style prompts, export/download into a comma separated file.
The exported file should look like this:
Notice that all the prompts that contains a comma have been enclosed in
" "; that is important since Forge will only accept 3 values here, otherwise it will throw an error.
Sorry for the very delayed reply, life and stuff happened so I wasn't able to get to this issue right away...
Anyway, so editing it like you said in a spreadsheet program like you showed me makes it look fine while in the spreadsheet viewer/editor. However when I check it with Visual Studio Code (VSC) it looks like some encoding is being put in along with the prompts and I am not sure why.
None of this stuff shows up while working with a spreadsheet program, and even if the prompts do show up in Forge, when I check the working styles.csv file it still has that same code mixed inside it.
Any reason why it isn't formatted in csv lines like you last picture?
Side Note:
- I am going to write out the prompts directly from VSC to see if I can just make a .csv file from scratch. I don't expect it to work, but will update you as I test. This also might be something to bring up to the devs that weird code is being added to the working version of the style.csv file when creating a saved prompt from a clean installation.
Update:
- I can confirm editing within any (I mean any) spreadsheet program will introduce the garbled code I have pictured above. The only work around that seems to work is to manually create a styles.csv file via VSC then save the file and manually add text.
I was able to get it to load this way, however this is beyond tedious to edit this way just to add or rearrange new prompts to the list within Forge itself. I think a feature to rearrange prompts or remove some from the integrated list would be a sorely needed feature as having a lot of lists to filter through to find the one we need in a sea of many we don't use would be wonderful.
Final Side Note:
It seems the issue is that the styles.csv file that is created within forge adds odd character encoding that causes the file to not be edited correctly via spreadsheet programs or VSC since there is a ton of random code being injected into the text.
I also think this contributes to the other issue I am experiencing where comments (##) that are stored in my saved prompts are not put into the prompt boxes when trying to apply it. If the code for this issue is fixed, I think that might fix this issue as well, I know it's probably a small issue with not a lot of people using it, but when you have really big prompts, comments are kind of necessary when going through your prompts for edits.
Minor Update: It appears that the commenting that's stored in the prompts are not being reflected in the prompt boxes even when manually creating the csv file. I have a feeling this could be an issue within forge itself and should be added as another issue to resolve.
I hope this was enough information for further testing. Let me know if you need any more info or access to the files I have where the code is garbled.
Thanks!~
- Lyn