Skip to content

Commit

Permalink
1.2.0.1
Browse files Browse the repository at this point in the history
・機能追加
・・「骨格」➞「模型」
・・・ランタイムモデルのインポート(RTMI)
・・・ランタイムモデルエクスポート(RTME)
・・「道具」➞「素材」
・・・マテリアルプロパティの変更
・・「複数尻尾」  
・・アルゴリズム追加「効率優先」  
・VRモードで動作確認済み
・バグを修正した
・・キャラクター雇用時のヌルポインタバグ
・・「複数尻尾」(BIP01パーツはできません)  
・カスタムオーダーメイド3D2本体Ver2.25.1対応
・カスタムオーダーメイド3D2.5本体Ver3.25.1対応
  • Loading branch information
mirabarukaso committed Dec 9, 2022
1 parent 7120254 commit 77cb046
Show file tree
Hide file tree
Showing 12 changed files with 1,464 additions and 174 deletions.
42 changes: 31 additions & 11 deletions #README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ http://kisskiss.tv/kiss/diary.php?no=558
エディットモードにてF7キー(変更可)を押すとGUIが起動します。
コントロールを押した場合に複数のメイドを選択します。

エラーが発生した場合は、config/emes.xmlを削除する。
エラーが発生した場合は、config\emes.xmlを削除する。

■設定ファイル(初回起動時の自動作成)
EMES.xml
Expand Down Expand Up @@ -154,20 +154,40 @@ v1.3 v1.1.0.0
・解決
①「サブ展開」
②「髪Hit」のチェックを外して「ボディヒット」を無効にする


■マテリアルプロパティの変更
「道具」➞「素材」
キーワードと値を使用してマテリアル プロパティを変更する

■ランタイムモデル エクスポートxインポート(RTME/RTMI)
「骨格」➞「模型」
これは実験的な機能です、精度はほぼ100%(例外「歯」「側髪」など)
・RTME
現在のメイドをテクスチャ付きのモデル(OBJ+MTL)ファイルとしてエクスポート
「Blender v2.79b」でインポートすることをおすすめします
・RTMI
エクスポートしたモデル(OBJ+MTL)がインポート
・出力フォルダ
BepinEx: \BepInEx\plugins\EnhancedMaidEditScene\RTME\
しばりす : \Sybaris\UnityInjector\RTME\


■更新履歴  
2022 11.18 Ver 1.1.1.4_VR (未定)  
2022 12.09 Ver 1.2.0.1
・機能追加
・・「骨格」➞「模型」
・・・ランタイムモデルのインポート(RTMI)
・・・ランタイムモデルエクスポート(RTME)
・・「道具」➞「素材」
・・・マテリアルプロパティの変更
・・「複数尻尾」  
・・アルゴリズム追加「効率優先」  
・VRモードで動作確認済み

2022 9.21 Ver 1.1.1.2 (未定)  
・バグを修正した
・・キャラクター雇用時のヌルポインタバグ

2022 9.21 Ver 1.1.1.1 (未定)  
・機能追加  
・「複数尻尾」  
・・バグを修正した(BIP01を使用しているパーツは「複数尻尾」機能できません)  
・・アルゴリズム追加「効率優先」  
・・「複数尻尾」(BIP01パーツはできません)  
・カスタムオーダーメイド3D2本体Ver2.25.1対応
・カスタムオーダーメイド3D2.5本体Ver3.25.1対応

2022 9.18 Ver 1.1.0.1
・機能追加
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,40 @@ v1.3 v1.1.0.0
・解決
①「サブ展開」
②「髪Hit」のチェックを外して「ボディヒット」を無効にする

##マテリアルプロパティの変更
「道具」➞「素材」
キーワードと値を使用してマテリアル プロパティを変更する

##ランタイムモデル エクスポートxインポート(RTME/RTMI)
「骨格」➞「模型」
これは実験的な機能です、精度はほぼ100%(例外「歯」「側髪」など)
・RTME
・・現在のメイドをテクスチャ付きのモデル(OBJ+MTL)ファイルとしてエクスポート
・・「Blender v2.79b」でインポートすることをおすすめします
・RTMI
・・エクスポートしたモデル(OBJ+MTL)がインポート
・出力フォルダ
・・BepinEx: \BepInEx\plugins\EnhancedMaidEditScene\RTME\
・・しばりす: \Sybaris\UnityInjector\RTME\

