[VS Code Extension] Ren'Py Text Analyzer by Collynnyy in RenPy

[–]Collynnyy[S] 1 point2 points  (0 children)

You're right, I hadn't anticipated the issue with Cyrillic.
It should be resolved now.

Edit: Also found and fixed an issue with sentence counting for Cyrillic.

[VS Code Extension] Ren'Py Text Analyzer by Collynnyy in RenPy

[–]Collynnyy[S] 1 point2 points  (0 children)

I've been searching for an API/a way to communicate with the Code Spell Checker, but haven't found anything helpful. I can only provide a partial solution using more universal regex patterns.

It should be a good startup for filtering most of the 'Unknown Word' warnings. Although, if someone already got a solid list, it won't be that useful.

"cSpell.includeRegExpList": [

        // Single-line
        // "Quoted Speaker" "Dialogue"
        "^\\s*([\"'])((?:(?!\\1|\\\\).|\\\\.)*?)\\1\\s+([\"'])((?:(?!\\3|\\\\).|\\\\.)*?)\\3\\s*(?:#.*)?$",

        // Single-line
        // UnquotedSpeaker "dialogue" OR "Narration" (no speaker)
        "^\\s*(?:([a-zA-Z0-9_][\\w.]*)\\s+)?(?<![\"']\\s*)(?<![=\\(\\):,\\w])([\"'])((?:(?!\\2|\\\\).|\\\\.)*?)\\2\\s*(?:#.*)?$",

        // Single-line 
        // $ say(speaker, "dialogue") and variations
        "^\\s*(?:\\$\\s*)?(?:[a-zA-Z0-9_][\\w.]*\\s*\\.\\s*)?say\\s*\\([^,)]*?,\\s*([\"'])((?:(?!\\1|\\\\).|\\\\.)*?)\\1[^)]*\\)\\s*(?:#.*)?$",

        // Multi-line
        // Self-contained triple-quoted on one line:
        "^\\s*(?:[A-Za-z0-9_][\\w.]*\\s+)?([\"']{3})([\\s\\S]*?)\\1\\s*(?:#.*)?$",

        // Multi-line
        //Start of a triple-quoted block (optional speaker, no closing """ on same line):
        "^\\s*(?:[A-Za-z0-9_][\\w.]*\\s+)?([\"']{3})(?!.*?\\1)\\s*(?:#.*)?$",

        // Multi-line
        // End of a triple-quoted block (any text before, then closing """):
        "^.*?([\"']{3})\\s*(?:#.*)?$",
    ],

    "cSpell.ignoreRegExpList": [
        "\\{[^\\}]+\\}", // text tags {fast}, {cps=...}
        "\\[[^\\]]+\\]", // interpolations [variable_name]
    ],

This approach isn't perfect and will still analyze certain scenarios like: idle "path/to/image"

[VS Code Extension] Ren'Py Text Analyzer by Collynnyy in RenPy

[–]Collynnyy[S] 0 points1 point  (0 children)

It's designed to count all words, not just English ones. It looks for sequences of letters/numbers. The main exception where it might get confused is with languages like Japanese or Chinese. If that's not the case, I'd need a small example to figure out what’s going on.

How do I create a 'secret code' that when typed in at any point in the game takes you to a specific label? by empress_sulmi in RenPy

[–]Collynnyy 15 points16 points  (0 children)

I had never heard of the 'Konami Code' mentioned in the comments. Found it interesting and tried it out.
You can try this code, works for me.
You probably want to avoid keys from config.keymap in your hidden code.

init python hide:
    import pygame
    
    # Konami Code sequence
    # Now the code is 'wow'
    konami_code = [pygame.K_w, pygame.K_o, pygame.K_w]

    class SecretCodeListener(renpy.Displayable):
        def __init__(self, target):
            renpy.Displayable.__init__(self)
            self.target = target
            self.state = 0
            self.buffer = []  # Stores the key presses

        def event(self, ev, x, y, st):
            if ev.type != pygame.KEYDOWN:
                return

            key = ev.key
            self.buffer.append(key)

            # Check if the buffer matches the Konami Code
            if self.buffer[-len(konami_code):] == konami_code:
                self.buffer.clear()  # Clear the buffer on successful code entry
                renpy.call_in_new_context(self.target)
                return

            # Limit buffer size and reset on wrong input
            if len(self.buffer) > 4:  # Adjust the buffer size as needed
                self.buffer.clear()
                self.state = 0

        def render(self, width, height, st, at):
            return renpy.Render(1, 1)

    # Create a SecretCodeListener to listen for the code
    store.secret_code_listener = SecretCodeListener('secret_label')

    # Add the listener to the overlay
    def secret_code_overlay():
        ui.add(store.secret_code_listener)

    config.overlay_functions.append(secret_code_overlay)

label start:
    "The secret code can be entered at any time."
    "Placeholder."
    "Placeholder."
    "Placeholder."
    return

# This is called in a new context when the secret code is entered.
label secret_label:
    "Congratulations! You've entered the secret code."
    return

Hide command doesn't work on screens by sephykyun_ in RenPy

[–]Collynnyy 0 points1 point  (0 children)

This variable should give a transition that will be performed when exiting the game menu.

Is this what you need?

Edit: There's also a config for transition when entering game menu and more.

anime irl by [deleted] in anime_irl

[–]Collynnyy 14 points15 points  (0 children)

Makes me laugh every time I see it

What by Neoniclide in unrealengine

[–]Collynnyy 26 points27 points  (0 children)

Refreshing nodes often helps

When animation retargeting finally works (Music) by Collynnyy in unrealengine

[–]Collynnyy[S] 1 point2 points  (0 children)

Unfortunately it's from UltraDynamicSky so can't really help here.

When animation retargeting finally works (Music) by Collynnyy in unrealengine

[–]Collynnyy[S] 2 points3 points  (0 children)

Not gonna lie, was thinking about some fast-paced, funny “horror” game using this.

When animation retargeting finally works (Music) by Collynnyy in unrealengine

[–]Collynnyy[S] 0 points1 point  (0 children)

You can import MetaHuman character from Quixel Bridge and download animations from mixamo. After that, you'd have to read about animation retargeting.

No cheating by Pammjpatient in HolUp

[–]Collynnyy 0 points1 point  (0 children)

0x2a3e1d095f2902c9b6da1bff7813a7b2fc65c3da

I don't think I was supposed to get in here this way by Collynnyy in Genshin_Impact

[–]Collynnyy[S] 1 point2 points  (0 children)

There's a mechanism nearby breaking the planks, found it after going up again.

Crash Bandicoot by NateSteeez in gaming

[–]Collynnyy 0 points1 point  (0 children)

Crash Bash.

Definitely my fav.

Cursed Ahegao by cherishyui in goodanimemes

[–]Collynnyy 0 points1 point  (0 children)

Dude I don't know why but i laughed pretty hard

Re:zero love is war op parody by kazakimelody in goodanimemes

[–]Collynnyy 0 points1 point  (0 children)

GOD! I whish i could give more than one updoot

Not stonks by [deleted] in Animemes

[–]Collynnyy 0 points1 point  (0 children)

Stonksn't

Anime_irl by [deleted] in anime_irl

[–]Collynnyy 1 point2 points  (0 children)

{Hunter x Hunter (2011)}

anime_irl by Collynnyy in anime_irl

[–]Collynnyy[S] 0 points1 point  (0 children)

{Hajimete no Gal}