Narazaka / AvatarMenuCreaterForMA

Easily create a VRChat avatar menu with modular avatars
https://avatar-menu-creator-for-ma.vrchat.narazaka.net/
zlib License
31 stars 1 forks source link

Transform設定時のinternal error #19

Closed sitorasu closed 4 months ago

sitorasu commented 4 months ago

とても便利なツールをありがとうございます。Transform設定時のinternal errorに遭遇したので報告します。

症状

ビルド時に以下のエラーが発生します。

System.Collections.Generic.KeyNotFoundException: The given key '0' was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <27124aa0e30a41659b903b822b959bc7>:0 
  at net.narazaka.avatarmenucreator.editor.CreateAvatarChooseMenu.SetTransformCurve (System.Collections.Generic.List`1[T] choices, System.String path, System.String property, net.narazaka.avatarmenucreator.collections.instance.IntVector3Dictionary value) [0x00007] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Editor\CreateAvatarChooseMenu.cs:187 
  at net.narazaka.avatarmenucreator.editor.CreateAvatarChooseMenu.CreateAssets (System.String baseName, System.Collections.Generic.IEnumerable`1[T] children) [0x0045c] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Editor\CreateAvatarChooseMenu.cs:69 
  at net.narazaka.avatarmenucreator.components.editor.AvatarMenuCreatorPlugin+<>c.<Configure>b__4_0 (nadena.dev.ndmf.BuildContext ctx) [0x0001c] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Components\Editor\AvatarMenuCreatorPlugin.cs:23 
  at nadena.dev.ndmf.AnonymousPass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Fluent\Pass.cs:42 
  at nadena.dev.ndmf.ConcretePass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Solver\PluginResolver.cs:36 
  at nadena.dev.ndmf.BuildContext.RunPass (nadena.dev.ndmf.ConcretePass pass) [0x00124] in .\Packages\nadena.dev.ndmf\Editor\API\BuildContext.cs:350 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <27124aa0e30a41659b903b822b959bc7>:0 
  at net.narazaka.avatarmenucreator.editor.CreateAvatarChooseMenu.SetTransformCurve (System.Collections.Generic.List`1[T] choices, System.String path, System.String property, net.narazaka.avatarmenucreator.collections.instance.IntVector3Dictionary value) [0x00007] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Editor\CreateAvatarChooseMenu.cs:187 
  at net.narazaka.avatarmenucreator.editor.CreateAvatarChooseMenu.CreateAssets (System.String baseName, System.Collections.Generic.IEnumerable`1[T] children) [0x0045c] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Editor\CreateAvatarChooseMenu.cs:69 
  at net.narazaka.avatarmenucreator.components.editor.AvatarMenuCreatorPlugin+<>c.<Configure>b__4_0 (nadena.dev.ndmf.BuildContext ctx) [0x0001c] in .\Packages\net.narazaka.vrchat.avatar-menu-creater-for-ma\Components\Editor\AvatarMenuCreatorPlugin.cs:23 
  at nadena.dev.ndmf.AnonymousPass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Fluent\Pass.cs:42 
  at nadena.dev.ndmf.ConcretePass.Execute (nadena.dev.ndmf.BuildContext context) [0x00000] in .\Packages\nadena.dev.ndmf\Editor\API\Solver\PluginResolver.cs:36 
  at nadena.dev.ndmf.BuildContext.RunPass (nadena.dev.ndmf.ConcretePass pass) [0x00124] in .\Packages\nadena.dev.ndmf\Editor\API\BuildContext.cs:350 

再現条件

  1. ねこアイマスク(無料です)をヒエラルキーのアバターの下に追加
  2. AvatarMenuCreatorを開き下記画像の設定でCreate
  3. Unityの再生ボタンを押してPlayモードに入る

※Transformの数値(特に末尾要素、画像で言うとOption2)に0が多いと起きがちな気がします。

設定

Narazaka commented 4 months ago

@sitorasu ご報告ありがとうございました。1.19.3で修正しました。