Search found 161 matches

by drKlauz
Fri Oct 11, 2019 11:05 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Creating an explorable screen?
Replies: 10
Views: 219

Re: Creating an explorable screen?

If you use imagebuttons you can easily change positions, images use only needed space, you can have proper hit-testing and not just rectangle click area, you can have item over item. I haven't seen any usecase where imagemaps is better solution. As for position, if you don't need to place element at...
by drKlauz
Fri Oct 11, 2019 6:26 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Creating an explorable screen?
Replies: 10
Views: 219

Re: Creating an explorable screen?

When possible avoid imagemaps and use imagebuttons. They are much more flexible and easier to work with.
by drKlauz
Mon Oct 07, 2019 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: RenPy alarm(?)
Replies: 8
Views: 209

Re: RenPy alarm(?)

I have strong feeling this is private pet project what will be shared with close friends only.
Just mentioned solutions, ability to implement them is another question :D
by drKlauz
Mon Oct 07, 2019 7:38 am
Forum: Ren'Py Questions and Announcements
Topic: RenPy alarm(?)
Replies: 8
Views: 209

Re: RenPy alarm(?)

On Windows you can use Task Scheduler system.
On Linux you can use cron.
Another option would be having another program running on background and checking if trigger conditions are met and main app is not running.
by drKlauz
Mon Oct 07, 2019 5:45 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to show emails in receiving order?
Replies: 5
Views: 227

Re: How to show emails in receiving order?

Code: Select all

## change this line
received_mails.append(number_of_mail)
## to this
received_mails.insert(0,number_of_mail)
or

Code: Select all

## change this line
for message in received_mails:
## to this
for message in reversed(received_mails):
by drKlauz
Tue Oct 01, 2019 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: SOLVED! Is there a way to "comment" an entire label
Replies: 9
Views: 259

Re: SOLVED! Is there a way to "comment" an entire label

Better yet add jump to start of label itself. So this label event_234: bob 'blablabla' bob 'bye!' return become this label event_234: jump event_234_skip bob 'blablabla' bob 'bye!' label event_234_skip: return # or jump or however else event_234 label supposed to end, can be nothing at all if you us...
by drKlauz
Sat Sep 28, 2019 7:49 pm
Forum: Ren'Py Questions and Announcements
Topic: is there an easy way of keeping the class attrebutes after reload?
Replies: 14
Views: 349

Re: is there an easy way of keeping the class attrebutes after reload?

Turn name/info into properties as well, i guess. Inside property check locked/unlocked persistent variables and show wanted content. It is really game-specific thing, so can't give generic advice.
by drKlauz
Sat Sep 28, 2019 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: is there an easy way of keeping the class attrebutes after reload?
Replies: 14
Views: 349

Re: is there an easy way of keeping the class attrebutes after reload?

Ok, i looked source file and re-read thread. You have to separate state of gallery entry from information how does it look. Locked attribute get reset when game is over, and rightly so as whole game get restarted. I would replace locked attribute with locked property what will read entry state from ...
by drKlauz
Sat Sep 28, 2019 6:34 am
Forum: Ren'Py Questions and Announcements
Topic: is there an easy way of keeping the class attrebutes after reload?
Replies: 14
Views: 349

Re: is there an easy way of keeping the class attrebutes after reload?

Your problem is this gall_bg not saving/loading properly? - inherit gallpic class from BaseClass (class GallPic(BaseClass):...) - use default or create gall_bg after start (default gall_bg=GallPic(name=...) ) If it still doesn't work, then problem might be somewhere else. In this case create minimal...
by drKlauz
Fri Sep 27, 2019 11:08 am
Forum: Ren'Py Questions and Announcements
Topic: is there an easy way of keeping the class attrebutes after reload?
Replies: 14
Views: 349

Re: is there an easy way of keeping the class attrebutes after reload?

Try inheriting your classes from this or similar BaseClass: init -1000 python: class BaseClass(renpy.python.RevertableObject): def __getstate__(self): return vars(self).copy() def __setstate__(self,new_dict): self.__dict__.update(new_dict) I really don't know why it isn't default base class in RenPy...
by drKlauz
Sun Sep 15, 2019 1:45 pm
Forum: Development of Ren'Py
Topic: Coding Dialogue Statements easier!
Replies: 16
Views: 763

Re: Coding Dialogue Statements easier!

https://lemmasoft.renai.us/forums/viewtopic.php?f=32&t=56760#p518501 This script could do it automatically, just replace line editing part. Find first space in line, insert quote after it, then add quote to end of line. Line with character tags, like "bob happy Hi, i'm Bob!" are impossible to proces...
by drKlauz
Sat Sep 14, 2019 3:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?
Replies: 2
Views: 257

Re: 'NoneType' object is not callable - Where am I calling a NoneType!?!?

action Function(update_char(active_char))
should be
action Function(update_char,active_char)

In first case Function get result of update_char(active_char) as callable, which is None and as result NoneType is not callable error.
by drKlauz
Sat Sep 14, 2019 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: use of call with parameters [Sloved]
Replies: 6
Views: 381

Re: use of call with parameters

Why not simple give screen parameter it use?

Code: Select all

screen thumbnail(imageName):
  ...

label play_screen(imageName):
  ...
  show screen thumbnail(imageName) with dissolve
  ...

label start:
  ...
  call play_screen('thumb_01.png')
  ...
by drKlauz
Fri Sep 13, 2019 6:10 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 321

Re: Do I need to define all the attributes in a class?

Also create your characters using default or after start label.

Code: Select all

default bob=Character()
## or
label start:
  $bob=Character()
by drKlauz
Mon Sep 09, 2019 5:07 am
Forum: Development of Ren'Py
Topic: Menu/Choice bug
Replies: 9
Views: 557

Re: Menu/Choice bug

Thank you very much!