Ren'Py Locating files on a project.

kineasrm

Member
Jan 18, 2021
104
22
Hello, i'm new to renpy and moding so i want to start by adding some sound effects and music to some game i have download, just for my enjoyment and to begin learning the engine, i'm strugling to find where does the script calls the animations so i can add the audio files to it. Is this something doable?

Again, i'm pretty much a ignorant on the theme, plz send Help.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,145
14,830
Hello, i'm new to renpy and moding
Well, welcome on board, then.


so i want to start by adding some sound effects and music to some game i have download, just for my enjoyment and to begin learning the engine, i'm strugling to find where does the script calls the animations so i can add the audio files to it. Is this something doable?
Hmmm...

Don't your text editor have a "search" function ?
  1. Starts the game ;
  2. Play until the first animation starts ;
  3. Rollback from one step ;
  4. Search for the dialog line in the different RPY files ;
  5. Congratulation, you found where that animation starts ;
  6. Notice how the animation is started.

If it's through renpy.cutscene, just search for all ocurrence in the RPY files.
If it's through play, do the same but be careful, it can also starts musics or SFX.
If it's through show, it will be a bit more complicated:
  1. Search for the name of the animation ;
  2. Notice how it's declared (generally through Movie( [...] ) ;
  3. Search for all the equivalent declaration, to get the name of all the animations ;
  4. Search for each animation name, one by one.
 
  • Like
Reactions: kineasrm

kineasrm

Member
Jan 18, 2021
104
22
Well, welcome on board, then.




Hmmm...

Don't your text editor have a "search" function ?
  1. Starts the game ;
  2. Play until the first animation starts ;
  3. Rollback from one step ;
  4. Search for the dialog line in the different RPY files ;
  5. Congratulation, you found where that animation starts ;
  6. Notice how the animation is started.

If it's through renpy.cutscene, just search for all ocurrence in the RPY files.
If it's through play, do the same but be careful, it can also starts musics or SFX.
If it's through show, it will be a bit more complicated:
  1. Search for the name of the animation ;
  2. Notice how it's declared (generally through Movie( [...] ) ;
  3. Search for all the equivalent declaration, to get the name of all the animations ;
  4. Search for each animation name, one by one.
Looked on all rpy files and nothing.

This is the galery.rpy, i assume it would have to call the files in here for display, can you help me locate where?

Thx very much
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,145
14,830
Looked on all rpy files and nothing.

This is the galery.rpy, [...]
Hmm... The RPY files of the game. Here you are looking at the files from Ren'Py itself. There's strictly nothing related to the game in those files.
 

kineasrm

Member
Jan 18, 2021
104
22
Yeah, nothing.

I assume i cant acess some directories because i dont have the original project right?

1698336409986.png
 

kineasrm

Member
Jan 18, 2021
104
22
Hmm... The RPY files of the game. Here you are looking at the files from Ren'Py itself. There's strictly nothing related to the game in those files.
Got it, had to extrat the script.rpa file so i can get acess to the script and other files like movies and audios. thx