idiot question but...
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
idiot question but...
To my knowlage Ren'Py is fine with (( ' ))s
but while using SciTE i noticed that anywhere i have somthing like havn't or I'm the code was getting scerwed up, like its wasn't registering Labels labes or scene coding as scenes.
So i went back and put \ as a character cancle but it still didnt' seem to be fixing the entier problem and it was making new ones.
I\'m was being registered but if i changed a you\'re it did nothing.
I'm at my wits end since i can't test my game so far since the end return wont register as a return comand
help ;_;[/i]
but while using SciTE i noticed that anywhere i have somthing like havn't or I'm the code was getting scerwed up, like its wasn't registering Labels labes or scene coding as scenes.
So i went back and put \ as a character cancle but it still didnt' seem to be fixing the entier problem and it was making new ones.
I\'m was being registered but if i changed a you\'re it did nothing.
I'm at my wits end since i can't test my game so far since the end return wont register as a return comand
help ;_;[/i]
Last edited by clubanimon on Sun Apr 24, 2005 1:53 pm, edited 1 time in total.
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
I'm somewhat confused by what is being asked. Please send me any error messages that you're getting, and perhaps email me a copy of you script so I can check it for parse and/or coding errors.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Okay, let me reply to one of your issues here, and then I'll respond to the rest privately.
In your game, you wanted to have the vast majority of of dialogue in quotes, so you wrote a number of lines of the form:
There's basically two problems here. The first is that you got the escaping wrong here. So the first quote at the end is what ends the screen, and then the second quote serves to confuse Ren'Py to no end.
A correct way to write it would be:
But wait, there's more. As you probably have already found out, typing in all those escaped quotes can get very annoying. So I actually added in a method which can add the quotes in automatically.
When you declare a character, you can define the what_prefix and what_suffix, which give text that is prepended and appended to the line of dialogue that is being said (respectively). So you can write:
And that line of dialogue will show up in quotes when it is run.
The moral of the story: If you're trying to do something in Ren'Py, and it seems too hard, ask. Many times, there's an easier and better way.
I'll respond to the rest of your script privately.
In your game, you wanted to have the vast majority of of dialogue in quotes, so you wrote a number of lines of the form:
Code: Select all
cima "\"I think my name is a very strange one."\"
A correct way to write it would be:
Code: Select all
cima "\"But there is, in fact, a good reason for it.\""
When you declare a character, you can define the what_prefix and what_suffix, which give text that is prepended and appended to the line of dialogue that is being said (respectively). So you can write:
Code: Select all
init:
$ cima = Character("Cima", what_prefix="\"", what_suffix="\"")
cima "You'll probably find it out, eventually."
And that line of dialogue will show up in quotes when it is run.
The moral of the story: If you're trying to do something in Ren'Py, and it seems too hard, ask. Many times, there's an easier and better way.
I'll respond to the rest of your script privately.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
I'm just here to help.;_____; i love you
That seems to be right, but of course Ren'Py is the final arbiter.$ n = Character('Nawat',what_prefix="\"", what_suffix="\"", color=(000, 102, 255, 255))
BTW, you probably want to put Ren'Py code inside [ code ] [ /code ] BBcode tags, so that it is properly indented when displayed here.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- clubanimon
- Regular
- Posts: 121
- Joined: Sun Apr 10, 2005 12:56 pm
- Contact:
hm...i just got this error while debuging. it happens right after the first backround is called but before any test starts. Do i needs to make a frame for the text?
I'm sorry, but an exception occured while executing your Ren'Py
script.
Exception: Couldn't find file 'frame.png'.
The last script statement executed was on line 112 of game/script.rpy.[/code]
I'm sorry, but an exception occured while executing your Ren'Py
script.
Exception: Couldn't find file 'frame.png'.
The last script statement executed was on line 112 of game/script.rpy.[/code]
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Yes. Or else you need to decide that you don't need a frame for the text, in which case you need to delete the line that calls for it.clubanimon wrote:hm...i just got this error while debuging. it happens right after the first backround is called but before any test starts. Do i needs to make a frame for the text?
I'm sorry, but an exception occured while executing your Ren'Py
script.
Exception: Couldn't find file 'frame.png'.
The last script statement executed was on line 112 of game/script.rpy.[/code]
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Eileen-Class Veteran
- Posts: 1153
- Joined: Mon Jul 07, 2003 4:57 pm
- Completed: Elven Relations, Cloud Fairy, When I Rule The World
- Tumblr: alextfish
- Skype: alextfish
- Location: Cambridge, UK
- Contact:
You can see near the top of the demo game , there's a line which says:
This line is expecting an image called "frame.png" in the game directory. If you don't want to specify a background image to your windows, then you could make it all green by saying:
Those four numbers in brackets each range from 0 to 255, and specify the red, green, blue and opacity of the solid colour. One way to make it all transparent would be to instead use:
Because opaqueness 0/255 = totally transparent.
Code: Select all
$ style.window.background = Frame("frame.png", 125, 25)
Code: Select all
$ style.window.background = Solid((0, 255, 0, 255))
Code: Select all
$ style.window.background = Solid((0, 0, 0, 0))
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
As a minor tidbit of knowledge...
If you don't want a background at all on a window, it's best to write:
While having a Solid with 0 opacity will work, Ren'Py will spend a little bit of time drawing that Solid to the screen. (As much as one can ever draw something that is transparent.) By specifying None, it will omit the drawing process, and the whole system will run that much faster.
If you don't want a background at all on a window, it's best to write:
Code: Select all
$ style.window.background = None
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- rioka
- Royal Manga Tutor
- Posts: 1255
- Joined: Fri Jul 16, 2004 12:21 pm
- Completed: Amgine Park, Garden Society: Kykuit, Metropolitan Blues (art)
- Location: somewhere in NY
- Contact:
Was this available when I was making GSK? Cuz if it was - X__X Gaaaahhh!PyTom wrote:When you declare a character, you can define the what_prefix and what_suffix, which give text that is prepended and appended to the line of dialogue that is being said (respectively). So you can write:
Code: Select all
init: $ cima = Character("Cima", what_prefix="\"", what_suffix="\"") cima "You'll probably find it out, eventually."
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Yes, it was. IIRC, I added it right around the time I was making Moonlight Walks, since without it... as you said... Gaaaahhh!eclipse wrote:Was this available when I was making GSK? Cuz if it was - X__X Gaaaahhh!
I believe this was added in in 4.4.1 or 4.4.2, but my current version control doesn't seem to go back that far.
If there is something annoying about making a game with Ren'Py, especially something annoying that needs to be done alot, then bring it to my attention. One of the goals of Ren'Py is to make making games easier. So if there's something that's not doing that, it's a bug, or at least a wart.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot]