Search found 420 matches

by zmook
Thu Aug 04, 2022 6:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Non-breaking slash?
Replies: 6
Views: 983

Re: Non-breaking slash?

WORD JOINER, ok.

Code: Select all

                rv.append((txi[0], "\u2060".join(txi[1])))
by zmook
Thu Aug 04, 2022 10:07 am
Forum: Ren'Py Questions and Announcements
Topic: Non-breaking slash?
Replies: 6
Views: 983

Re: Non-breaking slash?

All right then. This works as long as there's no nested markup within the {nb}…{/nb} tags, which is good enough for my current purposes. def non_breaking_tag(tag, argument, contents): """Insert unicode non-breaking zero-width code point between every content character.""&quo...
by zmook
Wed Aug 03, 2022 5:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Non-breaking slash?
Replies: 6
Views: 983

Non-breaking slash?

Does renpy have markup for *preventing* line breaks at unwanted locations? In particular, I want to make renpy treat phrases like "km/h" and "AC/DC" as single words, not breakable at the slash. Unicode has official non-breaking space and non-breaking hyphen characters, but appare...
by zmook
Thu Jul 14, 2022 8:59 am
Forum: Ren'Py Questions and Announcements
Topic: Skyrim loading screen
Replies: 8
Views: 845

Re: Skyrim loading screen

But are you sure the image "on show" is the correct synthax or is even possible ? It keep giving me indexation mistake or error. Sorry, looks like I gave you a syntax error. I don't have time to test this, but by the docs the syntax should be: image menu_dark_2: "images/0.0 - Game Me...
by zmook
Sun Jul 10, 2022 9:40 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] improving .extend class method
Replies: 5
Views: 389

Re: improving .extend class method

I currently stand at 40ish posts and expect many more before the game is complete, many of the posts will have two or more characters tagged in the message, I don't see it as practical or efficient to have to append each character individually to every message they might appear in. Is there an easi...
by zmook
Sat Jul 09, 2022 8:45 am
Forum: Ren'Py Questions and Announcements
Topic: Skyrim loading screen
Replies: 8
Views: 845

Re: Skyrim loading screen

It sounds like it might be easier for you to just use image statements to define your images as where you want them to be, so that you don't have to worry about managing transforms when you show them: image main_menu_dark_2 = "images/0.0 - Game MenuDark_Right_CH1_2.jpg": on show: xpos -200...
by zmook
Wed Jul 06, 2022 8:13 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] lists and functions
Replies: 11
Views: 506

Re: lists and functions

Your pseudocode looks like it should work. Your real code doesn't work. So there's something in your real code that's different from what you're showing us. If your real code works when you run it in the console, then there's probably something in the screen about how your actual lists are construct...
by zmook
Tue Jul 05, 2022 7:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] lists and functions
Replies: 11
Views: 506

Re: lists and functions

Do you really have a variable named "list"? I wouldn't have expected that to work at all, but even if it does kind of work, it still might be giving you trouble. ('list' is a standard built-in class -- that creates lists! -- and you've just renamed it. Don't do that.) Also, in the code you...
by zmook
Tue Jul 05, 2022 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Accessing values in a nested dictionary
Replies: 6
Views: 467

Re: Accessing values in a nested dictionary

"'orange', 'red', 'blue'" is a *value* in food_recipes, not a key, so it's not surprising that python complains it can't find it as a key in that dictionary. Somehow you've got things flipped around. If you show us your actual code, we can maybe tell you what to fix.
by zmook
Tue Jul 05, 2022 2:13 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Picking random idle poses
Replies: 3
Views: 461

[SOLVED] Re: Picking random idle poses

I spent a long time trying to figure out how much of this I could get renpy to do for me. config.adjust_attributes looked really promising, and I had hoped for a design that looked something like this: init python: # register a callback to select on the fly which pose gets shown for a registered tag...
by zmook
Tue Jul 05, 2022 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: New game best choice: Ren'Py 8.0 or Ren'Py 7.5 ?
Replies: 3
Views: 402

Re: New game best choice: Ren'Py 8.0 or Ren'Py 7.5 ?

Renpy 8 is the future, and seems pretty solid in the present. Starting a new game, use Renpy 8. The only obvious reason to work in Renpy 7.5 is if you started the project ages ago and have a ton of code that would be troublesome to update. If you think you have a very good reason to start a new proj...
by zmook
Mon Jul 04, 2022 11:51 am
Forum: Ren'Py Questions and Announcements
Topic: LayeredImage auto groups with format_function?
Replies: 0
Views: 1044

LayeredImage auto groups with format_function?

The docs say that 'auto' groups do not work in layered images if you provide an 'image_format' template.

Is the same true (that auto groups do not work) if you provide a format_function?
by zmook
Mon Jul 04, 2022 9:33 am
Forum: Ren'Py Questions and Announcements
Topic: Artworks for dummies
Replies: 3
Views: 553

Re: Artworks for dummies

Dude, you have a long road ahead of you, but more power to you. Daz3D is designed specifically for posing human figures and rendering the kinds of things you'll want for a VN. It's free-to-play, but Daz the company works hard to get you tied to the Daz Marketplace. Blender is totally free, more powe...
by zmook
Mon Jul 04, 2022 8:21 am
Forum: Ren'Py Questions and Announcements
Topic: Show a screen in/on another one
Replies: 3
Views: 350

Re: Show a screen in/on another one

I searched online and didn't find neither a way to add one screen on top of another nor include a screen in another without repeating the code. Is your problem just that you don't know how to show two different screens at the same time? There are lots of cookbooks for free-roam type structures. Try...
by zmook
Sun Jul 03, 2022 6:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to set defaults on the fly for layeredimage?
Replies: 6
Views: 850

Re: Is there a way to set defaults on the fly for layeredimage?

"groups" are like slots where several different mutually-exclusive options could show up. "attributes" are flags you can choose each time you display the image. For each attribute provided, each group will be checked to see if there's something that should be shown for that attri...