fix(register): use a valid default avatar figure
The starter look for a new account was `hr-100-.hd-180-1...`, whose empty hair colour slot is rejected by the imager with 400 "Invalid figure format". Every player who registered without a look therefore got a broken avatar. Add the missing colour slot (`hr-100-1`), which the imager renders.
This commit is contained in:
1 parent
73005a3c05
commit
ef2f8c30f0
3 files changed
+5
-2
No files matched your search
@@ -169,7 +169,10 @@ const ZOD_MESSAGE_CODES: Record<string, RegisterErrorCode> = {
|
||||
};
|
||||
|
||||
// A valid starter Habbo figure so the avatar renders in-client immediately.
|
||||
const DEFAULT_LOOK = "hr-100-.hd-180-1.ch-255-66.lg-280-110.sh-305-62";
|
||||
// The hair part needs a colour slot (`hr-100-1`, not `hr-100-`) or the imager
|
||||
// rejects the whole figure with 400 "Invalid figure format" and every avatar
|
||||
// for the user renders broken.
|
||||
const DEFAULT_LOOK = "hr-100-1.hd-180-1.ch-255-66.lg-280-110.sh-305-62";
|
||||
|
||||
export interface RegisterState {
|
||||
error: string | null;
|
||||
|
||||
Reference in new issue
Block a user