Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case Cafe (a) and (b) organization for idle/talking emotes is not supported #84

Open
Crystalwarrior opened this issue Sep 7, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Crystalwarrior
Copy link

This folder structure is not supported by WebAO:
base/characters/SG/Rintaro Okabe/
base/characters/SG/Rintaro Okabe/(a)/

Char.ini:

[Options]
name=Phoenix
showname=Rintaro
side=wit
gender=Male

[Emotions]
number=23
1=Neutral#-#neutral#0#
2=Happy#-#happy#0#
3=Smug#-#smug#0#
4=Sad#-#sad#0#
5=Angry#-#angry#0#
6=Pissed#-#pissed#0#
7=Depressed#-#depressed#0#
8=Tired#-#tired#0#
9=Pained#-#pained#0#
10=Pose_neutral#-#pose_neutral#0#
11=Pose_happy#-#pose_happy#0#
12=Pose_smug#-#pose_smug#0#
13=Pose_sad#-#pose_sad#0#
14=Pose_tired#-#pose_tired#0#
15=Pose_angry#-#pose_angry#0#
16=Pose_scared#-#pose_scared#0#
17=Phone_neutral#-#phone_neutral#0#
18=Phone_happy#-#phone_happy#0#
19=Phone_smug#-#phone_smug#0#
20=Phone_sad#-#phone_sad#0#
21=Phone_angry#-#phone_angry#0#
22=Phone_alarmed#-#phone_alarmed#0#
23=Phone_scared#-#phone_scared#0#

This should work. KFO is not the only server to handle characters this way - I believe Case Cafe handles these characters this way as that's where I got the idea to implement such support into the client.

Relevant client code:
https://github.com/AttorneyOnline/AO2-Client/blob/74d01e81fbcb9e423cd18ee90eacddbb47f01b14/src/aolayer.cpp#L173-L185

Relevant webAO code:

webAO/webAO/client.js

Lines 2243 to 2258 in f9b62a9

if (this.chatmsg.other_name) {
this.setEmote(pairName,pairEmote,"(a)",true);
pairLayers.style.opacity = 1;
} else {
pairLayers.style.opacity = 0;
}
this.setEmote(charName,charEmote,"(b)",false);
charLayers.style.opacity = 1;
if (this.textnow === this.chatmsg.content) {
this.setEmote(charName,charEmote,"(a)",false);
charLayers.style.opacity = 1;
waitingBox.style.opacity = 1;
this._animating = false;
clearTimeout(this.updater);

@stonedDiscord
Copy link
Member

i do not support this hack just to satisfy someones folder OCD

@Crystalwarrior
Copy link
Author

dude the client works this way, if you had a problem you should've said so in the PR for it

@oldmud0
Copy link
Member

oldmud0 commented Sep 18, 2021

sd moment

@Crystalwarrior
Copy link
Author

manifest when 😳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants