A Hat in Time

A Hat in Time

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