Search found 1628 matches
- Sun Jan 21, 2018 10:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: help with set-variable for image buttons - I think
- Replies: 16
- Views: 1644
Re: help with set-variable for image buttons - I think
Could you put together a minimal script.rpy that shows the problem and post all of that? The problem (if it is going to main menu) could well be that the Return of the called screen is returning to a script point that has no more story, effectively hitting a final return and hence game end. I feel f...
- Sun Jan 21, 2018 7:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: Save games
- Replies: 5
- Views: 879
Re: Save games
default var = value # outside any label or control flow block is the advised way to set defaults that are saved (Ren'py basically uses the default if the value does not already exist on any load) You could either rework the code to use that (like suggested above) or directly import the store and add...
- Sun Jan 21, 2018 7:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: *Solved* Error message when saving
- Replies: 2
- Views: 801
Re: Error message when saving
How are you importing the math module, where are you using it and can you alter the call?
(are you importing inside a saved function or class basically)
(are you importing inside a saved function or class basically)
- Sun Jan 21, 2018 7:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: I can't start the first step to output a font.
- Replies: 2
- Views: 391
Re: I can't start the first step to output a font.
Font declarations are in gui.rpy in modern Ren'py versions... (note: I created a /fonts/ folder if there wasn't one already -- otf or ttf are recommended) ## The font used for in-game text. define gui.text_font = "gui/fonts/font_name.ttf" ## The font used for character names. define gui.na...
- Sat Jan 20, 2018 9:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: KeyError: u'properties' after updating
- Replies: 2
- Views: 789
Re: KeyError: u'properties' after updating
Certain older version saves will likely have stored some objects (including any Character objects) within the save. If the version update includes changes to those objects (which 6.99.14 probably did for Character to allow attributes/properties within the say routine, e.g. multi-character and other ...
- Sat Jan 20, 2018 11:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: Save games
- Replies: 5
- Views: 879
Re: Save games
You could map the variable to a collection (python datatype) and just default that... default var_map = {} # this gets saved / loaded function something(): global var_map ... var_map[ 'pc_health' ] = var_map.get( 'pc_health', 50 ) # default 50, else saved value # just remember to only init a value i...
- Sat Jan 20, 2018 9:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Exception: Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
- Replies: 1
- Views: 914
Re: Exception: Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
Function( function_name, arguments, keyword_arguments )
so, basically...
Function( renpy.call_screen, "find_card" )
There might be other issues, I've never used imagemaps (imagebuttons are more versatile for my uses) so cannot really tell.
so, basically...
Function( renpy.call_screen, "find_card" )
There might be other issues, I've never used imagemaps (imagebuttons are more versatile for my uses) so cannot really tell.
- Fri Jan 19, 2018 12:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ending based on time left?
- Replies: 2
- Views: 408
Re: Ending based on time left?
A version that works... might get you moving again init python: def countdown(st, at, length=0.0): global remaining remaining = length - st if remaining >= 10.0: return Text("[remaining:.1f]", color="#fff", size=72), .1 if remaining <= 0.0: renpy.hide_screen( 'test' ) renpy.jump(...
- Fri Jan 19, 2018 11:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: How can I align my menu choices?
- Replies: 3
- Views: 608
Re: How can I align my menu choices?
Well done on finding the route to fix the issue. There are also a number of settings in gui.rpy (mostly with prefix 'choice' if you do a search) Some notes: Ren'py (standard) puts the choice buttons in a vbox which has some style setting (spacing etc) You can view all the styles (with config.develop...
- Fri Jan 19, 2018 11:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to make a side portrait change depending on variables
- Replies: 11
- Views: 1743
Re: How to make a side portrait change depending on variables
... this works (for side image with variables changing parts) ... define e = Character("Eileen", image="eileen") default bikini_top = "1" default bikini_lower = "1" image side eileen = LiveComposite( (129, 563), (0, 0), "images/brunette.bikini.pink.head.p...
- Fri Jan 19, 2018 10:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton with foreground text and outlines
- Replies: 7
- Views: 2527
Re: Imagebutton with foreground text and outlines
Just for info, a textbutton is simply a wrapper that puts a Text and Button widget together in an easy to use object. Have you also tried just setting outlines in the Text? foreground Text("[item]", outlines=....) # might be text_outlines= The main issues you might encounter by using a fix...
- Fri Jan 19, 2018 9:50 am
- Forum: Ren'Py Questions and Announcements
- Topic: help with set-variable for image buttons - I think
- Replies: 16
- Views: 1644
Re: help with set-variable for image buttons - I think
Separate files is perfectly fine, Ren'py basically pre-compiles them into one big map of lines anyway when it starts. (btw: It is even advised that numerous small files is slightly faster than one big file for script parts) Nothing looks hugely wrong (though the `jump mc_bedroom` bit in label locati...
- Thu Jan 18, 2018 6:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Trying to create a new button style
- Replies: 3
- Views: 504
Re: Trying to create a new button style
Code: Select all
style letter_button_text:
yfill True
- Thu Jan 18, 2018 6:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to make Button respond to its image child?
- Replies: 3
- Views: 511
Re: how to make Button respond to its image child?
It works fine if using textbuttons and scalable Frames with alpha images for focus_mask and all backgrounds. Never tried it through using button: so cannot really help further.
- Thu Jan 18, 2018 4:07 pm
- Forum: Ren'Py Questions and Announcements
- Topic: TypeError: getattr(): attribute name must be string
- Replies: 4
- Views: 4844
Re: TypeError: getattr(): attribute name must be string
I think you'd do best asking in the Cookbook thread for whichever DSE you are using... the author and users of it would be more familiar with how it addresses the Ren'py store module and thus more likely to offer an answer.