A Hat in Time

A Hat in Time

Online Party Cosmetic Items (JSON Update)
Komentarzy: 37
Shararamosh  [autor] 23 lipca 2022 o 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 lipca 2022 o 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 lipca 2022 o 11:20 
Hm, guess i could try to look into that, thanks for hint.
Shararamosh  [autor] 21 lipca 2022 o 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 lipca 2022 o 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  [autor] 21 lipca 2022 o 10:49 
To be honest, I don't understand what you're trying to do.
Genlis_Tin 21 lipca 2022 o 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 lipca 2022 o 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 lipca 2022 o 11:15 
Here the images again, where i wrote some explanation to certain cases https://imgur.com/a/0M16JIA
Genlis_Tin 19 lipca 2022 o 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.
Shararamosh  [autor] 19 lipca 2022 o 7:52 
You can check.
But I will check myself too anyway.
Genlis_Tin 19 lipca 2022 o 2:34 
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  [autor] 18 lipca 2022 o 9:22 
Okay, I will check and try to fix the issue.
Genlis_Tin 18 lipca 2022 o 9:12 
Nope, only big mods i had at the moment were online plus, Player Select Menu and this mod.
Shararamosh  [autor] 18 lipca 2022 o 8:55 
Do you happen to have Character Creator installed?
Genlis_Tin 18 lipca 2022 o 7:55 
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  [autor] 17 lipca 2022 o 11:40 
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 lipca 2022 o 11:09 
Or sorry for such blunt question, i will try first on something simple and then ask.
Genlis_Tin 17 lipca 2022 o 10:31 
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  [autor] 17 marca 2022 o 10:07 
???
Malodorous Flex 17 marca 2022 o 10:05 
Oh cool thanks.
Shararamosh  [autor] 4 stycznia 2022 o 16:20 
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  [autor] 19 grudnia 2021 o 13:24 
Holy heckles, I hope release 3.1 will work for sure.
Really tired of dealing with a peckhole named "Online Party".
Shararamosh  [autor] 17 grudnia 2021 o 8:52 
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  [autor] 16 grudnia 2021 o 17:43 
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  [autor] 15 września 2021 o 15:04 
No, Argle's Online Party Plus shares hat and hat flairs.
Nezzy 14 września 2021 o 14:39 
Does this share hat flairs as well?
Shararamosh  [autor] 4 września 2021 o 9:00 
Version 2.0 featuing JSON data transfer and bug fixes was released!
Shararamosh  [autor] 2 września 2021 o 9:22 
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  [autor] 24 marca 2021 o 17:42 
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 marca 2020 o 1:36 
Your mods allways surprise me!
ImmenseShoutmon 24 marca 2020 o 20:35 
yes
Lain32 24 marca 2020 o 17:32 
Let see how much more my old Xeon X5492 can do.
retborgor 24 marca 2020 o 17:26 
yay another mod for my poor CPU getting pain
Shararamosh  [autor] 24 marca 2020 o 16:00 
I have not heard of such mod but you can use a "summon" console command to spawn it.
Smash_Bash 24 marca 2020 o 14:04 
Does anyone know of a mod which places a shade dispenser in the Spaceship?
AlexBW145 24 marca 2020 o 14:00 
this is better.