Search found 78 matches

by Thundy
Wed Dec 11, 2019 7:19 am
Forum: Ren'Py Questions and Announcements
Topic: Adding another directory to the auto image assignment
Replies: 4
Views: 378

Re: Adding another directory to the auto image assignment

Not to worry I've figured out a workaround. Although it would still be nice to know how to do this. I know it will involve editing renpy itself but it should only be as simple as changing the file path from game/images to game/ and making sure the GUI image names don't clash with anything you have e...
by Thundy
Wed Dec 11, 2019 6:18 am
Forum: Ren'Py Questions and Announcements
Topic: Adding another directory to the auto image assignment
Replies: 4
Views: 378

Adding another directory to the auto image assignment

I'm putting content for specific users in a patch. This patch contains images but the auto assignment function doesn't seem to add the images located in the patch folder i.e outside of game/images/. Is there a way that I can include the patch/images/ folder to the automatic assignment so that i don'...
by Thundy
Tue Dec 10, 2019 12:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Listing the contents of a specific directory
Replies: 1
Views: 318

Re: Listing the contents of a specific directory

Ok I figured something out. For those people who want to know how I did it

Code: Select all

listing = renpy.list_files(common=False)
for f in listing:
	if f.startswith("[path of folder you want to search]"):
		print f (or do whatever you want)
 
by Thundy
Tue Dec 10, 2019 7:46 am
Forum: Ren'Py Questions and Announcements
Topic: Listing the contents of a specific directory
Replies: 1
Views: 318

Listing the contents of a specific directory

Hey chums. i want to create a list of files in a specific directory in my renpy project. such as images/ I've tried doing it pythonically but keep running into issues with absolute and relative file paths. I've no doubt that someone has solved this but the search function doesn't appear to be workin...
by Thundy
Fri Dec 06, 2019 7:59 am
Forum: Ren'Py Questions and Announcements
Topic: Adding a "send email" button to the crash screen
Replies: 3
Views: 305

Re: Adding a "send email" button to the crash screen

Fair enough. I'll have to figure out some way to get people to send them in. I'm sure tom has bigger things to worry about
by Thundy
Thu Dec 05, 2019 7:07 am
Forum: Ren'Py Questions and Announcements
Topic: Adding a "send email" button to the crash screen
Replies: 3
Views: 305

Adding a "send email" button to the crash screen

Good morning all. I'm having issues with my users not submitting bug reports. I'm sure that everyone experiences the same issue. Usually I only find out about a bug when a user starts ranting about it on social media, at which point it's far too late. I was wondering if anyone had successfully imple...
by Thundy
Fri Jul 05, 2019 5:05 am
Forum: Ren'Py Questions and Announcements
Topic: Odd issue with Calling screens
Replies: 2
Views: 367

Re: Odd issue with Calling screens

Thanks for the assist. It seems to have sorted itself out on its own which is worrying.
by Thundy
Fri Jul 05, 2019 3:30 am
Forum: Ren'Py Questions and Announcements
Topic: Odd issue with Calling screens
Replies: 2
Views: 367

Odd issue with Calling screens

Hey folks. I have a screen that I use to display tutorials and other game information. I do so by calling the screen whilst passing the information i want to display through as a string. For some strange reason when i display the screen the messages are always one behind. I.e. If i display the scree...
by Thundy
Thu Jan 31, 2019 1:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Issue with continue button during build
Replies: 0
Views: 152

Issue with continue button during build

I have a continue button on my main menu, which functions correctly when testing, but when I try to build it throws out an attribute error. My continue button code is: label quit: $renpy.save("continue", "continue") return label continuer: $renpy.load("continue") return with the following code in th...
by Thundy
Sat Oct 27, 2018 8:25 am
Forum: Ren'Py Questions and Announcements
Topic: easy way to check if an image exists?
Replies: 1
Views: 242

easy way to check if an image exists?

Hey folks. I wanted to find out if anyone knew of an easy way to check whether or not an image exists? I know that renpy.loadable() would provide me with one method but i was hoping for something a bit more elegant that doesn't require me to check all possible file extensions. i.e I want to check on...
by Thundy
Wed Sep 12, 2018 5:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 568

Re: Class instance variable not changing

Ok so my less than elegant solution was to create two lists called is_repeatable and is_repeated. so the class now looks like this class DIALOGUE(object): def __init__(self, place, who, sTime, eTime, isActive, mood, menuText, func, repeatable, times_viewed, ID): global is_repeatable global is_repeat...
by Thundy
Wed Sep 12, 2018 4:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 568

Re: Class instance variable not changing

Thanks. Have implemented it for the non xml parsed variables. Circling back to my issue the thing that is causing me so much headache is that the variables being fed into the RepCheck method are correct, but the method returns True anyway which is just plain odd.
by Thundy
Wed Sep 12, 2018 5:41 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 568

Re: Class instance variable not changing

All variables should be declared outside of any block using default (if the variable will change) or define (if it won't). So the definition of your class would be in the init python block, but the declaration of an instance of your dialogue class should be using default outside of a block. That ma...
by Thundy
Tue Sep 11, 2018 12:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 568

Re: Class instance variable not changing

You said you were initializing everything in an init block. Is the problem with persisting across saves? Or is it a purely runtime issue? Unless you take steps to explicitly put stuff into “store”, I don’t think objects you create during the init phase are going to get pickled into your save. So th...