This sucks so much! I’m currently working on finding out why certain computers aren’t loading the game 💔 When I find the error I’ll make a dev log post and update the game! For now, I can only suggest updating graphic drivers or trying a different computer 😔🩷
Viewing post in Your Affliction, Lester Diaz comments
Hi, I think I found the problem and fixed it on my end.
I’m on macOS and the game crashes on launch with
OverflowError: can't convert negative value to unsigned int
The traceback points to:
renpy.display.presplash.start → pygame.display.Window
It seems to be related to Ren’Py’s presplash window creation on macOS, where a negative window size/position is being passed to pygame, so this looks like a build-specific issue.
The way I fixed it is that I disabled the presplash entirely by adding an early return in Ren’Py’s presplash.py
After doing this and deleting the compiled cache file, the game launches fine and I’ve been able to play with no problems so far.
1) open terminal. (Mac)
2) run: nano ~/Desktop/YourAfflictionLesterDiaz.app/Contents/Resources/autorun/renpy/display/presplash.py
(You should see the file text and, at the bottom, the nano menu like: ^G Get Help ^O WriteOut ^W Where is ^X Exit.)
3) press Control W.
( At the bottom it will say something like: Search:)
4) run: def start(
then press enter.
5) under the line def start(basedir, gamedir):
add return
PS: This is the correct code should look like:
def start(basedir, gamedir):
"""
Called to display the presplash when necessary.
"""
return # <-- ADD THIS LINE (four space before the word)
if "RENPY_LESS_UPDATES" in os.environ:
return
foreground_fn = find_file("presplash_foreground", root=gamedir)
6) save the file: Control + O
At the bottom, nano will show: File Name to Write: presplash.py
Press Enter to save the file.
7) Exit nano: Control + X
8) Delete the cached bytecode so Ren’Py uses your edited file:
run: rm -f ~/Desktop/YourAfflictionLesterDiaz.app/Contents/Resources/autorun/renpy/display/__pycache__/presplash.cpython-312.pyc
9) launch the game
cd ~/Desktop/YourAfflictionLesterDiaz.app/Contents/MacOS && ./YourAfflictionLesterDiaz
Let me know if you have questions, happy to help!