#How do I use the chip "player get profile image" with rrs

1 messages · Page 1 of 1 (latest)

deft ridge
#

So basically in my game I'm gonna have a list which displays a players status if they're dead or alive. I figured that part out.
But now I want it to display their profile next to their name with rrs.
Does anyone know how I can do this. Also I have a fair ammout of knowledge with rrs already.

charred tinsel
#

Studio Functions i’m assuming

deft ridge
#

Anything else?

livid cape
#

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

deft ridge
#

Do I create an empty canvas?

signal karma
#

you add it to an object

deft ridge
#

not the canvas part, the component part

deft ridge
#

Or just right click on a canvas

livid cape
#

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)

deft ridge
#

Ok then after that do I just upload it?

livid cape
#

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

deft ridge
deft ridge
#

@livid cape

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

deft ridge
#

whats a studio function?💔

livid cape
deft ridge
#

I've already uploaded it btw

livid cape
#

did you test it in-game first before uploading?

deft ridge
#

surely it doesn't matter right?

livid cape
#

if you dont have rr+ and need to upload alot then that will be a problem

deft ridge
#

I've already uploaded

livid cape
#

you have a limited amount of builds per day without rr+

deft ridge
#

It should work now tho?

livid cape
#

if you did things right yes

deft ridge
#

idk if using a canvas works bc pressing the execution doesn't work omds😑

livid cape
#

image of how youve setup the studio function and the hierarchy please

livid cape
#

the thing that has all the objects in it in a big list

deft ridge
#

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

deft ridge
livid cape
#

just incase

#

also where is the image object in that hierarchy?

deft ridge
livid cape
#

no i mean a separate object that is a child of the canvas

deft ridge
#

I added a rec net component to it

deft ridge
#

I don't think I made a child.

livid cape
#

you should

deft ridge
#

that might be why

deft ridge
livid cape
#

yeah i believe so

deft ridge
#

by thing I mean component

livid cape
#

yeah, remove the recnet image component from the one that has the canvas component and move that to be a child

deft ridge
#

ima let u know if it works

#

tommorow🤑🙏

deft ridge
#

@livid cape it works

#

It's just not synced

#

only room authority can see it💔🙏

livid cape
#

you must sync it manually with event receivers, senders, and definitions

deft ridge
#

Or the ones in rr

livid cape
#

rr

deft ridge
#

Or is there a rrs thingy majigger

livid cape
#

for what?

deft ridge
#

Ik how to use them

#

It's just what do i select is what I'm confused about

livid cape
#

you need the event definition

deft ridge
livid cape
#

i never brought up the player definition board

deft ridge
#

So all 3 of the events or just 2

#

definition and reciever

livid cape
#

you need all of those chips

deft ridge
#

Just realized that was a stupid question

livid cape
#

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

deft ridge
#

ok so for the definition I just select player or is there a secret

livid cape
#

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

livid cape
#

obviously

#

its the only chip of the three that have that config option

deft ridge
#

silly me

#

when I'm done setting ts (this)💔 up what do I hook it up with

livid cape
#

to close it off the event receiver will use the created studio function to set the image to be that of the given player

deft ridge
#

so I just hook up the event sender with what originally was hooked up to the function?

livid cape
#

yes

deft ridge
#

Then it'll automatically execute the reciever got it🙏

livid cape
#

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)

deft ridge
livid cape
#

not just when the game starts

#

at any point after the event had happened

deft ridge
#

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

deft ridge
#

@livid cape what do i do with the player inputs and outputs

#

Do I just leave it as is?

livid cape
#

you will need that for the chip that gets the pfp

deft ridge
livid cape
#

well if your stuff is room index based sure

deft ridge
livid cape
#

you only need one receiver

deft ridge
livid cape
#

wherever you need them sure

deft ridge
#

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

livid cape
#

may i have a screenshot?

deft ridge
#

my curcuits r a bit messy

livid cape
#

still, i would like to see with my own eyes that youve done it correctly and point out mistakes that need fixing

livid cape
#

that room index get player is a redundant conversion when you can already get the player directly

livid cape
#

youre converting a player to a room index and then back to a player

#

a little wasteful no?

deft ridge
#

eh idk

deft ridge
livid cape
#

theres really no point in that when you get the room index from the player

deft ridge
#

so I can just hook up the player joined directly to what I had the room index get player hooked up to?

livid cape
#

yes

deft ridge
#

@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

livid cape
#

camera + render texture

deft ridge
#

completely forgot the texture I'm so dumbbb😭

#

do u know any tutorials I can follow i don't feel like doing ts

livid cape
#

just google any unity tutorial for that

deft ridge
urban vine
#

Or use Get All Players because I think that list outputs the order of players

deft ridge
#

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)

gilded mortar
mossy iron
deft ridge
urban vine
#

13 is the perfect age to learn this shi

#

I didn’t start getting like decent at circuits until I was 14/15

deft ridge
#

And I'm learning rrs

urban vine
#

It’s good to learn RR AI

#

But you won’t need to know actual AI

deft ridge
#

And tutorials can work

urban vine
#

No

deft ridge
#

But rr keeps updating the way ai works

#

So eventually they dont🤪

urban vine
#

Are you using goblin AI

deft ridge
urban vine
#

Oh that’s not what I was talking about lol

urban vine
#

Dijkstra and A* 🥲

mossy iron
#

Me when pathfinder

urban vine
#

Still need to learn

#

That too

mossy iron
#

Do this entire complicated logic detection system to make custom AI

Or

Pathfinder go brr

urban vine
#

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

deft ridge
#

I hate 2.0

#

It's a shame rr now only does things for 2.0 but not our og rooms😔

mossy iron
charred tinsel
mossy iron
#

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

charred tinsel
mossy iron
#

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

deft ridge
#

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

mossy iron
#

Is text being bugged making your room unplayable?

deft ridge
#

Bc it's not neoning.

#

Which makes it look coel😭✌️💔

mossy iron
#

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

deft ridge
#

Builders r struggling out here mane💔🙏

deft ridge
#

The sync didn't wurk😭

#

@livid cape

livid cape
#

let me guess players that join dont see it?

deft ridge
#

wait

#

bc it's synced now I just need to check and make sure it works for new joiners

deft ridge
#

@livid cape nvm it works tyyyyy

#

I just wired it wrong

deft ridge
#

@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

livid cape
#

what

deft ridge
# livid cape 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

livid cape
#

the trick here is to use a switch in the function to set the image of only one recnet image component at a time

livid cape
#

no, in the studio function itself

deft ridge
#

And the event sender itself is hooked up to a execution integer switch

livid cape
#

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?

deft ridge
#

Theres an integer switch that all goes to one sender

livid cape
#

lets see the studio functions then

deft ridge
#

And that one sender goes to all recievers

#

Okie

#

ima take a pic rq

deft ridge
#

@livid cape it works ty for the help!