The 5.6.5 development thread.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

The 5.6.5 development thread.

#1 Post by PyTom » Sun Nov 19, 2006 11:55 pm

Okay, I've started developing 5.6.5. First new feature: Now, we allow Ren'Py strings (in dialogue and menus) to be quoted with `, as well as " and '. So I can write:

Code: Select all

`I said to myself, "I can't do this."`
And it'll work. Note that this only applies to Ren'Py, and not to python code embedded in Ren'Py.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
NetGenSuperstar
Regular
Posts: 113
Joined: Sun Oct 08, 2006 1:29 am
Location: BEHIND YOU!!!
Contact:

#2 Post by NetGenSuperstar » Mon Nov 20, 2006 3:15 am

Wow. Already I'm excited. I've always found those backslashes distracting, even if I only need to use them sparingly.

Also, I want to commend you on making such frequent releases of Ren'Py. You either have no life, or use every spare minute of it programming.

Please tell me you have a life, so I don't look like a jerk for saying that. :D

User avatar
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

#3 Post by mikey » Mon Nov 20, 2006 4:06 am

Can you also write...

Code: Select all

"The boy jumped, screaming: "Whaaaa!""
NetGenSuperstar wrote:You either have no life, or use every spare minute of it programming.
Well, it's also possible to reasonably limit your other internet and freetime activities and prioritize one thing. I suspect it is Ren'Py for PyTom just as it is making games for me. Couple that with the fact that the activity in question is really what you LOVE doing, a form of relaxation and realization and IMO it works quite well, even if you have commitments. This said one needs to watch that is does not consume him completely, so that you're not a one-timer who gets burned out after half a year, but can keep on going doing what you love. If you can ease off the throttle every once in a while when a corner comes, you can keep on driving all your life.

Matt_D
Regular
Posts: 77
Joined: Tue Oct 31, 2006 3:28 pm
Contact:

#4 Post by Matt_D » Mon Nov 20, 2006 7:35 am

mmm ` backtick for the future. that would sheer a good 20% of the time off copying script into the games. Very cool.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#5 Post by PyTom » Mon Nov 20, 2006 2:57 pm

mikey >>> No. You only need to escape the character that's used as the quote character, but that character needs to be escaped. So you now have the choice of writing:

`The boy jumped, screaming: "Whaaaa!"`
'The boy jumped, screaming: "Whaaaa!"'
"The boy jumped, screaming: \"Whaaaa!\""

