Search found 71 matches

by Thundy
Fri Jul 05, 2019 5:05 am
Forum: Ren'Py Questions and Announcements
Topic: Odd issue with Calling screens
Replies: 2
Views: 179

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: 179

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: 131

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: 171

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: 452

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: 452

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: 452

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: 452

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...
by Thundy
Tue Sep 11, 2018 10:27 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 452

Re: Class instance variable not changing

Hi @Remix. I totally understand. It is asking a lot to get people to help with only half the picture. I'll upload the code to mega and PM a link. It's not a huge amount of code at the moment but it's the easiest way to get a complete picture of what I am seeing.
by Thundy
Tue Sep 11, 2018 9:46 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 452

Re: Class instance variable not changing

All the code I've posted so far is contained within the Init Python block. When the player clicks on an imagebutton DialogueOpen is set to True and Act is set to the name of a character The Ren'Py code then says: if DialogueOpen: python: DialogueOpen = False TalkCheck() That's all the code for the s...
by Thundy
Mon Sep 10, 2018 1:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 452

Re: Class instance variable not changing

I use the console to check the values at varying stages of the process the list of inscances is created by parsing an xml file as follows. I know that the DCheck value is always returning True which shouldn't be happening Dialogues = [] for j in Dialo: JPlace = j.find('Place').text JWho = j.find('Wh...
by Thundy
Mon Sep 10, 2018 5:57 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 452

Re: Class instance variable not changing

Forgive the bump. Would it be fair to assume that either my mistake is so monumentally simple that it doesn't warrant an answer, or that nobody else has a clue either? The latter problem feels like it might be an issue with what object are saved. An object is only saved in Ren'Py if it's reachable f...
by Thundy
Sun Sep 09, 2018 4:29 am
Forum: Ren'Py Questions and Announcements
Topic: Class instance variable not changing
Replies: 14
Views: 452

Class instance variable not changing

Hey all. So i have a class for my dialogue system which is defined as follows. class DIALOGUE(object): def __init__(self, place, who, sTime, eTime, isActive, mood, menuText, func, repeatable, num): self.place = place self.who = who self.sTime = sTime self.eTime = eTime self.isActive = isActive self....
by Thundy
Sun Aug 19, 2018 4:29 am
Forum: Ren'Py Questions and Announcements
Topic: Class methods not working consistently.
Replies: 1
Views: 94

Re: Class methods not working consistently.

I should clarify. In the game at some point the .Activate() method is called. however is doesn't "Stick" and the dialogue doesnt appear however when I manually call the method in the console it does work. Its a bit of a head scratcher
by Thundy
Sun Aug 19, 2018 4:06 am
Forum: Ren'Py Questions and Announcements
Topic: Class methods not working consistently.
Replies: 1
Views: 94

Class methods not working consistently.

Hey folks. So this is an odd one. I have the following class: class DIALOGUE(object): def __init__(self, isActive, startTime, endTime, day, menuText, location, participant, func, recurring, recurred, canChat, loadd): self.isActive = isActive self.startTime = startTime self.endTime = endTime self.men...