A Hat in Time

A Hat in Time

Online Party Cosmetic Items (JSON Update)
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.
Shararamosh  [author] 19 Jul, 2022 @ 7:52am 
You can check.
But I will check myself too anyway.
Genlis_Tin 19 Jul, 2022 @ 2:34am 
Sorry for bothering you with questions but i did noticed you were updating the mod... Should i see if stuff works, or will you write here when its better to check?
Shararamosh  [author] 18 Jul, 2022 @ 9:22am 
Okay, I will check and try to fix the issue.
Genlis_Tin 18 Jul, 2022 @ 9:12am 
Nope, only big mods i had at the moment were online plus, Player Select Menu and this mod.
Shararamosh  [author] 18 Jul, 2022 @ 8:55am 
Do you happen to have Character Creator installed?
Genlis_Tin 18 Jul, 2022 @ 7:55am 
Weirdly enough it dosnt. When testing very basic thing with friend we both been seeing eachother as white(1st image) while on our own worked fine(2nd) https://imgur.com/a/0M16JIA
Tho after some jank suddenly i could see dye on him, while he still seen my as white.
Shararamosh  [author] 17 Jul, 2022 @ 11:40am 
This mod actually reads colors and textures straight from PlayerDye material node and in case not enough data was read, it fills up remaining colors from Skin Class.
So to answer your question - yes, it is able.
Genlis_Tin 17 Jul, 2022 @ 11:09am 
Or sorry for such blunt question, i will try first on something simple and then ask.
Genlis_Tin 17 Jul, 2022 @ 10:31am 
Say, do your mod able to sync materials with player dye in them?

Im just thinking of trying to make something as simple as bandana, fingerless gloves... just cosmetic stuff you could combine with hats and such with them being dyable.
Asking cuz im afraid to spend effort for something that might not work(and im too much of soft brain to know online coding).
Shararamosh  [author] 17 Mar, 2022 @ 10:07am 
???
Malodorous Flex 17 Mar, 2022 @ 10:05am 
Oh cool thanks.
Shararamosh  [author] 4 Jan, 2022 @ 4:20pm 
The mod is finally fixed and works with newest version of the game!
Versions 3.2 and continuing now correctly attach cosmetics to online players.
Shararamosh  [author] 19 Dec, 2021 @ 1:24pm 
Holy heckles, I hope release 3.1 will work for sure.
Really tired of dealing with a peckhole named "Online Party".
Shararamosh  [author] 17 Dec, 2021 @ 8:52am 
The update is out. While I did test it a bit, there still may be issues that will be ironed out in next update.
Shararamosh  [author] 16 Dec, 2021 @ 5:43pm 
I've re-written mod scripts and utilized recently added Online Party player's meta data to hold list of Cosmetics instead of using Online Party Commands. What it means for you? It means that Cosmetics replication will be much more reliable and absolutely constant - there won't be cases when you see player missing cosmetics mid-changing skin. This new update will be released very soon.
Shararamosh  [author] 15 Sep, 2021 @ 3:04pm 
No, Argle's Online Party Plus shares hat and hat flairs.
Nezzy 14 Sep, 2021 @ 2:39pm 
Does this share hat flairs as well?
Shararamosh  [author] 4 Sep, 2021 @ 9:00am 
Version 2.0 featuing JSON data transfer and bug fixes was released!
Shararamosh  [author] 2 Sep, 2021 @ 9:22am 
Good news: the new version of the mod is in testing stage.
Bad news: Gosh, I hope it will leave this stage some day.
Shararamosh  [author] 24 Mar, 2021 @ 5:42pm 
I'm planning the next update that will fix most of the issues (wrong materials, some cosmetics not appearing). Though I can't say when it will be released - I want to use JSON to send data, which is a new file format for me to work with.
creper 25 Mar, 2020 @ 1:36am 
Your mods allways surprise me!
ImmenseShoutmon 24 Mar, 2020 @ 8:35pm 
yes
Lain32 24 Mar, 2020 @ 5:32pm 
Let see how much more my old Xeon X5492 can do.
retborgor 24 Mar, 2020 @ 5:26pm 
yay another mod for my poor CPU getting pain
Shararamosh  [author] 24 Mar, 2020 @ 4:00pm 
I have not heard of such mod but you can use a "summon" console command to spawn it.
Smash_Bash 24 Mar, 2020 @ 2:04pm 
Does anyone know of a mod which places a shade dispenser in the Spaceship?
AlexBW145 24 Mar, 2020 @ 2:00pm 
this is better.