Search found 27 matches

by TsukiWorks
Sat Aug 11, 2018 6:32 am
Forum: Ren'Py Questions and Announcements
Topic: My sound isn't working!
Replies: 25
Views: 1120

Re: My sound isn't working!

You can try like this:

Code: Select all

label start:
    play music "music/Rain/rain-window-04.ogg"
If that doesn't work, you should either replace "music" with "sound", or change the file's extension.
by TsukiWorks
Sat Aug 11, 2018 6:14 am
Forum: Ren'Py Questions and Announcements
Topic: Changing file extensions with python
Replies: 2
Views: 148

Changing file extensions with python

Hello! I tried to change a file's extension (from .txt to .png). I created the file at a certain moment of the story and I wrote it in binary, and I wanted to convert it into pixels.. I don't know if it's possible...but I used this code: python: f = open("hello.txt", "wb") f.write("01010011 01100001...
by TsukiWorks
Tue Aug 07, 2018 3:05 am
Forum: We are a Free Project looking for Partners
Topic: "The Misunderstood"(Romance, Psychological Horror) in need of team
Replies: 5
Views: 1286

"The Misunderstood"(Romance, Psychological Horror) in need of team

Our project is in need of a team! Himura Mamoru is a teenage boy that tries to understand the feeling of 'satisfaction'. He doesn't have a really positive view of life, but he is trying to get to 'Ikigai'. The only thing that keeps him going on is art, in every shape, and cats. Everything changes du...
by TsukiWorks
Mon Aug 06, 2018 9:56 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Main menu music won't play.
Replies: 2
Views: 158

Re: Main menu music won't play.

Is the .wav uncompressed PCM? 16 bit or 32? There is a chance it could cause problems and, realistically, .wav is a very bad choice for format anyway. If you can, I'd suggest converting it to Opus format and trying that. There are online converters or maybe find a downloadable one. Opus is generall...
by TsukiWorks
Mon Aug 06, 2018 5:06 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Main menu music won't play.
Replies: 2
Views: 158

[SOLVED]Main menu music won't play.

Hello! I added some music to the main menu, but for some odd reason it doesn't play. I defined it in options.rpy, I made sure it's properly indented, and I also put this code in my script.rpy file: init python: config.debug_sound = True I also made sure that my volume in-game is turned up. Could it ...
by TsukiWorks
Fri Jul 27, 2018 1:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Creating a file at a certain moment of the story
Replies: 3
Views: 176

Re: Creating a file at a certain moment of the story

Hello! I tried creating a file with python at a specific moment of my story, but I can't get it to work. I used the code in the image below. I'm a beginner when it comes to coding, so I might've messed something up. Thanks in advance! You need to go through three steps: Open the file for writing, w...
by TsukiWorks
Fri Jul 27, 2018 12:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Creating a file at a certain moment of the story
Replies: 3
Views: 176

[SOLVED]Creating a file at a certain moment of the story

Hello! I tried creating a file with python at a specific moment of my story, but I can't get it to work.
I used the code in the image below.
I'm a beginner when it comes to coding, so I might've messed something up.
Thanks in advance!
by TsukiWorks
Thu Jul 12, 2018 1:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Error while running code
Replies: 9
Views: 393

Re: Error while running code

But it looks like you have lots and lots of these words...all of which lead to one of two responses. So I think there is a much better way of doing what you are aiming for. So default is the value you give before the game starts. Then you adjust the values as appropriate in the game. You could do s...
by TsukiWorks
Thu Jul 12, 2018 11:35 am
Forum: Ren'Py Questions and Announcements
Topic: Error while running code
Replies: 9
Views: 393

Re: Error while running code

Could you post more of your code? Because I imagine there is a much better way to do whatever you are attempting to do than what it seems like your code snippet is doing. When you post your code, place it between [ code][ /code] tags (without the extra spaces). Sure. I put the words "light" and "tr...
by TsukiWorks
Thu Jul 12, 2018 2:16 am
Forum: Ren'Py Questions and Announcements
Topic: Error while running code
Replies: 9
Views: 393

Re: Error while running code

Note: if these are values you plan on changing (which is most likely the case), you should use the keyword default rather than define. You should declare these variables outside of a block. Like so: default light = 0 label start(): “Game starts here.” Thanks for answering! Should I change the value...
by TsukiWorks
Tue Jul 10, 2018 10:22 am
Forum: Ren'Py Questions and Announcements
Topic: Error while running code
Replies: 9
Views: 393

Re: Error while running code

The traceback says "light" isn't defined. Do you have a line defining it somewhere near the start of the script? something like: define light = False or whatever it should be. Check you haven't accidentally capitalised it perhaps, Ren'Py is case-sensitive. I only wrote their values in the menu choi...
by TsukiWorks
Tue Jul 10, 2018 9:38 am
Forum: Ren'Py Questions and Announcements
Topic: Error while running code
Replies: 9
Views: 393

Error while running code

Hello. I was testing out some things in Ren'Py, but I am still new to programming and stuff. I wanted to add some menu choices which had either a "true" or "false" value. The player is supposed to make the poem rhyme. Depending on the choices the player makes, my character is supposed to say differe...