Search found 69 matches

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

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

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

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

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

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

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

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

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

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

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

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

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

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...
by Thundy
Sat Apr 14, 2018 2:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Pickling error
Replies: 6
Views: 265

Re: Pickling error

I discovered the issue once i had my epiphany. I had defined a function called PrettyName (which i renamed pretyName during fault finding) which i inadvertantly called during parsing my xml file as a variable. Silly me!
by Thundy
Sat Apr 14, 2018 2:21 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Pickling error
Replies: 6
Views: 265

Re: Pickling error

Hi remix so here is the new traceback. [code] I'm sorry, but an uncaught exception occurred. While running game code: File "renpy/common/00action_file.rpy", line 361, in __call__ renpy.save(fn, extra_info=save_name) PicklingError: Can't pickle <function pretyName at 0x06D798B0>: it's not the same ob...