Search found 696 matches

by DragoonHP
Sat Apr 30, 2016 1:26 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: 'str' object has no attribute [SOLVED]
Replies: 4
Views: 721

Re: AttributeError: 'str' object has no attribute '_window_a

"store" is a reserved name. Use some other name for storing this:

Code: Select all

define store = " George Street Shuffle.mp3"
by DragoonHP
Fri Apr 29, 2016 7:43 am
Forum: Ren'Py Questions and Announcements
Topic: Keeping PS Layer Mode Data? (Overlay/Multiply) - Photoshop)
Replies: 7
Views: 268

Re: Keeping PS Layer Mode Data? (Overlay/Multiply) - Photosh

So my question is, is there a way to export the layers from within Photoshop in a way that keeps the layer mode data (as they are set to overlay/multiply), so that the end result within Ren'Py looks the same as the complete Photoshop file? No, there is no such way. You will have to layer them manua...
by DragoonHP
Fri Apr 29, 2016 5:20 am
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

Found a bug. if w == "," or w == ".": intervals[-1] += 1/speed # Previously, we always added a second in this case continue So the final code should be init python: def check_for_tags(s): if "{fast}" in s: s = s.split("{fast}") s = s[-1] if "{w" in s: s = s.replace("{w", " |##") if "[p" in s: s = s....
by DragoonHP
Fri Apr 29, 2016 2:28 am
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

So finally managed to repeat the bug xela mentioned. It happened for speed > 5 The only change required: s = re.sub(r"{.+?} ", "", s) # Instead of capturning "{something}" we had to capture "{something} " Full code: init python: def check_for_tags(s): if "{fast}" in s: s = s.split("{fast}") s = s[-1...
by DragoonHP
Thu Apr 28, 2016 3:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

Perfect sync. This one actually finishes playing off before the next letter is shown :p

EDIT: After repeated testing (I can only hear beeps now), I think there is like a 0.1 sec lag though between the last letter rendering and the sound playing.
by DragoonHP
Thu Apr 28, 2016 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

I tested it out three times after posting the last time, and it's in complete sync for me. And as far as I can see, there is nothing in the code which will make it go out of sync. I will probablly test it out on a different system just to be sure or maybe OP might help me in testing it. :p Ah well, ...
by DragoonHP
Thu Apr 28, 2016 3:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

It's in complete sync for me. I am testing it out at the lowest text speed possible.

But I found a different bug: When a text tag is enclosed by spaces on both sides, the timing will mess up. The easiest solution right now is to not do that. :lol:
by DragoonHP
Thu Apr 28, 2016 3:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

The above setup doesn't work (for me), timings become messed up, especially if more words are added... + it doesn't account for a bunch of other stuff that I mentioned (or/and didn't even think of). Can you give me any examples? I admit to only testing it rather briefly before and I would like to f...
by DragoonHP
Thu Apr 28, 2016 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

init python: def check_for_tags(s): if "{fast}" in s: s = s.split("{fast}") s = s[-1] if "{w" in s: s = s.replace("{w", " |##") if "[p" in s: s = s.replace("{p", " |##") s = s.replace("}", "} ") return s def beepy_voice(event, interact=True, **kwargs): global _last_beeped_text if not interact: retu...
by DragoonHP
Thu Apr 28, 2016 2:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

It's not really safe. Even if all tags are removed from the string, extend and tags that change text speed will fail unless accounted for. You can easily account for extend by using _last_raw_what instead of _last_say_what. And supporting text tags might not be that hard since most of them are rath...
by DragoonHP
Thu Apr 28, 2016 11:37 am
Forum: Ren'Py Questions and Announcements
Topic: hotspots + ATL?
Replies: 13
Views: 427

Re: hotspots + ATL?

(like endlessly adding items to the inventory by hovering...either on the inventory image or the item :lol: ) Most probably because you were calling the add method of the inventory class directly which causes Ren'Py to run it again and again whenever the screen refreshes. Either make a custom Actio...
by DragoonHP
Thu Apr 28, 2016 11:31 am
Forum: Ren'Py Questions and Announcements
Topic: Text scrolling/ dialogue sounds, per word
Replies: 24
Views: 1482

Re: Text scrolling/ dialogue sounds, per word

This is a cookbook worthy entry. Though there's a bug, I think. The loop should end if the speed is zero, otherwise it will crash the game. for w in words: if not speed: # If speed is zero, exit the loop break intervals.append((len(w)+1)/speed) # We add 1 to account for spaces... renpy.show_screen("...
by DragoonHP
Wed Apr 27, 2016 7:40 pm
Forum: Ren'Py Questions and Announcements
Topic: hotspots + ATL?
Replies: 13
Views: 427

Re: hotspots + ATL?

> Can hotspots be coded with ATL instructions? It apparently does. (Never really tested it though because I avoid imagemaps like plague) > Can the same hotspot take a second instruction as if there was a "listener" to it? The easiest way to do it will be via using If action. > https://www.renpy.org/...
by DragoonHP
Wed Apr 27, 2016 12:22 am
Forum: Ren'Py Questions and Announcements
Topic: Imagemap help
Replies: 9
Views: 428

Re: Imagemap help

It should be Jump("MS1") instead of jump MS1.

Please read this page > https://www.renpy.org/doc/html/screen_actions.html
by DragoonHP
Tue Apr 26, 2016 3:07 pm
Forum: Ren'Py Questions and Announcements
Topic: What would you choose for your game? [Opinion...poll?]
Replies: 12
Views: 432

Re: What would you choose for your game? [Opinion...poll?]

Imagebuttons all the way. Those there is a bit more work involved in the start (creating multiple images), it's more than worth in the end. They offer much more freedom.