## 更新履歴
### 2022 12.09 Ver 1.2.0.1
・機能追加
・・「骨格」➞「模型」
・・・ランタイムモデルのインポート(RTMI)
・・・ランタイムモデルエクスポート(RTME)
・・「道具」➞「素材」
・・・マテリアルプロパティの変更
・・「複数尻尾」  
・・アルゴリズム追加「効率優先」  
・VRモードで動作確認済み
・バグを修正した
・・キャラクター雇用時のヌルポインタバグ
・・「複数尻尾」(BIP01パーツはできません)  
・カスタムオーダーメイド3D2本体Ver2.25.1対応
・カスタムオーダーメイド3D2.5本体Ver3.25.1対応

### 2022 9.18 Ver 1.1.0.1
・機能追加
・・骨格
Expand Down
Binary file modified sample1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sample2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 6 additions & 8 deletions src/COM3D2.EnhancedMaidEditScene.Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//c スペシャルリリース
//d 改造リリース
#if SYBARIS
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyTitle("Enhanced Maid Edit Scene")]
#endif
[assembly: AssemblyCopyright("Free @Mirabarukaso")]
Expand All @@ -33,11 +33,11 @@ namespace COM3D2.EnhancedMaidEditScene.Plugin
{
#if SYBARIS
[PluginFilter("COM3D2x64"), PluginFilter("COM3D2OHx64")]
[PluginName("EnhancedMaidEditScene"), PluginVersion("1.1.1.0")]
[PluginName("EnhancedMaidEditScene"), PluginVersion("1.2.0.0")]
#endif
#if BEPINEX
[BepInProcess("COM3D2x64"), BepInProcess("COM3D2OHx64")]
[BepInPlugin("org.bepinex.plugins.enhancedmaideditscene", "Enhanced Maid Edit Scene", "1.1.1.4")]
[BepInPlugin("org.bepinex.plugins.enhancedmaideditscene", "Enhanced Maid Edit Scene", "1.2.0.1")]
#endif

#if SYBARIS
Expand All @@ -48,12 +48,12 @@ public class EMES : BaseUnityPlugin
#endif
{
#region Constants
public const string PluginName = "EnhancedMaidEditScene";
public const string PluginName = "EnhancedMaidEditScene";
#if SYBARIS
public const string PluginVersion = "1.1.1.0";
public const string PluginVersion = "1.2.0.0";
#endif
#if BEPINEX
public const string PluginVersion = "1.1.1.4";
public const string PluginVersion = "1.2.0.1";
#endif

private readonly int iSceneEdit = 5; //メイン版エディットモード
Expand Down Expand Up @@ -486,8 +486,6 @@ public void PerformPose(Maid maid, EMES_Pose.PoseData poseData)
GameMain.Instance.ScriptMgr.LoadMotionScript(sloat, false, poseData.call_script_fil, poseData.call_script_label, maid.status.guid, string.Empty, true, true, false);
}
#endif


}

