Search found 791 matches

by Remix
Sat Jun 23, 2018 7:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Math on a screen [Solved]
Replies: 3
Views: 19

Re: Math on a screen

Code: Select all

screen a:
    $ x,y = 7.0, 12.0
    text "Ratio: {:.03f}".format( x / (x + y) )
Alternatively, pyformat can be used ( the :.03f means zero pad to 3 decimals )
Remember to cast x and y to floats rather than integers to avoid python pre 3 rounding the result
by Remix
Sat Jun 23, 2018 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: I need help with the script
Replies: 3
Views: 55

Re: I need help with the script

From __future__ import guesswork ... (pythonic humour, oops) It does look like RenpyTom is working on adding this sort of facility into the engine within the nightly builds. So, hopefully there will soon be a backbone system that handles this type of requirement. https://github.com/renpy/renpy/commi...
by Remix
Sat Jun 23, 2018 6:35 am
Forum: Ren'Py Questions and Announcements
Topic: Making a polished epigraph? (Using Text() displayable)
Replies: 3
Views: 61

Re: Making a polished epigraph? (Using Text() displayable)

Ren'Py takes "{space=0}" as a character, so we can spoof a delay in the cps writing by spamming a few of those: screen show_text(text=""): # Every \n replaced by 48 0px wide spaces and a \n # $ text = text.replace("\n", "{space=0}"*48+"\n") fixed: text "[text]": slow_cps 24 label start: "Start" show...
by Remix
Thu Jun 21, 2018 7:12 pm
Forum: Ren'Py Questions and Announcements
Topic: String Index is Out of Range?
Replies: 2
Views: 57

Re: String Index is Out of Range?

Have you amended screens.rpy to add new functionality?

The error simply says what[0] is out of range implying what is "" so as a workaround

if what and what[0] == "#":
by Remix
Sat Jun 16, 2018 6:49 am
Forum: Ren'Py Questions and Announcements
Topic: OverflowError: value too large to convert to short
Replies: 15
Views: 313

Re: OverflowError: value too large to convert to short

If you do not easily track down the issue with that method and if you are willing to, you could put the text part on google drive (or zip the current game would be nicer as the chosen font and settings will play their part) and one of us could take a look. Scanning the script for the error line coul...
by Remix
Fri Jun 15, 2018 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: Adding/defining Numerical Variables
Replies: 5
Views: 122

Re: Adding/defining Numerical Variables

Just as an aside:

pumpkin spike probably meant <= (less than or equal to) and >= (greater than or equal to)

>> and << in python are used for bit shifting and will likely really confuse a non programmer:
27 << 2 = 108 ... ( 27 is 11011 in binary, left shift 2 is 1101100 which is 108 in decimal )
by Remix
Fri Jun 15, 2018 4:45 am
Forum: Ren'Py Questions and Announcements
Topic: "Glowing" text in Ren'Py? [solved]
Replies: 14
Views: 3100

Re: "Glowing" text in Ren'Py? [solved]

You could likely do it by declaring the outlines as a named style and then using inline style tags around the text:

Code: Select all

# untested
style outlined_text:
    outlines [ ... ]

label ...:
    "{=outlined_text}Some words{/=}"
by Remix
Thu Jun 14, 2018 7:17 pm
Forum: General Discussion
Topic: Renpy games on iPhone
Replies: 6
Views: 333

Re: Renpy games on iPhone

The Apple post-runner for OpenGL is afaik called Metal and Ren'Py will integrate with it smoothly (if all things go well), so there should be no worries about that future change. So saying, I'm droid here... who wants to pay an extra x00% for tech just because S.Jobs back in 2012 could draw a nice c...
by Remix
Thu Jun 14, 2018 3:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Extending Ren'Py visuals with custom OpenGL shaders
Replies: 8
Views: 1295

Re: Extending Ren'Py visuals with custom OpenGL shaders

You might note that there is consideration to expose some limited access to OpenGL shaders within some future version of Ren'Py. The full details haven't been disclosed though and (with all the other stuff on his plate) it might not be too high on RenpyTom's ToDo list. Don't expect too much, just ke...
by Remix
Mon Jun 11, 2018 7:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Main Menu That Adds A New Imagebutton After Each Ending?
Replies: 3
Views: 102

Re: Main Menu That Adds A New Imagebutton After Each Ending?

I would suggest, just make a persistent list of found endings, then iterate in the screen # a list we add each new ending to default persistent.found_endings = [] label test_run: n norm "Here is a test to see if this is going to work. Choose the ending you want." menu pick_an_ending: x "What ending ...
by Remix
Sun Jun 10, 2018 5:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Non Repeating Random without Infinite Loop Error
Replies: 7
Views: 117

Re: Non Repeating Random without Infinite Loop Error

You might also note there are methods of the python random module that might make things a lot easier, the primary one being sample() which returns x number of distinct choices from a list. Once they are chosen, you can then rebuild your initial list by leaving out the chosen items. Note: we have to...
by Remix
Sun Jun 10, 2018 5:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Am I Downloading The Right Ren'Py Version?
Replies: 10
Views: 270

Re: Am I Downloading The Right Ren'Py Version?

Is there a folder named "renpy-7.0.0.x-sdk" or similar with a renpy.exe in it?
(has been a while since I installed, so I forget how it went)

If so, click that... maybe even add a shortcut to it on your desktop or taskbar.
by Remix
Sat Jun 09, 2018 3:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable name / The separation of the namespace
Replies: 7
Views: 166

Re: Variable name / The separation of the namespace

I was thinking something a lot more dynamic... basically let the code do the heavy lifting so you can just concentrate on writing labels etc and expect them to automatically patch into your framework The following code snippet does most of that with a focus on looking expressly for files named 'ente...
by Remix
Sat Jun 09, 2018 4:11 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to pass on a parameter to a another screen?
Replies: 4
Views: 113

Re: Is it possible to pass on a parameter to a another screen?

Ah, the good old "reply before checking whether the other Action supports parameters" mistake... oops. (must have had it muddled with inline show or some other thing) So saying, the Function action is generally a good one to teach (and learn) as it always supports passig *args and **kwargs. Well spo...
by Remix
Sat Jun 09, 2018 3:24 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to pass on a parameter to a another screen?
Replies: 4
Views: 113

Re: Is it possible to pass on a parameter to a another screen?

action [ Function( renpy.show_screen, "test2", pic1 ) ]