it means that there is a ASCII control character in line 1 of the (folder and file specified) that Ren'Py does not like
since it's a control character, it does not show up. go through that line, deleting all empty spaces and makeing sure they are actual spaces and not a control characters
What language is your computer set to? Some languages add control characters automatically, like Arabic, which writes from right to left. Computers were first designed to write from left to right, so there's a byte saying to reverse text direction.
This also might have happened if you copied and pasted the file name from somewhere.
BadMustard already told you how to fix it but since this seems to be a translation, you can also look into that. Maybe that file contains more than one of those control characters.
If you used AI to translate, then tell the AI to remove all control characters, else contact your translator.
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
An ASCII control character is a non-printing character whose numeric value is in the range 0..31 or 0x00..0x1F. They were largely used for controlling serial based displays and printers.
Whatever you edited or created this file with introduced such a character. You'll need to find which character it is and fix it - most likely by replacing it with a space.
The most likely candidate is a TAB character (0x08). Your editor for Ren'Py should be configured to replace TABs with space characters.
What is the first line in your launcher.rpy file? Can you copy-paste it here? There is a problem with it: it contains a character that is causing problems for RenPy. Alternatively (and even better), go to:
and paste your entire launcher.rpy file, and then create a link to it and paste it here. That way, we can see what might be wrong.
If you can't figure that out, I'd say paste your code in GPT or Gemini and tell the LLM you're getting an error. It should be able to fix the code for you.
11
u/BadMustard_AVN 6d ago
it means that there is a ASCII control character in line 1 of the (folder and file specified) that Ren'Py does not like
since it's a control character, it does not show up. go through that line, deleting all empty spaces and makeing sure they are actual spaces and not a control characters
(every space even the indentation portions of it)
2
u/shyLachi 6d ago
BadMustard already told you how to fix it but since this seems to be a translation, you can also look into that. Maybe that file contains more than one of those control characters.
If you used AI to translate, then tell the AI to remove all control characters, else contact your translator.
Also maybe this helps: https://renpy.org/doc/html/translation.html
1
u/AutoModerator 6d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/DingotushRed 6d ago
An ASCII control character is a non-printing character whose numeric value is in the range 0..31 or 0x00..0x1F. They were largely used for controlling serial based displays and printers.
Whatever you edited or created this file with introduced such a character. You'll need to find which character it is and fix it - most likely by replacing it with a space.
The most likely candidate is a TAB character (0x08). Your editor for Ren'Py should be configured to replace TABs with space characters.
1
u/ZucchiniNorth3387 5d ago
What is the first line in your launcher.rpy file? Can you copy-paste it here? There is a problem with it: it contains a character that is causing problems for RenPy. Alternatively (and even better), go to:
https://pastecode.io/
and paste your entire launcher.rpy file, and then create a link to it and paste it here. That way, we can see what might be wrong.
If you can't figure that out, I'd say paste your code in GPT or Gemini and tell the LLM you're getting an error. It should be able to fix the code for you.