Skip to content

Commit

Permalink
fixed #62 (#40, #25, #55, #52), fixed #60 fixed #58
Browse files Browse the repository at this point in the history
  • Loading branch information
Monitor221hz committed Jan 3, 2024
1 parent 1a75892 commit 46691ff
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 271 deletions.
19 changes: 16 additions & 3 deletions PandoraPlus/MVVM/ViewModel/EngineViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ public EngineViewModel(IModInfoProvider modinfoProvider)
CultureInfo.CurrentCulture = culture;

preloadTask = Task.Run(Engine.PreloadAsync);

}
public async Task LoadAsync()
{
List<IModInfo> modInfos = new List<IModInfo>();


List<IModInfo> modInfos = new List<IModInfo>();
#if DEBUG
modInfos = await modinfoProvider?.GetInstalledMods("C:\\Games\\Skyrim Modding\\Creation Tools\\Skyrim.Behavior.Tool\\PandoraTEST\\Pandora_Engine\\mod")!;
#endif
Expand All @@ -112,7 +113,7 @@ public async Task LoadAsync()
modInfos = modInfos.OrderBy(m => m.Priority == 0).ThenBy(m => m.Priority).ToList();

foreach(var modInfo in modInfos) { Mods.Add(modInfo); }

await WriteLogBoxLine("Mods loaded.");
}

public void Exit(object? p)
Expand Down Expand Up @@ -212,6 +213,18 @@ private async void LaunchEngine(object? parameter)
await preloadTask;
List<IModInfo> activeMods = GetActiveModsByPriority();

IModInfo? baseModInfo = Mods.Where(m => m.Code == "pandora").FirstOrDefault();

if (baseModInfo == null) { await WriteLogBoxLine("FATAL ERROR: Pandora Base does not exist. Ensure the engine was installed properly and data is not corrupted."); return; }
if (!baseModInfo.Active)
{
baseModInfo.Active = true;
activeMods.Add(baseModInfo);
}
baseModInfo.Priority = uint.MaxValue;



Stopwatch timer = Stopwatch.StartNew();

await Task.Run(async() => { await Engine.LaunchAsync(activeMods); });
Expand Down
202 changes: 0 additions & 202 deletions PandoraPlus/Nemesis_Engine/mod/colis/magicbehavior/#0077.txt

This file was deleted.

16 changes: 6 additions & 10 deletions PandoraPlus/PandoraPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

<ItemGroup>
<Folder Include="MVVM\Model\Interface\" />
<Folder Include="Nemesis_Engine\mod\colis\magicbehavior\" />
<Folder Include="Pandora_Engine\Skyrim\Process\" />
<Folder Include="Patch\Havok\" />
<Folder Include="Patch\Patchers\Interface\Variants\" />
Expand All @@ -84,15 +83,6 @@
</ItemGroup>

