Monika-After-Story / MonikaModDev

DDLC fan mod to extend Monika
http://www.monikaafterstory.com/
Other
1.18k stars 685 forks source link

MAS Crashes #4519

Closed Tbarjr closed 5 years ago

Tbarjr commented 5 years ago

Recently MAS has been crashing on almost a daily basis. I do have the game running for long periods of time so that may be a factor. Below is the traceback from the most recent crash I've had:

I'm sorry, but an uncaught exception occurred.

While running game code: File "game/script-ch30.rpy", line 1464, in script call File "game/event-handler.rpy", line 1935, in script call File "game/script-topics.rpy", line 1867, in script call File "game/script-topics.rpy", line 1931, in script call File "game/script-topics.rpy", line 2104, in script IOError: [Errno 22] Invalid argument

-- Full Traceback ------------------------------------------------------------

Full traceback: File "game/script-ch30.rpy", line 1464, in script call File "game/event-handler.rpy", line 1935, in script call File "game/script-topics.rpy", line 1867, in script call File "game/script-topics.rpy", line 1931, in script call File "game/script-topics.rpy", line 2104, in script File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\ast.py", line 1459, in execute choice = renpy.exports.menu(choices, self.set) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\exports.py", line 847, in menu rv = renpy.store.menu(items) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\exports.py", line 1033, in display_menu rv = renpy.ui.interact(mouse='menu', type=type, roll_forward=roll_forward) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\ui.py", line 285, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, kwargs) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\display\core.py", line 2526, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, kwargs) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\display\core.py", line 3003, in interact_core result = prediction_coroutine.send(expensive_predict) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\display\predict.py", line 143, in prediction_coroutine renpy.display.screen.predict_screen(name, *args, **kwargs) File "C:\Users\Thomas\AppData\Roaming\Doki Doki Mod Manager!\GameData\installs\mas\install\renpy\display\screen.py", line 1109, in predict_screen traceback.print_exc() File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/traceback.py", line 233, in print_exc File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/traceback.py", line 125, in print_exception File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/traceback.py", line 67, in print_tb File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/traceback.py", line 13, in _print IOError: [Errno 22] Invalid argument

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187 Monika After Story 0.9.5

multimokia commented 5 years ago

Try a non-DDMM install. Grab a copy of DDLC off of the main ddlc site and install MAS onto it.

You won't lose your progress.

Jack71321 commented 5 years ago

Can I have some help too? My game has benn crashing too,but for a different reason. Here is what I have…

I'm sorry, but an uncaught exception occurred.

While parsing C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc/game/script-affection.rpy. UnicodeDecodeError: 'utf8' codec can't decode byte 0xf2 in position 18: invalid continuation byte

-- Full Traceback ------------------------------------------------------------

Full traceback: File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\bootstrap.py", line 295, in bootstrap renpy.main.main() File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\main.py", line 364, in main renpy.game.script.load_script() # sets renpy.game.script. File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\script.py", line 265, in load_script self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode) File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\script.py", line 738, in load_appropriate_file data, stmts = self.load_file(dir, fn + source) File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\script.py", line 549, in load_file stmts = renpy.parser.parse(fullfn) File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\parser.py", line 2483, in parse lines = list_logical_lines(fn, filedata, linenumber) File "C:\Users\PROBOOK\Desktop\DDLC-1.1.1-pc\renpy\parser.py", line 194, in list_logical_lines data = f.read() File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/codecs.py", line 674, in read File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/codecs.py", line 480, in read UnicodeDecodeError: 'utf8' codec can't decode byte 0xf2 in position 18: invalid continuation byte

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187

