Hi Perchance community, or who ever it attracts, I’m working on a random text generator for my Sylara project, where I want to generate story, image, role play, prompts (e.g., “Sylara discovers a cursed artifact in Thalunith”). I’m using a Groovy script to handle some logic, but I’m running into syntax errors in the prompt property under settings.imageOptions.
I’ve been getting errors like permission issues and TypeErrors in the browser console, and the generator gets stuck on the loading screen. I’ve tried consolidating the logic into a single bracket block, but I’m still struggling with the syntax and ensuring it works within Perchance.
How can I fix the Groovy syntax for the prompt property to work with Perchance? Are there specific ways to handle permissions or DOM operations to avoid TypeErrors? Any tips for debugging Groovy scripts within a Perchance generator? I’d really appreciate any advice, direct help, or examples! Thanks so much!
“I am also trying to create a dev team. so if that is of interest please let me know, though it is mainly for hobby, not a real job, though shows promise for future revenues and profits.” (completely unrelated, similar issues.)
By Groovy, do you mean Apache Groovy? Perchance is based on JavaScript and it has its own DSL so I don’t think there is a compiler for Groovy in the web.