The advantage of ` is that it's not used in English, where ' and " are used often.

I (debatably) have a life, but I do consider Ren'Py to be my premier hobby. So I spend quite a bit of time on it, as I enjoy doing it. I do other things... for example, this weekend I bought myself a Ruger 10/22 Carbine, learned how to clean and maintain it, and had a scope mounted. Next weekend we're going down to the range to try it out.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#6 Post by PyTom » Sat Nov 25, 2006 2:27 pm

Okay, so I've done a bunch of things towards 5.6.5.

- I've implemented a new "behind" clause clause as part of the show statement. So one can now write:

show crowd behind vivian

like that, and have the crowd appear behind the vivian image, if that image is on the screen. (If not, the behind clause is ignored.)

- I threw together a demo of the minigame code, since interest was expressed in that. So in the next version of the demo, you'll be able to play pong against Eileen.

- I've done quite a bit of work on the movie code, but I'm afraid I'm reaching a dead end. While the ffmpeg-based movies work on my Linux and Windows machines, I haven't been able to get ffmpeg working on my mac. I get a framerate of 2 or 3 frames a second, which is unacceptable. I get this even with MPEG-1, which normally plays fine on my (admittedly ancient) mac.

I'm reaching the end of my rope on this... I was wondering if someone with mac programming experience would volunteer to take a look at this, and see what's wrong.

(The problem is getting ffmpeg, and especially ffplay, working on the mac. ffmpeg is at http://ffmpeg.mplayerhq.hu/. Ffplay, which is included, required libsdl to work: http://www.libsdl.org. )

I'm now making this movie support into a long-term goal, as we already support mpeg-1 movies fairly well, and I don't think I have the resources at my command to properly support it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#7 Post by monele » Sat Nov 25, 2006 2:54 pm

Behind : what happens if another sprite is already behind vivian?... Does the new one get *between* or... is it random, or something else?

Mini-game : Cool. At least those who want to have a mix with RPGs should be able to do it better now, I guess ? (battle systems mostly). But you could also think of others things... Mm... quite open-ended :).

User avatar
Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

#8 Post by Enerccio » Sat Nov 25, 2006 6:08 pm

I would like to see this changed:
When i write

Code: Select all

show xxx at right
it shows character xxx at right

but when after that i write

Code: Select all

show xxx sad
it centered that image back.

Is there any way to keep only expression changed not position?

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#9 Post by monele » Sat Nov 25, 2006 6:14 pm

Ah! I second that ^^

User avatar
NetGenSuperstar
Regular
Posts: 113
Joined: Sun Oct 08, 2006 1:29 am
Location: BEHIND YOU!!!
Contact:

#10 Post by NetGenSuperstar » Sat Nov 25, 2006 10:58 pm

First of all, I really, really like that "behind" clause. It really helps to know which image something will appear behind, rather than having to remember and mess around with zorder all the time. Great idea.

Second, I also would like that issue that Enerccio brought up fixed. In the old demo, there was even a small bug where Eileen would jump from the left immediately to the center when she changed expressions. I don't think it would be too difficult to fix that; the show command is already aware of the images themselves being identically..."grouped", so I would think adding position detection would be trivial. But what do I know?

User avatar
DrakeNavarone
Veteran
Posts: 338
Joined: Mon Mar 06, 2006 2:27 am
Completed: see sig below
Projects: always; never not
Organization: Team BG
Location: PA, USA
Contact:

#11 Post by DrakeNavarone » Sat Nov 25, 2006 11:40 pm

Isn't that what config.sticky_positions is used for? Remembering the position for expression changes? Correct me if I'm wrong...
http://www.twitter.com/drakeynv
The Compendium of Drake:
Starlit Sky ~ Songs of Araiah ~ Mirai Imouto ~ Temple Glen ~ Fuyu no Tabi

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#12 Post by PyTom » Sat Nov 25, 2006 11:42 pm

monele>>> The behind clause will place the image at the highest position that is behind all displayed images with the given tags. (It allows for a comma-separated list of tags, if that comes in handy.) So it's well-defined, and tends to the top.

The mini-game API, added in 5.6.0 but improved in the next release, allows any 2-d game to be made. But you will need to be a skilled python programmer to get anywhere with it. This lets you write a game and run it in Ren'Py, rather then making it easy for you to write that game.

Enerccio et al. >>> Try setting config.sticky_positions to True. (And let me know if it still works, I haven't tested that code for ages.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

#13 Post by Enerccio » Sun Nov 26, 2006 9:12 am

And how about playing movie at the beginig of game?
It is possible? (or mybe it is in game allready but i dont know)

User avatar
Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

#14 Post by Enerccio » Sun Nov 26, 2006 9:23 am

PyTom wrote: Enerccio et al. >>> Try setting config.sticky_positions to True. (And let me know if it still works, I haven't tested that code for ages.)
How?

User avatar
denzil
Veteran
Posts: 293
Joined: Wed Apr 20, 2005 4:01 pm
Contact:

#15 Post by denzil » Sun Nov 26, 2006 9:42 am

Enerccio wrote:
PyTom wrote: Enerccio et al. >>> Try setting config.sticky_positions to True. (And let me know if it still works, I haven't tested that code for ages.)
How?
Should be this way:

Code: Select all

$ config.sticky_positions = True
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

Post Reply

Who is online

Users browsing this forum: No registered users