Skip to content

Comments

Adds stub methods for AvatarScaling#99

Merged
momo-the-monster merged 4 commits intomainfrom
98-avatar-scaling-methods-missing-from-clientsim
Aug 17, 2023
Merged

Adds stub methods for AvatarScaling#99
momo-the-monster merged 4 commits intomainfrom
98-avatar-scaling-methods-missing-from-clientsim

Conversation

@momo-the-monster
Copy link
Collaborator

@momo-the-monster momo-the-monster commented Aug 2, 2023

Fixes NREs in SDK 3.2.2. Would be nice to actually Set and Get the values so Creators can test their logic in ClientSim, but this minimal implementation at least fixes the SDK so it doesn't show scary errors when you enter play mode.

@momo-the-monster momo-the-monster linked an issue Aug 2, 2023 that may be closed by this pull request
@momo-the-monster momo-the-monster force-pushed the 98-avatar-scaling-methods-missing-from-clientsim branch from ce811a5 to 7c2be69 Compare August 2, 2023 20:12
Copy link
Contributor

@Faxmashine Faxmashine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks like the errors have been resolved.

I made a few suggestions.

The SDK was giving me some trouble:

Packages\com.vrchat.clientsim\Runtime\System\ClientSimMain.cs(484,26): error CS0117: 'VRCPlayerApi' does not contain a definition for '_GetCurrentLanguage'

I had to remove these two lines in ClientSimMain.cs. It's probably unrelated.

//VRCPlayerApi._GetCurrentLanguage += ClientSimPlayerManager.GetCurrentLanguage;
//VRCPlayerApi._GetAvailableLanguages += ClientSimPlayerManager.GetAvailableLanguages;
            ```

momo-the-monster and others added 2 commits August 2, 2023 13:24
…nager.cs

Co-authored-by: Fax <117199600+Faxmashine@users.noreply.github.com>
…nager.cs

Co-authored-by: Fax <117199600+Faxmashine@users.noreply.github.com>
Copy link
Contributor

@Faxmashine Faxmashine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the errors I was getting are related to 3.2.3, then this is good to go.

@momo-the-monster
Copy link
Collaborator Author

The errors were caused because the main branch of ClientSim has some unreleased features in it regarding user languages (oops!). I reset this branch to remove those changes, and fixed up some other things as well - like requiring at least Worlds 3.2.2 so that the AvatarScaling functions exist in the VRCPlayer class, and incrementing the ClientSim version to prep for a release!

Copy link
Contributor

@Faxmashine Faxmashine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That did the trick!

@momo-the-monster momo-the-monster merged commit 2fe12a8 into main Aug 17, 2023
@momo-the-monster momo-the-monster deleted the 98-avatar-scaling-methods-missing-from-clientsim branch August 17, 2023 23:21
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avatar Scaling Methods missing from ClientSim

2 participants