#How do I use the chip "player get profile image" with rrs
1 messages · Page 1 of 1 (latest)
Studio Functions i’m assuming
you also need to use the recnet image componetn for the image to live in
dont make the mistake of having the unity image compoent and the recnet image component on the same object because unity will complain about that
Ik that
How do I get this in rrs
Do I create an empty canvas?
oh so i create a canvas and then add it?
how would i do that???????
not the canvas part, the component part
Ok do I click the component tab in the white bar at the very top?
Or just right click on a canvas
you will need to add the component in the inspector to the desired object
just be sure to not have any other components that do the same job as the recnet image component (that being a graphical ui component)
Ah
Ok then after that do I just upload it?
not quite yet
you still need to have a way to set the image on it
for that you will need to create a new studio function
Hold on let me get into rrs so I can do this rq
ok im in
@livid cape
so, create the component where you desire the pfp to be
then create a new studio function that will set the image on it to a recnet image input
studio function?
whats a studio function?💔
Use Studio Functions to build complex, reactive logic to empower Studio Props with custom Circuits chips.
love u
Ok i did everything, gave it the inputs, all the stuff.
Is that all?
I've already uploaded it btw
did you test it in-game first before uploading?
😬
surely it doesn't matter right?
if you dont have rr+ and need to upload alot then that will be a problem
wdym?
I've already uploaded
you have a limited amount of builds per day without rr+
oh no worries
It should work now tho?
if you did things right yes
ok so I have a display, and the target its displaying on is the canvas.
I have a player system where a player joins it'll display their name, and pfp.
idk if using a canvas works bc pressing the execution doesn't work omds😑
image of how youve setup the studio function and the hierarchy please
hierarchy?
the thing that has all the objects in it in a big list
Ohhhhh
I can't rn I'm on mobile
But the canvas is a rr object and the function has a method set up along with the correct input
what about it tho
It's the canvas
no i mean a separate object that is a child of the canvas
I added a rec net component to it
Ohhh
I don't think I made a child.
you should
that might be why
So once I create the child I'm done?
yeah i believe so
ok so I just remove the thing on the parent and replicate that on the child?
by thing I mean component
yeah, remove the recnet image component from the one that has the canvas component and move that to be a child
alr easy enough
ima let u know if it works
tommorow🤑🙏
you must sync it manually with event receivers, senders, and definitions
rrs?
Or the ones in rr
rr
Alr so I just add a player definition or wut?
Or is there a rrs thingy majigger
for what?
The player definition
Ik how to use them
It's just what do i select is what I'm confused about
you need the event definition
yee
i never brought up the player definition board
Oh mb typo
So all 3 of the events or just 2
definition and reciever
you need all of those chips
the definition so you can send an event in the first place, sender to send that event with, and a receiver to actually listen to the event and then do stuff accordingly
yuzz
ok so for the definition I just select player or is there a secret
if you need everyone to see the same thing then you will need the target to be all
you also need to add a player property to the event definition
with event sender right?
heh😏
silly me
when I'm done setting ts (this)💔 up what do I hook it up with
to close it off the event receiver will use the created studio function to set the image to be that of the given player
ah
so I just hook up the event sender with what originally was hooked up to the function?
yes
Then it'll automatically execute the reciever got it🙏
do note that you will have to sync this manually for late joiners (late joiner = a player joining the instance after some event has already happened)
oh u mean when someone joins after like the game starts?
Eh
I should be fine
They need to enter a trigger for it to display their stats and profile
So I think I'll be ok
I'll let u know if it works
@livid cape what do i do with the player inputs and outputs
Do I just leave it as is?
you will need that for the chip that gets the pfp
Oh so I hook up my room index player with the event sender right?
well if your stuff is room index based sure
Alr do I clone the recievers and senders or do I need just one
you only need one receiver
and clone the senders
wherever you need them sure
Alr
So if I did it right, the event senders are hooked up to the room index get player and the senders have their outputs connected to the rrs function and one event reciever with only the player output hooked up
may i have a screenshot?
still, i would like to see with my own eyes that youve done it correctly and point out mistakes that need fixing
Alr
@livid cape
that room index get player is a redundant conversion when you can already get the player directly
wdym
youre converting a player to a room index and then back to a player
a little wasteful no?
eh idk
I wanted it to make sure that it knows who the 1st 2nd 3rd and 4th player are
theres really no point in that when you get the room index from the player
oh
so I can just hook up the player joined directly to what I had the room index get player hooked up to?
yes
@livid cape it works ty papa
Now...
How would I make a display that shows everyone a players pov
Using player forward camera or sum like tht
camera + render texture
I KNEW IT
completely forgot the texture I'm so dumbbb😭
do u know any tutorials I can follow i don't feel like doing ts
just google any unity tutorial for that
k
You can also use the Room Index Get Player chip
Or use Get All Players because I think that list outputs the order of players
No
you would need a list get element
it's not random it forms it's own list from whoever recently joins
and I would have to change that element from 0 to 3
( rr elements don't really make sense bc player 1 is technically player 0 soooo yeah)
Because computers start counting from 0, not 1. It’s not exclusive to rr.
Not if I add 1 to the start of it and use that as context!
I'm 13 dawg take it easy😭🙏
13 is the perfect age to learn this shi
I didn’t start getting like decent at circuits until I was 14/15
Ye ik I've been doing it for a year I'm already great at it I just don't know any ai at all
And I'm learning rrs
You don’t need to worry about AI
It’s good to learn RR AI
But you won’t need to know actual AI
no ik this but I'm making a game so I kinda do
And tutorials can work
No
Are you using goblin AI
Yuzz💔🙏
Oh that’s not what I was talking about lol
ouh
Dijkstra and A* 🥲
Me when pathfinder
Do this entire complicated logic detection system to make custom AI
Or
Pathfinder go brr
I still wanna learn it but it already takes an advanced Circuiteer to teach you
And finding one that wants to dedicate time is even harder
It’s a shame people still refuse to realise how advanced 2.0 is
rooms 2.0 is amazing but apparently the building inside is bugged
honestly at the rate rooms2 has been getting fixed recently, give it some time and it’ll be pure gold to use
I’ve noticed issues tend to arise when building with multiple people, although I tend to build solo and haven’t found much issues
seems most issues are relating to multiplayer
literally trying spending the whole month of march just dropping rooms 2.0 games
yeah that especially
All I know is I have 1080 weapon models stored in rooms2 with 0 frame drops even on mobile, rooms1 can’t do that lol
I'm not dumb
But I did things in rooms before 2.0 and I've already accumulated a decent amount of visits so I'm not importing subrooms
Now rr can't fix shit in regular rr rooms
Even text is bugged which is a huge inconvenience
Is text being bugged making your room unplayable?
Yuzz💔
Bc it's not neoning.
Which makes it look coel😭✌️💔
if you rely on cool factor for text, I think there’s bigger issues at hand than the text not being neon
but that’s just my own view I suppose
What would I know anyways, I don’t build
Precisely!
Builders r struggling out here mane💔🙏
let me guess players that join dont see it?
Yes
wait
bc it's synced now I just need to check and make sure it works for new joiners
@livid cape now it just displays it for all the empty spots and when a new player joins itll do the same thing
I hate my life
what
when the display gets activated, it displays for all of the empty slots.
Then if someone else triggers it, itll also overwrite everything.
At least its synced
the trick here is to use a switch in the function to set the image of only one recnet image component at a time
execution integer switch?
no, in the studio function itself
no the curcuits are hooked up to a event reciever which is set to the event senders status
And the event sender itself is hooked up to a execution integer switch
yeah but how are you gonna set them individually?
do you have separate studio functions that sets one of them or have a switch in the studio function that sets only one of them depending on the index?
Ye I have 4 canvases and 4 functions
Theres an integer switch that all goes to one sender
lets see the studio functions then
@livid cape it works ty for the help!