Search found 19 matches

by martingerdes
Sat Jan 12, 2019 10:34 am
Forum: Ren'Py Questions and Announcements
Topic: hpunch in MultipleTransition
Replies: 0
Views: 209

hpunch in MultipleTransition

A simple question, but apparently too specialized to have been asked before. I want to give a visual effect to a slap. This works: scene picturename with Fade(.1, 0.0, .1, color="#000") scene picturename with hpunch However, I like to make my code pretty, so tried to make a custom transform so that ...
by martingerdes
Sun Dec 16, 2018 6:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Can't pickle class
Replies: 1
Views: 116

Re: Can't pickle class

And solved:
Saving events does not work.
Fixed by adding a dictionary of all the events in addition to the list all_events, saving the event name in the variable, and looking up event properties by way of the dictionary.

Sorry for the noise, but maybe it will end up helpful for somebody else.
by martingerdes
Sun Dec 16, 2018 5:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Can't pickle class
Replies: 1
Views: 116

[solved] Can't pickle class

This happens if I try to save my game after my first event started: (with "config.use_cpickle = False" for a more useful error message) I'm sorry, but an uncaught exception occurred. While running game code: File "renpy/common/00action_file.rpy", line 372, in __call__ renpy.save(fn, extra_info=save_...
by martingerdes
Thu Nov 08, 2018 5:05 pm
Forum: Ren'Py Questions and Announcements
Topic: How is the save game picture chosen?
Replies: 5
Views: 299

Re: How is the save game picture chosen?

I am pretty sure the way I am now doing it is at least as correct as it was before: Each of the full screen screens has "tag fs_menu", so that showing one replaces the one shown before. And I either return to the main screen when leaving it (action Show("main")), or I take the screen to return to as...
by martingerdes
Wed Nov 07, 2018 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How is the save game picture chosen?
Replies: 5
Views: 299

Re: How is the save game picture chosen?

Sorry, no, that did not solve it. I replaced all the places where I used "ShowMenu" with "Show" (giving "None" for transition). This is definitely cleaner, since I am not polluting the stack anymore when I jump from screen to screen. But unfortunately I am still getting save menu pictures for the sa...
by martingerdes
Mon Nov 05, 2018 3:53 pm
Forum: Ren'Py Questions and Announcements
Topic: How is the save game picture chosen?
Replies: 5
Views: 299

Re: How is the save game picture chosen?

Thank you! I think this shows me the right path! I am calling my submenus using "ShowMenu". I will carefully reread which screen calling action is supposed to be used when, and hopefully that will clear this up. :D (I have not changed anything about how I access the save menu, I just press esc for t...
by martingerdes
Sun Oct 28, 2018 11:31 am
Forum: Ren'Py Questions and Announcements
Topic: Trouble calling a self-made function from screen
Replies: 6
Views: 488

Re: Trouble calling a self-made function from screen

Alright, as I expected, it was something utterly dumb: I wrote "python:" instead of "init python:" :oops: init python: def get_text(): return "its a test string" screen test_screen(): frame: vbox: $ t=get_text() text t label start: call screen test_screen This works as expected. :) (I just absolutel...
by martingerdes
Sun Oct 28, 2018 10:06 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] A bit of an 'if'fy problem, a good way to change screen actions for the same button when condition(s) are met?
Replies: 5
Views: 247

Re: A bit of an 'if'fy problem, a good way to change screen actions for the same button when condition(s) are met?

How about something like this, keeping closely to your starting code: default turn = "one" screen turn(): frame: if turn=="one": textbutton "pica" action ([SetVariable("turn", "two"),Return(True)]) elif turn=="two": textbutton "charmander" action ([SetVariable("turn", "three"),Return(True)]) else: t...
by martingerdes
Sun Oct 28, 2018 6:32 am
Forum: Ren'Py Questions and Announcements
Topic: How to add an option to preferences?
Replies: 15
Views: 2084

Re: How to add an option to preferences?

I can answer this one! :D In screens.rpy, look for "screen preferences():" That is the screen which builds up the options you can configure as a player. In there you find the comment ## Additional vboxes of type "radio_pref" or "check_pref" can be ## added here, to add additional creator-defined pre...
by martingerdes
Sun Oct 28, 2018 6:16 am
Forum: Ren'Py Questions and Announcements
Topic: Trouble calling a self-made function from screen
Replies: 6
Views: 488

Re: Trouble calling a self-made function from screen

I'll ressurect this, since it's not that long ago, and I am having precisely the same problem. I am simply trying to make myself a convenience function to construct strings for me while building up a screen. And I am failing at this spectacularly... :cry: Complete testcode: python: def get_text(): r...
by martingerdes
Sat Oct 27, 2018 4:51 pm
Forum: Ren'Py Questions and Announcements
Topic: easy way to check if an image exists?
Replies: 1
Views: 215

Re: easy way to check if an image exists?

I'll admit that I'd be curious about that too. Right now my code simply knows what the picture path is, if it exists: if not image_s: image_s="base/"+self.class_string_plural+"/"+self.base_name+".jpg" if not renpy.exists("images/"+image_s): image_s=None self.image_o=placeholder_800x600 if image_s==N...
by martingerdes
Sat Oct 27, 2018 7:12 am
Forum: Ren'Py Questions and Announcements
Topic: How is the save game picture chosen?
Replies: 5
Views: 299

How is the save game picture chosen?

So I have a very weird small niggle. It's not a big deal if I can't get it resolved, but I'd thought I'd ask, and maybe learn something new. ;-) When I save my game normally, in an event, then the picture for that game save shows the screen at the time of saving, as expected. But if I save the game ...
by martingerdes
Sat Oct 13, 2018 4:31 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do you choose a theme (in the launcher)?
Replies: 4
Views: 237

Re: How do you choose a theme (in the launcher)?

@Donmai: Thanks for the tip. Maybe its useful for others?
But I do want to use the most recent version, with the current best practices.

@xavimat: Thanks a lot for explaining! Another mystery solved. :-)
by martingerdes
Fri Oct 12, 2018 5:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do you choose a theme (in the launcher)?
Replies: 4
Views: 237

[Solved] How do you choose a theme (in the launcher)?

Once again, if there is any documentation I have overlooked, please kindly provide me with a link, I did search on google, but my google-fu is only so-so... I discovered a feature of the Ren'Py Launcher by accident, and am baffled on how to properly invoke it: When you make a new Project, you only g...
by martingerdes
Thu Oct 11, 2018 3:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltips for Labels
Replies: 3
Views: 230

Re: Tooltips for Labels

Thank you for the information.
I know of no displayable "textbox", but a textbutton with NullAction() seems to work fine, and I can style it as needed.