re: On Asking Questions
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.
-
- Newbie
- Posts: 1
- Joined: Mon Sep 04, 2017 6:48 am
- Contact:
Re: On Asking Questions
I want to translate Katawa Shoujo from English to Vietnamese for my friends in vietnam. But DejaVuSans not support vietnamese. I don't change font in game. Help me how to change font ? Example font DejaVeSans to Time News Roman (or .....) Thanks
Re: On Asking Questions
What about updating Python 2.7? Especially platform.py to correctly detect windows version.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: On Asking Questions
PyTom did not create Python 2.7, he cannot update it.
Python does have an update, it is calld Python 3.4, Ren'Py cannot be 'simply updated' to 3.4 without significant work.
PyTom has also stated his intentions to stay with 2.7.
As to the detecting windows version, start > run > winver
If it says Windows 10, this is not a fault with Python, but a fault with Windows x. If it says something else and does not match what tracebacks, etc report, then it may be python.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: On Asking Questions
Sorry for my english. I mean update current version of Python (2.7.10?) in RenPy. Last Python version is 2.7.14 and it contain new platform.py
Changelog from platform.py:
I`am replacing platform.py at renpy/lib/pythonlib2.7 and it`s correctly detect windows version. But this method is a bad way.
Changelog from platform.py:
Code: Select all
...
# 1.0.8 - changed Windows support to read version from kernel32.dll
# 1.0.7 - added DEV_NULL
# 1.0.6 - added linux_distribution()
...
Re: On Asking Questions
Hello,
Here is the error Im getting, some others games are also having the very same..
Any idea if there is something to do ?
Here is the error Im getting, some others games are also having the very same..
Code: Select all
Traceback (most recent call last):
File "/home/seden/bin/Jeux/RPG/!Adult/!Renpy/Heart of Fire-1.1/Heart of Fire.py", line 198, in <module>
main()
File "/home/seden/bin/Jeux/RPG/!Adult/!Renpy/Heart of Fire-1.1/Heart of Fire.py", line 195, in main
renpy.bootstrap.bootstrap(renpy_base)
File "/home/seden/bin/Jeux/RPG/!Adult/!Renpy/Heart of Fire-1.1/renpy/bootstrap.py", line 270, in bootstrap
renpy.import_all()
File "/home/seden/bin/Jeux/RPG/!Adult/!Renpy/Heart of Fire-1.1/renpy/__init__.py", line 365, in import_all
renpy.styledata.import_style_functions()
File "/home/seden/bin/Jeux/RPG/!Adult/!Renpy/Heart of Fire-1.1/renpy/styledata/__init__.py", line 26, in import_style_functions
import renpy.styledata.style_functions # @UnresolvedImport
File "style.pxd", line 84, in init style_functions (gen/renpy.styledata.style_functions.c:18784)
AttributeError: 'module' object has no attribute 'StyleCore'
^C
Re: On Asking Questions
Hii Does anyone know How to do make appending messages and the ability to scroll up in nvl mode??
Re: On Asking Questions
This is probably a really simple syntax problem, but for the life of me, I cannot figure out what I'm doing wrong. All I want is for a bar to descend from off the top of the screen, decrease in value, then rise back up. Here's how I define the bar and its animations (in screens.rpy):
Then I try to display the funnybar. But the only things that works is renpy.show_screen("funnybar")!
"show funnybar" generates the default "image not found" silhouette, "screen funnybar" doesn't show anything, so I have to use the renpy.show_screen() python statement. Then I try to apply the transform, and that's where I'm completely stuck: renpy.show_screen() doesn't take a transform, so I don't know how to make it drop down from there.
Can transforms simply not be applied to screens? Am I fundamentally misunderstanding the role of screens? Should I be composing funnybar out of Displayables instead? I hope I can still take advantage of a smooth animation when the bar's value is decreased...
Thank you for any help/guidance!
edit: tried to make a Displayable version instead. Can't get it to display. This is my approach so far:
Not sure why this one is going wrong either. Any advice?
edit2: Okay, got it. Here's my code -- if anyone wants to look over this and tell me if I made anything more complicated than necessary, I'd appreciate the advice. There's definitely room for improvement, but as this is just used for a brief visual gag, I didn't bother making it a really robust "class".
setup:
Then I can use fbar with Positions and Transforms, just like I want, while also changing its appearance by setting the value of "target_width" (for a gradual change) or both "target_width" and "displayed_width" (for an immediate change).
I hope this helps someone?
Code: Select all
screen funnybar:
frame:
xalign 0.9 ypos 0
xanchor 1.0 yanchor 1.0
xsize 500
bar:
value funny range 100
left_bar Solid("#0F0")
right_bar Solid("#F00")
transform descend:
linear 3.0 ypos 50
transform ascend:
linear 3.0 ypos 0
"show funnybar" generates the default "image not found" silhouette, "screen funnybar" doesn't show anything, so I have to use the renpy.show_screen() python statement. Then I try to apply the transform, and that's where I'm completely stuck: renpy.show_screen() doesn't take a transform, so I don't know how to make it drop down from there.
Can transforms simply not be applied to screens? Am I fundamentally misunderstanding the role of screens? Should I be composing funnybar out of Displayables instead? I hope I can still take advantage of a smooth animation when the bar's value is decreased...
Thank you for any help/guidance!
edit: tried to make a Displayable version instead. Can't get it to display. This is my approach so far:
Code: Select all
define green = Solid("#0F0", xfill=True, yfill=True)
define red = Solid("#F00", xsize=400, yfill=True)
define fbar = HBox(green, red, xpos=500, ypos=500, xsize=500, ysize=50)
edit2: Okay, got it. Here's my code -- if anyone wants to look over this and tell me if I made anything more complicated than necessary, I'd appreciate the advice. There's definitely room for improvement, but as this is just used for a brief visual gag, I didn't bother making it a really robust "class".
setup:
Code: Select all
python:
def show_green(st, at):
# improvements: replace the globals with local variables; make timing based on clock, not on refreshes
global target_width, displayed_width
if target_width < displayed_width:
displayed_width -= 2
elif target_width > displayed_width:
displayed_width += 2
return Solid("#0F0", xsize=displayed_width, yfill=True), 0.005
define dynamic_green = DynamicDisplayable(show_green)
define red = Solid("#F00", xfill=True, yfill=True)
define barback = Solid("#FFF", xfill=True, yfill=True, xanchor=0.5, yanchor=0.5)
define inner_bar = HBox(dynamic_green, red, xsize=400, ysize=30, xanchor=0.5, yanchor=0.5)
# note: the thing you want to put on screen needs to be an "image"!
image fbar = Fixed(barback, inner_bar, xsize=404, ysize=34, xanchor=0.5, yanchor=1.0, xpos=0.95, ypos=0)
I hope this helps someone?
-
- Newbie
- Posts: 1
- Joined: Mon Apr 16, 2018 9:29 pm
- Contact:
Re: On Asking Questions
Can someone explain like I'm 5 how to dissolve multiple images, I still don't understand. I do know how to do time dissolves but not multiple. Thanks in advance!
Re: On Asking Questions
I try to run this code:
It shows: NameError: name 'texta1' is not defined
Same error.
What i doing wrong?
Code: Select all
$ texta1 = "testtext"
image testText = Text(texta1, size=80)
Code: Select all
$ texta1 = "testtext"
image testText = Text("[texta1]", size=80)
What i doing wrong?
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: On Asking Questions
Hi denis, better if you open a new thread for new questions, this thread is for "How to ask questions".denis053 wrote: ↑Mon Apr 30, 2018 5:37 pm I try to run this code:It shows: NameError: name 'texta1' is not definedCode: Select all
$ texta1 = "testtext" image testText = Text(texta1, size=80)
Same error.Code: Select all
$ texta1 = "testtext" image testText = Text("[texta1]", size=80)
What i doing wrong?
Anyway, the problem in your code -it seems- is that you cannot define images outside init phase. That is: Renpy starts executing all init lines: "init, define, default, image...", and, after that, shows the main screen. If your code is inside a label (I'm guessing, we can't see), the image line is executed at init time, and the $ line is not, so texta1 is not defined.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
-
- Newbie
- Posts: 2
- Joined: Fri Oct 05, 2018 8:38 am
- Contact:
Re: On Asking Questions
Hello! I am new on using renpy for forgive me for the silly question:
We all know when creating a new project, renpy automatically gives 4 rpy file (script, option, screen and gui)
I created a new .rpy file which is named "notif.rpy" and inside the notif.rpy is this block of code:
{
screen info_screen:
hbox:
textbutton "Hello"
textbutton "world"
}
the result is that it shows the message "Hello World" on the upper left corner on the screen.
My question is: How do I change the text color and text size inside the "screen info_screen:"?
Thanks and have a good day!
We all know when creating a new project, renpy automatically gives 4 rpy file (script, option, screen and gui)
I created a new .rpy file which is named "notif.rpy" and inside the notif.rpy is this block of code:
{
screen info_screen:
hbox:
textbutton "Hello"
textbutton "world"
}
the result is that it shows the message "Hello World" on the upper left corner on the screen.
My question is: How do I change the text color and text size inside the "screen info_screen:"?
Thanks and have a good day!
-
- Newbie
- Posts: 2
- Joined: Fri Oct 05, 2018 8:38 am
- Contact:
Re: On Asking Questions
Hello! I am new to renpy, I apologize for my silly questions but suppose on my script.rpy I created an array:
{
date = ["January","February"]
}
Now, How do I call them?
e "The date today is "January" seems hot today" # How do I make the January appear?
Thanks and have a good day!
{
date = ["January","February"]
}
Now, How do I call them?
e "The date today is "January" seems hot today" # How do I make the January appear?
Thanks and have a good day!
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: On Asking Questions
Dear NormalGuy, this thread isn’t for asking questions, it is a post about how to ask questions. You should create a new thread with your questions like the other threads in this section.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
- Brosephine
- Newbie
- Posts: 1
- Joined: Mon Jul 01, 2019 4:41 pm
- itch: brosephine
- Contact:
Re: On Asking Questions
I don't know where the new topic button is...
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
Re: On Asking Questions
Its just at the top right, above the announcement topis/forum. You can see a pencil along with the text.
Who is online
Users browsing this forum: Yone28