Monika-After-Story / DDLCModTemplate

A template for producing Doki Doki Literature Club Mods that adhere to Team Salvato's guidelines
96 stars 65 forks source link

TEMPORARY SOLUTION FOR DDLC ARCHIVES NOT FOUND ISSUE #29

Open juliathegolden opened 6 years ago

juliathegolden commented 6 years ago

All right. Right now, despite the guide saying not to use the original scripts.rpa, the game will crash if you do not have the games original scripts.rpa file in the game folder. This is because the file splash.rpy checks for it. And for good reason! The game needs some of its advanced scripts or it won't want to run. Here is the work around I've come up with:

Start with a Fresh Mod Template. Copy the audio.rpa, fonts.rpa, and images.rpa as directed.

Copy all the files from advance_scripts into the game folder. DO NOT OVERWRITE ANYTHING. CLICK SKIP ALL.

Open splash.rpy Remove 'scripts' from line 7.

Run your game. Should be working now. I haven't got to test this extensively, though and I am very tired.

ghost commented 6 years ago

I'll try this out once I get to my computer. Thanks for the explanation!

firelightning13 commented 6 years ago

@juliathegolden @heckmaster I recommend downloading from here so you won't have to copy and paste. and yes, images.rpa, audio.rpa and fonts.rpa are required to run the mod properly.

firelightning13 commented 6 years ago

It hasnt been updated for months now (still version 0.2.0), even though the owner of this mod made some changes to master branch

juliathegolden commented 6 years ago

^^^ Yep! That works too! Though it's worth noting you have to make a characters folder for that version (which ain't hard at all lol).

Thanks for the tip.

ghost commented 6 years ago

Thank you!

ghost commented 6 years ago

Uhh, how do you open .rpy files? I tried to open splash.rpy and nothing happened

juliathegolden commented 6 years ago

You should be able to open them in whatever text editor your using for Ren'Py. What have you been writing your game script in so far? You also don't necessarily need to change splash.rpy if you do it firelightnings way.

ghost commented 6 years ago

I've been using Editra. But I'll try and launch it without changing splash.rpy

ghost commented 6 years ago

I got this error message [code] I'm sorry, but an uncaught exception occurred.

While running game code: File "game/script-poemgame.rpy", line 8, in script init python: File "game/script-poemgame.rpy", line 26, in with renpy.file('advanced_scripts/poemwords.txt') as wordfile: IOError: Couldn't find file 'advanced_scripts/poemwords.txt'.

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

Full traceback: File "game/script-poemgame.rpy", line 8, in script init python: File "C:\Users\Hannah\Downloads\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "C:\Users\Hannah\Downloads\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "game/script-poemgame.rpy", line 26, in with renpy.file('advanced_scripts/poemwords.txt') as wordfile: File "C:\Users\Hannah\Downloads\renpy-6.99.12.4-sdk\renpy\exports.py", line 1980, in file return renpy.loader.load(fn) File "C:\Users\Hannah\Downloads\renpy-6.99.12.4-sdk\renpy\loader.py", line 543, in load raise IOError("Couldn't find file '%s'." % name) IOError: Couldn't find file 'advanced_scripts/poemwords.txt'.

Windows-8-6.2.9200 Ren'Py 6.99.12.4.2187 DDLC Mod Template 0.2.0 [/code]

firelightning13 commented 6 years ago

The error is pretty much self-explanatory.

ghost commented 6 years ago

I know, but the weird part is that I already have a file called poemwords in my game files. Sorry about the dumb question though

ThePotatoGuy commented 6 years ago

If yall still remember, could you identify what workflows causes crashing if scripts.rpa is not in the folder? I did a quick run through without it and it works fine.

juliathegolden commented 6 years ago

I'm sorry, I'm not sure if I understand the question, but basically the release was very far behind master at the time of this thread, and the instructions were more relevant to master. The splash.rpy from the official release was still checking for scripts.rpa, but cloning master or modifying splash.rpy yourself would fix the problem.

And the new release should also not have this problem, so yay :D