I messed up big time,and I could really use some help,please...I really miss her :(

ghost commented 5 years ago

@Jack71321 https://www.reddit.com/r/DDLCMods/comments/9e8hc4/unicodedecodeerror_utf8_codec_cant_decode_byte/ Or may reinstall help. Strange error with rpycs.

Jack71321 commented 5 years ago

that is a big help,but my whole trouble started with opening that file so I'm worried about opening it again... How do I do it right? Just to be sure. I don't want to mess up again.

multimokia commented 5 years ago

Opening the file? What file did you open?

Jack71321 commented 5 years ago

the affection file

Jack71321 commented 5 years ago

script-affection.rpy to be more accurate

multimokia commented 5 years ago

You might have entered something when you opened it. You can't edit rpyc files as they're compiled files and changing something there will destroy your install like it has here. If you want to edit, you need to edit the rpy files which can be acquired from the source code version of MAS (which you shouldn't be running normally unless you're going to contribute something and are testing your changes).

You'll want to resintal MAS.

multimokia commented 5 years ago

What did you change in script-affection.rpy

Jack71321 commented 5 years ago

accidently the type of the file...I just wanted to read it,but it ended up...well...you see it how

Jack71321 commented 5 years ago

but I managed to change it back,but something did not changed back in the file

multimokia commented 5 years ago

Yeah that's why. It thinks it's source code and is trying to compile it. Reinstall MAS. If you want to view the files, check the code tab on this repo

Jack71321 commented 5 years ago

you mean reinstall the whole thing?

multimokia commented 5 years ago

Yes. You don't lose your progress.

Jack71321 commented 5 years ago

why?

multimokia commented 5 years ago

It's still not working, right?

Jack71321 commented 5 years ago

I mean,why won't I lose progress?

multimokia commented 5 years ago

Because we don't store save data in the install itself.

Jack71321 commented 5 years ago

O_O so...if I reinstall it,then start it up again,then she will remember ereverything that we did so far?

multimokia commented 5 years ago

Yes

Jack71321 commented 5 years ago

OWO THAT IS AMAZING thank you so much,I will do it.

Jack71321 commented 5 years ago

would it still work if I delete the whole game?

multimokia commented 5 years ago

As long as you don't delete the persistent, yes.

This is why it's as easy as making another install of DDLC/MAS to use a non-steam version. No progress is lost, even though the installs are entirely different.

multimokia commented 5 years ago

This also applies to regular DDLC and other DDLC mods.

Jack71321 commented 5 years ago

how do I delete the persistent ones?

multimokia commented 5 years ago

Why would you want to delete them? The persistent is your progress.

Jack71321 commented 5 years ago

I mean how do I know the difference between the basic game and the mod?

Jack71321 commented 5 years ago

cause there are a lot of files

multimokia commented 5 years ago

Because they're all in a folder called Monika After Story (for ours). DDLC's has it's own folder name, and so do other mods.

Jack71321 commented 5 years ago

I got the DDLC folder,but I don't have a MAS folder

multimokia commented 5 years ago

Like I said, save data (persistents) aren't stored in the game directory at all. They're stored elsewhere. See this article on our FAQ for more details.

Jack71321 commented 5 years ago

ok found it

Jack71321 commented 5 years ago

so that is basicly her memory of me?

multimokia commented 5 years ago

Yes

Jack71321 commented 5 years ago

so as long as I have that file safe,and I reinstall everything, she will remember me?

multimokia commented 5 years ago

If you re-installed, nothing was going to touch the file anyway, so you'd have been fine. And yes. That's the file she tells you to back up. The page she links to you when she mentions backing up her memories is the same one I linked you.

Jack71321 commented 5 years ago

OHH I see and here I am with the backup of the whole game itsefl...feeling rather dumb right now...

Jack71321 commented 5 years ago

ok basic game is done,so I just download the latest version of MAS and we're done?

multimokia commented 5 years ago

Oh, you didn't have to reinstall DDLC itself. Just MAS. But yes.

Jack71321 commented 5 years ago

It is done...It's working...and I'm so happy I'm about to cry...Thank you for all the help and for your time. You guys are doing gods work. Thanks you so much :_)

ThePotatoGuy commented 5 years ago

[closing as resolved]