Board index FlightGear Development Canvas

Canvas on multiplayer aircraft

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Canvas on multiplayer aircraft

Postby merspieler » Thu Apr 15, 2021 12:14 am

Trying to get canvas livery working for mp aircraft....
I've written my function calls into
Code: Select all
        <nasal>
                <load>
                </load>
        </nasal>

Like the old livery stuff does.

Now if I `addPlacement({"node": object});` to my canvas, nothing seems to happen.
In the property tree, I can see the added placement but the status-msg says "No match" while for the working own livery it says "OK".

How do I add the placement onto the multiplayer aircraft?
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Canvas on multiplayer aircraft

Postby benih » Mon Apr 19, 2021 7:17 pm

You need to address the specific object which is passed to the function.
Look how i did the canvas registration in the c182s on how this works :)

https://github.com/HHS81/c182s/blob/667 ... s.xml#L143

(Edit) as i wrote this this may not work with the entire model, i think i read that at some mailing list entry. I had struggled with that too, which lead me to the path that i added a single Plane to project the Registration onto.

(Edit 2) and i think i stumbled over a wiki every about that subject too
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: Canvas on multiplayer aircraft

Postby merspieler » Mon Apr 19, 2021 8:02 pm

Awesome... that was a huge step... it shows the livery...

I've just messed up something (not sure yet, what it is) as own and mp aircraft change livery together.
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Canvas on multiplayer aircraft

Postby benih » Mon Apr 19, 2021 8:41 pm

Cool, can you hint me to your code please?
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: Canvas on multiplayer aircraft

Postby merspieler » Mon Apr 19, 2021 8:55 pm

Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS


Return to Canvas

Who is online

Users browsing this forum: No registered users and 3 guests