<ItemGroup>
<None Update="Nemesis_Engine\mod\colis\magicbehavior\#0077.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Nemesis_Engine\mod\evfmgo\magicbehavior\#0077.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Nemesis_Engine\mod\tdmv\magicbehavior\#0077.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -123,6 +113,12 @@
<None Update="Pandora_Engine\mod\pandora\info.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Pandora_Engine\mod\pandora\magicbehavior\#0077.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Pandora_Engine\mod\pandora\magicmountedbehavior\#0071.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Pandora_Engine\Skyrim\Template\actors\ambient\chicken\behaviors\chickenbehavior.hkx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
4 changes: 2 additions & 2 deletions PandoraPlus/Pandora_Engine/mod/pandora/info.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Pandora Base
author=Shikyo Kira & Monitor144hz
name=Pandora Base (REQUIRED)
author=Monitor144hz
site=null
auto=null
hidden=true
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@
<hkcstring>arrowDetach</hkcstring>
<hkcstring>attackStop</hkcstring>
<hkcstring>SneakSprintStartRoll</hkcstring>
<!-- MOD_CODE ~evfmgo~ OPEN -->
<hkcstring>PIE</hkcstring>
<!-- CLOSE -->
</hkparam>
<hkparam name="attributeNames" numelements="0"></hkparam>
<hkparam name="variableNames" numelements="81">
Expand Down Expand Up @@ -134,7 +131,11 @@
<hkcstring>IsShouting</hkcstring>
<hkcstring>iState</hkcstring>
<hkcstring>iState_NPCDefault</hkcstring>
<!-- MOD_CODE ~pandora~ OPEN -->
<hkcstring> iState_NPCSneaking</hkcstring>
<!-- ORIGINAL -->
<hkcstring> iState_NPCSneaking</hkcstring>
<!-- CLOSE -->
<hkcstring>InDualMagicState</hkcstring>
<hkcstring>iDualMagicState</hkcstring>
<hkcstring>bMLh_Ready</hkcstring>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<hkobject name="#0077" class="hkbBehaviorGraphStringData" signature="0xc713064e">
<hkparam name="eventNames" numelements="97">
<hkobject name="#0071" class="hkbBehaviorGraphStringData" signature="0xc713064e">
<hkparam name="eventNames" numelements="95">
<hkcstring>staggerStop</hkcstring>
<hkcstring>MRh_Equipped_Event</hkcstring>
<hkcstring>shoutStop</hkcstring>
<hkcstring>shoutStart</hkcstring>
<hkcstring>moveStop</hkcstring>
<hkcstring>moveStart</hkcstring>
<hkcstring>SneakStop</hkcstring>
<hkcstring>SneakStart</hkcstring>
<hkcstring>turnStop</hkcstring>
Expand Down Expand Up @@ -91,15 +89,15 @@
<hkcstring>BeginCastVoice</hkcstring>
<hkcstring>NPCshoutStart</hkcstring>
<hkcstring>bowZoomStart</hkcstring>
<hkcstring>Event00</hkcstring>
<hkcstring>SoundPlay.WPNBowZoomIn</hkcstring>
<hkcstring>bowReset</hkcstring>
<hkcstring>arrowDetach</hkcstring>
<hkcstring>attackStop</hkcstring>
<hkcstring>SneakSprintStartRoll</hkcstring>
<hkcstring>MC_shoutStart</hkcstring>
</hkparam>
<hkparam name="attributeNames" numelements="0"></hkparam>
<hkparam name="variableNames" numelements="81">
<hkparam name="variableNames" numelements="79">
<hkcstring>blendDefault</hkcstring>
<hkcstring>blendMove1stP</hkcstring>
<hkcstring>blendMoveStop</hkcstring>
Expand All @@ -120,7 +118,6 @@
<hkcstring>i1stPerson</hkcstring>
<hkcstring>iSyncSprintState</hkcstring>
<hkcstring>iIsInSneak</hkcstring>
<hkcstring>iSyncIdleLocomotion</hkcstring>
<hkcstring>bMRh_Ready</hkcstring>
<hkcstring>staggerMagnitude</hkcstring>
<hkcstring>IsStaggering</hkcstring>
Expand All @@ -131,7 +128,11 @@
<hkcstring>IsShouting</hkcstring>
<hkcstring>iState</hkcstring>
<hkcstring>iState_NPCDefault</hkcstring>
<!-- MOD_CODE ~pandora~ OPEN -->
<hkcstring> iState_NPCSneaking</hkcstring>
<!-- ORIGINAL -->
<hkcstring> iState_NPCSneaking</hkcstring>
<!-- CLOSE -->
<hkcstring>InDualMagicState</hkcstring>
<hkcstring>iDualMagicState</hkcstring>
<hkcstring>bMLh_Ready</hkcstring>
Expand Down Expand Up @@ -180,19 +181,11 @@
<hkcstring>Pitch</hkcstring>
<hkcstring>BowAimOffsetHeading</hkcstring>
<hkcstring>BowAimOffsetPitch</hkcstring>
<hkcstring>bVoiceReady</hkcstring>
<!-- MOD_CODE ~tdmv~ OPEN -->
<hkcstring>tdmHeadtrackingBehavior</hkcstring>
<hkcstring>TDM_LockRotation</hkcstring>
<!-- CLOSE -->
</hkparam>
<hkparam name="characterPropertyNames" numelements="7">
<hkparam name="characterPropertyNames" numelements="4">
<hkcstring>LeftArm</hkcstring>
<hkcstring>UpperBody</hkcstring>
<hkcstring>ExcludeRootAndCamera</hkcstring>
<hkcstring>Hands</hkcstring>
<hkcstring>MRhFavorBoneSwitch</hkcstring>
<hkcstring>MLhFavorBoneSwitch</hkcstring>
<hkcstring>RightArm</hkcstring>
</hkparam>
</hkobject>
</hkobject>
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void SplitAnimSetDataSingleFile()
public void MergeAnimSetDataSingleFile()
{
if (outputAnimSetDataSingleFile.Exists) { outputAnimSetDataSingleFile.Delete(); }
if (outputAnimSetDataSingleFile.Directory != null && !outputAnimSetDataSingleFile.Directory.Exists) { outputAnimSetDataSingleFile.Directory.Create(); }

using (var writeStream = outputAnimSetDataSingleFile.OpenWrite())
{
Expand Down
Loading

0 comments on commit 46691ff

Please sign in to comment.