public void PerformPose(Maid maid, string ANM)
Expand Down
2 changes: 1 addition & 1 deletion src/CameraPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public void SetAllData(EMES_SceneManagement.ShaderDataNew shaderData)
public class CameraPlus
{
public const string PluginName = "CameraPlus Lite";
public const string Version = "1.1.1.0";
public const string Version = "1.1.2.0";

private EMES Super;

Expand Down
3 changes: 2 additions & 1 deletion src/EMES_Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,8 @@ public void Items_RemoveHandle(HandleEx hHandle)
Super.MaidIK.IK_RemoveGazePoint(GameMain.Instance.CharacterMgr.GetMaid(hHandle.sItemName), false);
}
}
else if (true == hHandle.sCategory.Equals("MyRoomCustomObject") || true == hHandle.sCategory.Equals("ExternalImage") || true == hHandle.sCategory.Contains("Direct_"))
else if (true == hHandle.sCategory.Equals("MyRoomCustomObject") || true == hHandle.sCategory.Equals("ExternalImage") || true == hHandle.sCategory.Equals("RTMIHandle")
|| true == hHandle.sCategory.Contains("Direct_") )
{
UnityEngine.Object.DestroyImmediate(hHandle.parentBone);
actionDestoryHandle(hHandle);
Expand Down
70 changes: 68 additions & 2 deletions src/EMES_MaidParts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ namespace COM3D2.EnhancedMaidEditScene.Plugin
{
public class EMES_MaidParts
{
private EMES Super;
private readonly List<string> PartsSlotIgnoreList = new List<string>()
public readonly List<string> PartsSlotIgnoreList = new List<string>()
{
//"body",
"moza"
};

private EMES Super;

#region public method
public EMES_MaidParts(EMES super)
{
Expand All @@ -39,6 +40,71 @@ public void Parts_Finalized()
{

}

public void EnumParts(HandleEx handle)
{
Component[] com = handle.parentBone.GetComponentsInChildren(typeof(Component));
for (int i = 0; i < com.Length; i++)
{
Type tCom = com[i].GetType();
#if DEBUG
Debuginfo.Log("Type [" + tCom + "] >> [" + (i + 1).ToString() + "] >>> " + com[i].name, 2);
#endif
string guid = System.Guid.NewGuid().ToString();
if (typeof(Transform) == tCom)
{
if (false == com[i].name.ToLower().EndsWith("nub") //不必要
&& false == com[i].name.StartsWith("_SM_")
&& false == com[i].name.StartsWith("Arm")
&& false == com[i].name.StartsWith("Hip_")
&& false == com[i].name.StartsWith("Foretwist")
&& false == com[i].name.StartsWith("Uppertwist")
&& false == com[i].name.StartsWith("Kata_")
&& false == com[i].name.StartsWith("Mune")
&& false == com[i].name.StartsWith("momo")
&& false == com[i].name.StartsWith("Reg")
&& false == com[i].name.StartsWith("Hara")
&& false == com[i].name.StartsWith("Skirt_P_") //DynamicSkirtBone BoneHair3.DynamicUpdate()なエラーの回避
//&& false == com[i].name.Contains("_yure_")
&& false == com[i].name.Contains("_SCL_")
&& false == com[i].name.Contains("Bip")
&& false == com[i].name.Contains("_HIDE_")
&& false == com[i].name.ToLower().Contains("twist") //不必要
&& false == com[i].name.ToLower().Contains("_pos") //不必要
&& false == com[i].name.ToLower().EndsWith("_end") //不必要
&& false == com[i].name.EndsWith("_DO_NOT_ENUM_") //不必要
//&& false == com[i].name.Equals("base") //不必要
//&& false == com[i].name.Equals("center")
//&& false == com[i].name.Equals("center2")
//&& false == com[i].name.Equals(handle.parentBone.name)
)
{
if (true == com[i].name.Contains("_yure_skirt")) //制御不能なボーンを非表示
{
if (true == com[i].name.Contains("_A_"))
Super.Items.Items_Sub_CreateHandle(guid + "_" + com[i].name, "[" + (i + 1).ToString() + "]T>" + com[i].name, "SubItemHandle", com[i].gameObject);
}
else
{
Super.Items.Items_Sub_CreateHandle(guid + "_" + com[i].name, "[" + (i + 1).ToString() + "]T>" + com[i].name, "SubItemHandle", com[i].gameObject);
}
}
}
else if (true == tCom.ToString().StartsWith("Dynamic"))
{
if (typeof(DynamicBone) == tCom) //髪、尻尾...
Super.Items.Items_Sub_CreateHandle(guid + "_" + com[i].name, "[" + (i + 1).ToString() + "]D>" + com[i].name, "SubItemHandle", com[i].gameObject);
}
else //MeshRenderer Renderer
{
Renderer render = com[i].gameObject.GetComponent<Renderer>();
if (null != render)
{
Super.Items.Items_Sub_CreateHandle(guid + "_" + com[i].name, "[" + (i + 1).ToString() + "]S>" + com[i].name, "SubItemHandle", com[i].gameObject);
}
}
}
}
#endregion

#region privage method
Expand Down
Loading

0 comments on commit 77cb046

Please sign in to comment.