You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case player has special characters in their name (in my case, one of Discord users who shared an error had :D in their name, could it be done in circumvention of name choosing system or was it possible in earlier releases?), this line will raise EINVAL on Windows machines when MAS will attempt to create a 'For <name>.txt' file.
persistent._mas_bday_hint_filename ="For "+ player +".txt"
Traceback follows:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script-ch30.rpy", line 1541, in script call
File "game/event-handler.rpy", line 3119, in script call
File "game/script-holidays.rpy", line 7266, in script
File "game/script-holidays.rpy", line 7300, in <module>
File "game/script-affection.rpy", line 2707, in _write_txt
IOError: [Errno 22] invalid mode ('w') or filename: u'D:/! DDLC-1.1.1-pc/characters/For XXX :D.txt'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script-ch30.rpy", line 1541, in script call
File "game/event-handler.rpy", line 3119, in script call
File "game/script-holidays.rpy", line 7266, in script
File "D:\! DDLC-1.1.1-pc\renpy\ast.py", line 814, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\! DDLC-1.1.1-pc\renpy\python.py", line 1719, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script-holidays.rpy", line 7300, in <module>
File "game/script-affection.rpy", line 2707, in _write_txt
IOError: [Errno 22] invalid mode ('w') or filename: u'D:/! DDLC-1.1.1-pc/characters/For XXX :D.txt'
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Monika After Story 0.12.9
The text was updated successfully, but these errors were encountered:
We could add a try/except there, but I'm actually not sure because that would mean next time such case occurs, the use wouldn't know why they didn't get the note, and perhaps would just miss the event entirely.
We should probably sanitise the name before using it in file system.
Actually, I just found out, we allow any characters for the name, no idea how we missed it.
In case player has special characters in their name (in my case, one of Discord users who shared an error had
:D
in their name, could it be done in circumvention of name choosing system or was it possible in earlier releases?), this line will raise EINVAL on Windows machines when MAS will attempt to create a 'For <name>.txt' file.MonikaModDev/Monika After Story/game/script-holidays.rpy
Line 7286 in da46bc6
Traceback follows:
The text was updated successfully, but these errors were encountered: