r/perchance • u/BadGrampy • 5h ago
Generators BadGrampy Advanced Chat Writer User's Guide 20261206
Changed the reject loop bailout. Added user control.
BadGrampy Advanced Chat Writer User's Guide 20261206
https://perchance.org/badgrampy-advanced-chat-writer
- GETTING STARTED
Enter a File Name for your project. Add a character profile with a line
such as “Name: Ada Lovelace”. Type an opening in The Current Chapter
or give the AI a direction in What Should Happen Next. Click Ada to
generate a reply prefixed with “Ada: ”, or click Narrator to generate
narration. Edit the draft as needed, then click Keep to move it to
The Current Story. Use Save All to download a project backup.
2. PROJECT FILES AND DISPLAY
File Name — Enter the base name for Save All and Save Story. The same
field supplies the name for instruction and scenario exports when
their Use Story Name in saved filename options are checked.
Save All — Downloads “<File Name> ALL.json”. It includes the file name,
profile layout, profile text and active states, the next profile number,
lore and its active state, Current Story, Current Chapter, Persistent
Writing Instructions, What Should Happen Next, Line by Line Scenario,
Reject Phrases, and the Reject Loop Bailout setting. Display settings
and scan settings are managed in the browser. Status History is
available on the current page.
Load All — Opens a Save All JSON file. Approve the overwrite prompt
to replace the current project, including its profile layout. A save
made with expandable slots restores empty slots and gaps in numbering.
An older four-slot Save All file restores Profiles 1–4, removes any
extra slots in the current project, and makes Profile 5 the next
addition. Save All files without a Reject Loop Bailout setting
restore the default of 5. Updated BG ACW and BG ASW can open each
other's Save All files.
Save Story — Downloads The Current Story as “<File Name>.txt”. If
Current Chapter contains text, choose one of these actions:
• Save Story Now exports the story and leaves the draft in the chapter.
• Keep Then Save moves the draft into the story, clears the chapter,
and exports the combined story.
• Cancel closes the dialog without saving.
Load Story — Opens a plain TXT file or a compatible Story-only JSON
file and replaces The Current Story after confirmation. Loading a TXT
sets File Name to the imported filename without its extension.
Overwrite dialog — Continue approves the replacement. Cancel retains
the current contents. Check “Don’t warn again (this session)” and click
Continue to skip later overwrite prompts that use this dialog.
Night Mode — Toggles the dark color scheme. The button shows ON or OFF.
Wide Mode — On large desktop windows, toggles the wider layout. The
button shows ON or OFF. Widen the browser window if the control is
hidden on a narrow screen.
Clear All Fields — Immediately empties the editable text areas,
including File Name, profiles, lore, story, draft, guidance, scenario,
and rejects. It retains the profile layout, active switches, Status
History, and numeric settings. Use Save All first if you want to recover the current text.
The browser automatically remembers project fields, the profile
layout, and many settings, including Night Mode, Wide Mode, paragraph
count, and Reject Loop Bailout. Save All gives you a separate file
you can open in another browser or later.
3. CHARACTER PROFILES AND LORE
Create a profile
Profiles 1–4 are always available. Use one editor per character.
Include details the AI can use, such as the character's role, goals,
relationships, and speaking style. Put the name on its own line.
Name: Ada Lovelace
Role: Mathematician working on an early computing machine
Voice: Precise, curious, and dryly funny
Goal: Convince a skeptical colleague to test her idea
Add and remove slots
Click Add Profile Slot to create a blank, inactive editor. The first
added slot in a fresh project is Profile 5. Click Remove Profile N to
remove an added slot. If the slot contains text or is active, ACW asks
for confirmation. Cancel keeps the slot and its contents.
Removing a slot also removes its speaker button and excludes the
profile from future prompts and saves. Dialogue already in Current
Story or Current Chapter stays where it is. Surviving slots keep their
numbers. If you add Profiles 5 and 6 and then remove 5, Profile 6 stays
in place and the next addition is Profile 7. Add, Remove, and Load All
are disabled during generation and throughout an LbLS Auto Run.
Choose which profiles the AI uses
Use a profile's Active/Inactive toggle to include or exclude its text
from the generation prompt. Turn on several profiles manually when
the AI needs context about more than one character. Keep an eye on
Prompt Size when you activate long profiles.
The speaker row uses the first word after “Name:” as the button label.
For example, “Name: Ada Lovelace” gives you Ada. Capitalization of
“Name:” is flexible. A slot with no usable name shows a disabled
Profile N button. Editing or loading a profile updates the label.
Click Ada to activate her profile, deactivate all other profiles,
append “Ada: ” to Current Chapter, and generate a reply focused on
her. Click Narrator to deactivate all character profiles, append
“Narrator: ”, and generate narration. If you remove the selected
profile, ACW clears that speaker selection.
Save or reuse an individual profile
Save Profile N downloads that editor's text as a plain TXT file,
with a name such as “BG ASW Profile YYYYMMDDHHmm.txt”. Load Profile N
replaces the text in the slot you choose and updates its speaker
label. Its active switch stays as set. Use Save All when you want
to back up every slot, its active state, and the rest of the project.
World Building / Lore
Use the lore editor for settings, history, rules, and shared
background. Turn lore Active to include it in the generation prompt.
Save Lore downloads “BG ASW Lore YYYYMMDDHHmm.txt”. Load Lore opens
a TXT file and immediately replaces the lore text.
4. STORY, CHAPTER, AND GENERATION
The Current Story — The editable long-term story. Paste prior story
text here or use Keep to move finished chapter text into it.
Prompt Size — Shows the estimated size of the context. The generation
request has a 35,000-character limit. ACW can omit older paragraphs
from the copy of Current Story sent to the AI. Your story text stays
in the field. If the rest of the request still exceeds the limit,
generation is blocked until enough context is reduced or deactivated.
Status History — A read-only, scrollable log that keeps up to 80
timestamped entries. Check it for generation status, rejected phrases,
repeat detections, scan results, and Auto Run messages. A short sound
can play when generation finishes, subject to browser audio support.
The Current Chapter — The editable working draft where generation
appears. Type, paste, or revise it directly. The generation commands
below act on this text area.
Paragraphs selector — Choose 1–100 paragraphs. The default is 4.
The numbered button updates to reflect your selection.
[number] Paragraphs — Generates the selected number of paragraphs
in sequence and appends them to the chapter.
One Paragraph — Appends one paragraph. The AI is asked for 3–9
sentences, with six most common. This is a writing instruction, so
the actual sentence count can vary.
Continue — Extends the current ending inline. Pressing Tab by itself
while editing Current Chapter is a shortcut for Continue.
Regen Last — Restores the chapter to the generation checkpoint and
generates replacement text. For a speaker reply, the speaker prefix
and speaker instructions carry through regeneration while that
speaker remains selected.
Delete Last — Removes the last paragraph from Current Chapter. This
acts on the draft paragraph even if you wrote it yourself.
Stop — Stops the active generation or paragraph sequence. Partial
output remains in the draft. Stopping skips the automatic rejection
and repeat checks for that partial output.
Auto-Scroll — ON follows new output while the AI writes. OFF lets you
scroll through earlier text without being pulled to the bottom.
Add to Rejects (+ Rejects on small screens) — Select text in Current
Chapter, then click the button. It joins internal whitespace into
single spaces and adds the selection as a new Reject Phrases line.
An empty selection produces a message in Status History.
Reject Loop Bailout — Use the dropdown immediately to the right of
Add to Rejects to choose 1–10 automatic retries, with a default of 5.
The limit applies to both reject phrases and automatic repeat
detection. The initial generation is separate from these retries.
Change the setting between generations.
Keep — Appends the draft to Current Story, clears Current Chapter,
and resets the generation checkpoint. An empty draft has no effect.
5. WRITING INSTRUCTIONS AND AUTOMATIC REPEATS
Persistent Writing Instructions — Enter standing directions for
style, point of view, dialogue, or formatting. These instructions
are included in each generation request.
Save Instructions — Downloads the field as
“Persistent_Writing_InstructionsYYYYMMDDHHmm.txt”.
Load Instructions — Opens a TXT file and replaces the field after
confirmation.
Use Story Name in saved filename — Check the box under the instruction
controls to save as “<File Name>_Writing_InstructionsYYYYMMDDHHmm.txt”.
The File Name field must contain a name when this option is checked.
Detected Repeat Phrase Length — Set the minimum and maximum sizes of
phrases checked automatically after generation. Both accept 3–9
words, and the defaults are Min 4 and Max 5. A phrase of N words is
checked against up to N preceding paragraphs, using Current Chapter
and, when needed, the end of Current Story. A detected repeat can
trigger automatic regeneration. These controls are independent of
Scan Repeats Settings.
6. WHAT SHOULD HAPPEN NEXT AND LINE BY LINE SCENARIO
What Should Happen Next — Enter the immediate direction for the next
generation. Replace or clear it when the story moves on.
Delete — Clears What Should Happen Next.
Line by Line Scenario (LbLS) — Put one direction per line. Use
Next Line to advance manually or Auto Run with LbLS to run the list.
Next Line — Removes the first nonempty scenario line and replaces
What Should Happen Next with that line. Then choose a generation
button when you are ready to write.
Save LbLS — Downloads “Line_by_Line_ScenarioYYYYMMDDHHmm.txt”.
Load LbLS — Opens a TXT file and replaces the scenario after
confirmation.
Use Story Name in saved filename — Check the box under the LbLS
controls to save as “<File Name>_Line_by_Line_ScenarioYYYYMMDDHHmm.txt”.
The File Name field must contain a name when this option is checked.
Auto Run with LbLS — Opens a setup dialog. During the run, ACW puts
each nonempty direction into What Should Happen Next and generates
one paragraph for a line of up to 100 words or two for a longer line.
It removes that scenario line after the generation for it completes.
• Save the scenario before starting is checked by default. It
downloads a backup using the Save LbLS naming settings.
• Stop and preserve the remaining scenario is the default overflow
action. If the prompt is still too large after story trimming,
Auto Run stops and leaves the current and remaining lines.
• Automatically Keep the Current Chapter and continue moves the
draft to Current Story and tries again when the prompt is too
large. If it still cannot fit, Auto Run stops.
• Start Auto Run begins the run with the selected options.
• Cancel closes setup without starting.
Use Stop to interrupt a run. The interrupted direction and later
directions remain in the scenario, and partial output stays in the
chapter. Review the draft before restarting that direction.
7. REJECT PHRASES AND MANUAL SCAN
Reject Phrases — Enter one phrase per line, without quotation marks.
This list is sent to the AI as wording to avoid. After generation,
ACW checks only the newly generated text against the list, ignoring
capitalization. A listed phrase or an automatic repeat can cause ACW
to restore the draft to the generation checkpoint and retry. On
exhausting the retries set by Reject Loop Bailout, ACW leaves the final
generated text in place for review.
Save Reject Phrases — Downloads
“BadGrampy_RejectPhrases_YYYYMMDDHHmm.json”.
Load Reject Phrases — Opens a Reject Phrases JSON file or a plain
TXT list and replaces the current list after confirmation.
Scan Repeats Settings — Set the occurrence and word-count ranges for
the manual scan.
• Occurrences Min accepts 2–99 and defaults to 3.
• Occurrences Max accepts 0–99 and defaults to 0, with 0 meaning
no maximum.
• Phrase Length Min and Max accept 1–9 words and default to 2 and 4.
Scan Repeats — Searches Current Story and Current Chapter for repeated
wording using the scan settings. It can filter phrases that cross
punctuation boundaries or consist mostly of common structural words.
The review starts with longer phrases, then more frequent phrases
among those of the same length.
• Append adds the displayed phrase to Reject Phrases and advances.
• Skip advances without adding it.
• Close ends the review. Phrases already appended stay in the list.
8. LINKS TO OTHER TOOLS
The links at the bottom open in a new tab. They include BadGrampy
Female Description Generator, Male Description Generator, Profile
Generator, Lore Builder, Line by Line Scenario Builder, Extraction
Generator, TTS, Advanced Chat Writer, Advanced Story Writer, and
BG PWIG Writing Instructions.