Using Matrixcolor

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.
Post Reply
Message
Author
User avatar
orian34
Newbie
Posts: 10
Joined: Tue Aug 24, 2021 3:42 am
Github: orian34
itch: orian34
Discord: orian34#3442
Contact:

Using Matrixcolor

#1 Post by orian34 » Mon Jun 13, 2022 6:00 pm

I tried using the matrixcolor transform to change tints on displayables, but no matter what I try to write, it always gives me the "ATL statement contains two expressions in a row".

Even using the example transform from the documentation gives the same issue. I'm confused as to how it even works at this point.

Maybe I'm missing something, like it has to be placed in a particular location? Despite other transforms being fine.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Using Matrixcolor

#2 Post by Ocelot » Mon Jun 13, 2022 6:24 pm

An example of how you are using it would be nice.
< < insert Rick Cook quote here > >

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Using Matrixcolor

#3 Post by zmook » Mon Jun 13, 2022 6:53 pm

You can do it like this:

Code: Select all

define config.gl2 = True

transform tint(color):
    matrixcolor TintMatrix(color)

show eileen at tint("#ffddbb")
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
orian34
Newbie
Posts: 10
Joined: Tue Aug 24, 2021 3:42 am
Github: orian34
itch: orian34
Discord: orian34#3442
Contact:

Re: Using Matrixcolor

#4 Post by orian34 » Mon Jun 13, 2022 7:18 pm

I tried using that, but I got the same error.

I wonder if it's because it's a new feature and the version of my build is older?

Code: Select all

File "game/script/A26.rpy", line 3: ATL statement contains two expressions in a row; is one of them a misspelled property? If not, separate them with pass.
    matrixcolor TintMatrix(color)
                                 ^

Ren'Py Version: Ren'Py 7.3.5.606
If that's why, that would explain it and the lack of info about it. (and if that's the case, is there a way to upgrade the version midway?)

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Using Matrixcolor

#5 Post by zmook » Mon Jun 13, 2022 8:15 pm

What do you mean, "upgrade midway"? You should be able to upgrade to any 7.4 or 7.5 version without problem, and probably should. Matrixcolor I think was new in 7.4.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
orian34
Newbie
Posts: 10
Joined: Tue Aug 24, 2021 3:42 am
Github: orian34
itch: orian34
Discord: orian34#3442
Contact:

Re: Using Matrixcolor

#6 Post by orian34 » Tue Jun 14, 2022 5:37 pm

zmook wrote:
Mon Jun 13, 2022 8:15 pm
What do you mean, "upgrade midway"? You should be able to upgrade to any 7.4 or 7.5 version without problem, and probably should. Matrixcolor I think was new in 7.4.
I've never really updated so I don't know how to do it. I tried replacing the renpy folder in the game folder, but it just doesn't launch anymore. I tried replacing the lib files too, but then launching the game sends an error that it can't find a file in the lib.

Is there something I'm missing? There is literally no info about that, I tried googling to no avail.

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Using Matrixcolor

#7 Post by zmook » Tue Jun 14, 2022 10:50 pm

orian34 wrote:
Tue Jun 14, 2022 5:37 pm
I've never really updated so I don't know how to do it.
The easy way: in the Ren'py Launcher (the Renpy app you use to build your projects), right below where it says "Launch Project", has a text button "Update". Click on that, then on "Release (Ren'py 7, Python 2)".

The only-slightly less easy way:
1. Make sure your renpy projects folder is not in the renpy-sdk folder. Move it out if necessary.
2. Download the up-to-date Ren'py sdk (https://www.renpy.org/latest.html)
3. Unzip it
4. Start the Renpy launcher in the new sdk folder.
5. In Preferences (bottom left corner), tell it your projects directory.

Now test your game with the new renpy sdk. You can eventually delete the old one when you need the disk space back.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
orian34
Newbie
Posts: 10
Joined: Tue Aug 24, 2021 3:42 am
Github: orian34
itch: orian34
Discord: orian34#3442
Contact:

Re: Using Matrixcolor

#8 Post by orian34 » Wed Jun 15, 2022 3:22 am

zmook wrote:
Tue Jun 14, 2022 10:50 pm
The easy way: in the Ren'py Launcher (the Renpy app you use to build your projects)
Thanks! And question, can I somehow convert a build into a project? Because I think this isn't the original project.

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: Using Matrixcolor

#9 Post by zmook » Wed Jun 15, 2022 11:54 am

orian34 wrote:
Wed Jun 15, 2022 3:22 am
Thanks! And question, can I somehow convert a build into a project? Because I think this isn't the original project.
A "project" is your directory full of .rpy files and images and stuff. A "build" is what you get when you click "build distributions" in the Launcher and compile all that into executable applications.

You might want to re-read this part of the docs.
https://www.renpy.org/doc/html/quicksta ... y-launcher
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev