A Hat in Time

A Hat in Time

252 ratings
Online Party Cosmetic Items (JSON Update)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
39.356 MB
24 Mar, 2020 @ 1:19pm
25 Jun @ 3:01pm
84 Change Notes ( view )

Subscribe to download
Online Party Cosmetic Items (JSON Update)

In 1 collection by Shararamosh
Shararamosh's Script-only Mods
9 items
Description
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 Comments
Shararamosh  [author] 23 Jul, 2022 @ 9:49pm 
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 Jul, 2022 @ 3:39pm 
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 Jul, 2022 @ 11:20am 
Hm, guess i could try to look into that, thanks for hint.
Shararamosh  [author] 21 Jul, 2022 @ 11:16am 
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 Jul, 2022 @ 10:53am 
Thematically? Possesed doll that would float neat you. Technically - a model that would change based on if player hat girl or bow kid
Shararamosh  [author] 21 Jul, 2022 @ 10:49am 
To be honest, I don't understand what you're trying to do.
Genlis_Tin 21 Jul, 2022 @ 10:02am 
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 Jul, 2022 @ 6:24pm 
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 Jul, 2022 @ 11:15am 
Here the images again, where i wrote some explanation to certain cases https://imgur.com/a/0M16JIA
Genlis_Tin 19 Jul, 2022 @ 11:08am 
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.