Skip to content

Commit 97416b3

Browse files
committed
ver 1.1.1
1 parent 86a83d3 commit 97416b3

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

ValheimVRM/MainPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class MainPlugin : BaseUnityPlugin
1010
{
1111
public const string PluginGuid = "com.yoship1639.plugins.valheimvrm";
1212
public const string PluginName = "ValheimVRM";
13-
public const string PluginVersion = "1.1.0.0";
13+
public const string PluginVersion = "1.1.1.0";
1414

1515
void Awake()
1616
{

ValheimVRM/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ namespace ValheimVRM
99
{
1010
static class Settings
1111
{
12-
public static readonly string ValheimVRMDir = Environment.CurrentDirectory + @"\ValheimVRM";
12+
public static string ValheimVRMDir => Path.Combine(Environment.CurrentDirectory, "ValheimVRM");
1313

14-
public static string PlayerSettingsPath(string playerName) => ValheimVRMDir + $"/settings_{playerName}.txt";
14+
public static string PlayerSettingsPath(string playerName) => Path.Combine(ValheimVRMDir, $"settings_{playerName}.txt");
1515
private static Dictionary<string, string[]> playerSettings = new Dictionary<string, string[]>();
1616

1717
public static void AddSettings(string playerName, string[] settings)

ValheimVRM/VRMAnimationSync.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ private float CalcFootSub()
8484
-496559199,
8585
};
8686

87+
void Update()
88+
{
89+
if (!ragdoll)
90+
{
91+
for (var i = 0; i < 55; i++)
92+
{
93+
var orgTrans = orgAnim.GetBoneTransform((HumanBodyBones)i);
94+
var vrmTrans = vrmAnim.GetBoneTransform((HumanBodyBones)i);
95+
96+
if (i > 0 && orgTrans != null && vrmTrans != null)
97+
{
98+
orgTrans.position = vrmTrans.position;
99+
}
100+
}
101+
}
102+
}
87103

88104
void LateUpdate()
89105
{

ValheimVRM/ValheimVRM.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFramework>net462</TargetFramework>
6-
<Version>1.1.0.0</Version>
7-
<AssemblyVersion>1.1.0.0</AssemblyVersion>
6+
<Version>1.1.1.0</Version>
7+
<AssemblyVersion>1.1.1.0</AssemblyVersion>
88
</PropertyGroup>
99

1010
<ItemGroup>

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ <h3 class="title is-3">
231231
<h3 class="title is-3">
232232
更新履歴
233233
</h3>
234+
<label class="label">ver 1.1.1</label>
235+
<ul>
236+
<li>装備が振動する問題を修正</li>
237+
<li>一部PC環境で設定値が正しく読み込めない問題を修正</li>
238+
<li>後ろ装備(アイテム)のオフセット位置を調整できる設定項目を追加</li>
239+
</ul>
234240
<label class="label">ver 1.1.0</label>
235241
<ul>
236242
<li>身長の低いキャラクタでも問題なくプレイできる様に修正</li>

0 commit comments

Comments
 (0)