A Hat in Time

A Hat in Time

281 arvostelua
Online Party Cosmetic Items (JSON Update)
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
19.996 MB
24.3.2020 klo 13.19
13.1. klo 2.58
88 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Online Party Cosmetic Items (JSON Update)

1 kokoelmassa, tekijä Shararamosh
Shararamosh's Script-only Mods
9 luomusta
Kuvaus
Feeling sad that you're not able to see your friends wearing these glorious shades from Dead Bird Studio? Or you feel sad that your friend can't share you a cookie even though he has it on his side? Well, now this problem is in the past! With this mod you and your friends will be able to see each other's badges and other cosmetic items like shades, cookie and earrings. The only requirement is for you and your friends to have this mod installed! This mod works with all types of cosmetic items (except for body, legs and hats which are already synced by Argle's Online Party Plus).
Starting with version 2.0 mod uses JSON strings[json.org] to transfer information about cosmetics and fixes quite a lot of bugs from previous versions.
Let the world know how stylish you are!
37 kommenttia
Shararamosh  [tekijä] 23.7.2022 klo 21.49 
CheckPlayerClass from Hat_Collectible_Skin can't compare class of Online Player - you have to make your own function.
Hat_GhostPartyPlayer's Player Class is in variable called PlayerVisualClass. If it's None, then it's Hat_Player_HatKid.
So the following chunk should work:


local Hat_GhostPartyPlayer gpp;
gpp = Hat_GhostPartyPlayer(ActorInstigator);
if (gpp != None)
{
if (gpp.PlayerVisualClass == None || gpp.PlayerVisualClass == class'Hat_Player_HatKid)
{
\\Do stuff for HK Online Player.
}
else if (class<Hat_Player_CoPartner>(gpp.PlayerVisualClass) != None)
{
\\Do stuff for BK Online Player.
}
else
{
\\Do stuff for other Online Player.
}
}


If you still need help, you can contact me on Discord: Шарарамош#7170.
Genlis_Tin 23.7.2022 klo 15.39 
Nope dosnt work either, dosnt sync up with other player.(also checkplayerclass is part of Collectible_Skin, not cosmetic_mics, had to copy function into my actor).

Is there really no way to fix the sync of "player skin color" value from your side?

Anyway sorry i wont bother you on the matter anymore, youre already did alot and im thankful, guess i will stick up with what i have.
Genlis_Tin 21.7.2022 klo 11.20 
Hm, guess i could try to look into that, thanks for hint.
Shararamosh  [tekijä] 21.7.2022 klo 11.16 
If this doll is a Cosmetic Item, then you can change her appearance inside Tick function.
Just make it check Player Class and change its appearance if it's different.
Genlis_Tin 21.7.2022 klo 10.53 
Thematically? Possesed doll that would float neat you. Technically - a model that would change based on if player hat girl or bow kid
Shararamosh  [tekijä] 21.7.2022 klo 10.49 
To be honest, I don't understand what you're trying to do.
Genlis_Tin 21.7.2022 klo 10.02 
Anyway, yeah, dosnt seem to sync in the player skin. Tried to make a thing in material which would get player skin value, compare with what hatkid skin should be and based on that changes cape color + makes hat/bow invisible. As well as skin of doll ain changing.
Again, sorry, but be neat if it could work.
https://imgur.com/a/0M16JIA
Genlis_Tin 19.7.2022 klo 18.24 
K, it is working now, thanks! Now actually feeling like trying to make something neat. :steamthumbsup:

only thing noticed was that player skin could not sync(was trying to make a silly shiva-like 6 hands), but weirdly didnt synced when switching to bow girl... not sure it will actually be needed, but be neat if that be synced too, up to you, ive asked plenty already and its already a good progress.
Genlis_Tin 19.7.2022 klo 11.15 
Here the images again, where i wrote some explanation to certain cases https://imgur.com/a/0M16JIA
Genlis_Tin 19.7.2022 klo 11.08 
K, it works... but only half of it. Seems like if player dye is a solid color it dosnt do anything and just makes it white, but when theres texture, like pizza dye or flames, THEN its working... It might actually be that "jank" i spoke of last time, since i only noticed it working when they changed to flames.