Search found 109 matches
- Wed Nov 15, 2017 12:02 am
- Forum: Ren'Py Cookbook
- Topic: Convert Python(.py) files to Ren'Py(.rpy)
- Replies: 2
- Views: 1911
Convert Python(.py) files to Ren'Py(.rpy)
If you happen to want to convert files from pure Python to Ren'Py Python, I've written a script to do that. This may be of use to people who want to write .py files while developing, documenting, and testing, but ultimately want the finished product to be available in Ren'Py without the use of impor...
- Wed Jul 19, 2017 7:58 pm
- Forum: Development of Ren'Py
- Topic: Bug: Sets in dictionaries not using RevertableSet
- Replies: 1
- Views: 656
Re: Bug: Sets in dictionaries not using RevertableSet
I recommend you file this issue in the Ren'Py bug tracker: https://github.com/renpy/renpy/issues This PR related to Sets would, I'm fairly certain, fix your issue: https://github.com/renpy/renpy/pull/1037 You could probably extract the part of those changes that adds the visit_Set function if you re...
- Mon Jun 19, 2017 7:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Syntax Error, Persona-like social link system
- Replies: 2
- Views: 611
Re: Syntax Error, Persona-like social link system
Code: Select all
if librank = 1:
Code: Select all
if librank == 1:
- Tue Feb 21, 2017 11:25 am
- Forum: Development of Ren'Py
- Topic: ISAWHIM's Wishlist
- Replies: 18
- Views: 2078
Re: Ren'Py 6.99.12 Released
You can add following code if you prefer lowercase names: init -999 python: true = True false = False Slick... What about the new replace function that I thought I saw RenPy has? Didn't catch how to use it, but I think it said it does a "replacement", prior to compile, of all text? (Wasn't sure if ...
- Wed Feb 01, 2017 12:49 am
- Forum: Ren'Py Cookbook
- Topic: Encyclopaedia / Bestiary Framework
- Replies: 112
- Views: 37196
Re: Encyclopaedia / Bestiary Framework
Thank you, daikiraikimi , it works! The last one question and I'll finally leave you: could you help me with sub-entry text? After unlocking sub-entries appears in the next pages by default, but I want them appearing in the end of main entry's text block, without any pages. Like this: "Main entry, ...
- Thu Sep 01, 2016 10:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Glitch: global variable corruption on "show"
- Replies: 8
- Views: 1135
Re: Glitch: global variable corruption on "show"
Based on the code you wrote, you are very much a python beginner. That's not an insult; you don't fully understand the semantics or features of the language. I also don't understand what you're trying to do here, other than it somehow involves Transform. Are you trying to accomplish some form of ani...
- Thu Aug 25, 2016 8:32 am
- Forum: Ren'Py Cookbook
- Topic: Mirrage/Heat Shimmer/Kagerou Effect Displayable
- Replies: 11
- Views: 6921
Re: Mirrage/Heat Shimmer/Kagerou Effect Displayable
You feel like getting crazy? Let's get crazy. init python: import math from itertools import cycle sin = math.sin class Mirage(renpy.Displayable): def __init__(self, image, width=0, height=0, amplitude=0, wavelength=0, **kwargs): super(renpy.Displayable, self).__init__(**kwargs) # Cut image into sca...
- Thu May 05, 2016 10:32 am
- Forum: Ren'Py Cookbook
- Topic: Simple RPG Battle Framework A.K.A Sheepstorm
- Replies: 21
- Views: 12527
Re: Simple RPG Battle Framework A.K.A Sheepstorm
Advice: Follow the PEP8 guidelines for your python code. This will make things easier to read, more maintainable, and easier for other people to work on. Generally, try to be more consistent with your style, even if you deviate from PEP8. eg: Your fighter class init python: class fighter: def __init...
- Mon Apr 25, 2016 11:12 pm
- Forum: Ren'Py Cookbook
- Topic: Radar Chart
- Replies: 7
- Views: 4279
Re: Radar Chart
http://img1.ak.crunchyroll.com/i/spire3/1914e62ce3485cac6bf79e13d81a9a6b1457453767_full.png This bird has flown. Literally. Anyway, I'm going to attempt fixing around automatically updating the max_value to avoid the spike thing. :lol: I've updated RadarChart to v0.2.1. There's a few changes you'll...
- Tue Aug 11, 2015 11:10 pm
- Forum: Ren'Py Cookbook
- Topic: Radar Chart
- Replies: 7
- Views: 4279
Re: Radar Chart
I've made a whole bunch of enhancements to this displayable, and thrown it up at: https://github.com/jsfehler/renpy-radarchart
It should be much more usable now.
It should be much more usable now.
- Fri Aug 07, 2015 7:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: Adding pygame in renpy (Using renpygame framework)
- Replies: 4
- Views: 7517
Re: Adding pygame in renpy (Using renpygame framework)
If you're desperate to get renpygame working on renpy 6.99 , open up renpygame/__init__.py and comment out the following lines: Overlay = pygame.Overlay import renpygame.cursors This will get the demo working, at the very least. Of course, if your game needs either of those two, you're out of luck. ...
- Tue Apr 21, 2015 10:08 pm
- Forum: Ren'Py Cookbook
- Topic: Encyclopaedia / Bestiary Framework
- Replies: 112
- Views: 37196
Re: Encyclopaedia / Bestiary Framework
Off the top of my head, if you create the entry data in an init block, it'll get set each time the game starts. If you create the entry data outside, it should save if you update it. So you could do something like: a_entry = "Blah blah blah" a "Hamburgers? Love 'em." python: a_entry = "Blah blah bla...
- Thu Apr 16, 2015 6:25 pm
- Forum: Ren'Py Cookbook
- Topic: Mirrage/Heat Shimmer/Kagerou Effect Displayable
- Replies: 11
- Views: 6921
Re: Mirrage/Heat Shimmer/Kagerou Effect Displayable
Interesting. To be fair, I plundered the scanline code from: http://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=15329 I played around with this a bit, and made some changes to reduce the strain this places on the CPU. The first thing I did was remove the makeScanlines function, getting the call o...
- Sun Oct 26, 2014 6:21 pm
- Forum: Ren'Py Cookbook
- Topic: Encyclopaedia / Bestiary Framework
- Replies: 112
- Views: 37196
Re: Encyclopaedia / Bestiary Framework
I've updated the files to a new version. The code's been rewritten a bit but should retain full compatibility with the older versions. It's mostly just cleaning up based on my increased Python knowledge. The biggest change is that the flags for the "New!" status can be generated dynamically. The old...
- Mon Sep 01, 2014 8:41 pm
- Forum: Ren'Py Cookbook
- Topic: Projection Starfield
- Replies: 12
- Views: 4443
Re: Projection Starfield
I wasn't satisfied with the previous version as it had serious performance issues on slower machines. Version 2 below can support hundreds more stars on screen compared to the original before any slowdown occurs. Usage remains as easy as dropping the .rpy file into your project's "game" folder and f...