Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Campaign experimental into the Public version #37

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e9e5f46
Modifications to compile mod manager in Visual Studio 2015 Express Ed…
AndO3131 May 3, 2021
aed2c3c
Added button that will (hopefully) support expanded campaign features
AndO3131 May 4, 2021
7238676
Another attempt at modifying soulstorm code, but it's not working
AndO3131 May 5, 2021
8a438b7
Using DLL injection code created by ihack4falafel
AndO3131 May 5, 2021
6d3210b
Injection seems to work
AndO3131 May 6, 2021
5f925c1
Information in main manager window better reflects what is going on
AndO3131 May 6, 2021
73f1be1
C++ style DLL library included.
AndO3131 May 6, 2021
d0c99d4
DLL library rewritten as UNI_EXT.DLL
AndO3131 May 7, 2021
bb7f6c5
Working code that changes defeated races counter in memory.
AndO3131 May 7, 2021
191d253
Modified patch.cpp to allow for simple substitution of values
AndO3131 May 8, 2021
ed2a86a
Modified naming convention to UNIEXTDLL
AndO3131 May 8, 2021
efba821
Added soulstorm version checking system
AndO3131 May 8, 2021
72fed7a
Patch for maximum number of honor guard units displayed in metamap sc…
AndO3131 May 9, 2021
45d5157
A bit of cleanup.
AndO3131 May 9, 2021
7283b1e
Patch that increaes max honor guard units in campaign commander screen
AndO3131 May 9, 2021
db46c27
Fixed 'dow mod manager.ini' file save function
AndO3131 May 10, 2021
a3ca417
Added new entry 'deep_strike' to UI::SwfWidget::BindButtonClicked
AndO3131 May 12, 2021
280e0cb
SWF widget modifications not going according to plan
AndO3131 May 13, 2021
eefe869
First try at adding Microsoft Detours library
AndO3131 May 14, 2021
1d26d45
Detour code in DOW mod manager compiles, but entry point for 'DetourC…
AndO3131 May 14, 2021
eb735b0
Added DEF file, but exporting function 'DetourCreateProcessWithDllEx'…
AndO3131 May 15, 2021
45288c3
UNI_EXT.DLL compiles, but function 'DetourCreateProcessWithDllEx' cra…
AndO3131 May 15, 2021
167e21e
FINALLY added new fscommand - "deep_strike"
AndO3131 May 16, 2021
a9ab568
Function 'definitionButtonToggleArmyClicked' exported to UNI_EXT.dll …
AndO3131 May 17, 2021
37850d8
Tries at new function that runs action on model.
AndO3131 May 23, 2021
a16c392
Not crashing libary version of "definitionButtonInspectClicked" function
AndO3131 May 25, 2021
46c9894
Probably last try at running action on metamap.swf file
AndO3131 May 27, 2021
b80a238
Assembler function RunAction seems to flow to the end, but doesn't re…
AndO3131 Jun 3, 2021
e523dea
Sleep used in DLL Loader code
AndO3131 Jun 22, 2021
c72c0b6
Merge remote-tracking branch 'upstream/master' into campaign_experime…
AndO3131 Jun 22, 2021
d79a8ef
Small cleanup
AndO3131 Jun 22, 2021
83a62ff
Trying to solve missing 'take and hold' message in campaign.
AndO3131 Sep 4, 2021
6623c86
Merge remote-tracking branch 'upstream/master' into campaign_experime…
AndO3131 Sep 4, 2021
6d30e26
Fog remover for soulstorm steam version coded in UNI_EXT.dll
AndO3131 Sep 11, 2021
39c8e18
Metamap model motion has finally started working.
AndO3131 Sep 13, 2021
b0d8c06
Merge remote-tracking branch 'upstream/master' into campaign_experime…
AndO3131 Nov 14, 2021
9371030
Merge remote-tracking branch 'upstream/master' into campaign_experime…
AndO3131 Jul 27, 2022
b220d60
Some cleanup and information text.
AndO3131 Jul 30, 2022
3ec14ca
Little more cleanup.
AndO3131 Jul 30, 2022
e0f03e0
Tooltips when soulstorm is not detected should display correctly.
AndO3131 Aug 11, 2022
9e0cb9c
Check if UNI_EXT.DLL is present.
AndO3131 Aug 11, 2022
6bc81a7
"Detour" library references removed from project.
AndO3131 Aug 11, 2022
6f069c9
One last "detour" reference removed.
AndO3131 Aug 11, 2022
321ed59
Inlcuded project changes.
AndO3131 Aug 11, 2022
6ce3042
Some more project changing.
AndO3131 Aug 11, 2022
9068f26
Cleaning detour libraries once more.
AndO3131 Aug 11, 2022
e542ac7
This should finish project cleanup.
AndO3131 Aug 11, 2022
e126c3c
Removed SoulstormHandlers files.
AndO3131 Aug 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions DoW Mod Manager.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
# Visual Studio Version 17
VisualStudioVersion = 17.3.32804.467
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DoW Mod Manager", "DoW Mod Manager\DoW Mod Manager.csproj", "{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UNI_EXT", "UNI_EXT\UNI_EXT.vcxproj", "{67138EE0-0823-4524-9453-4E9892296669}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|x64.ActiveCfg = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|x64.Build.0 = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|x86.ActiveCfg = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Debug|x86.Build.0 = Debug|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|Any CPU.Build.0 = Release|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|x64.ActiveCfg = Release|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|x64.Build.0 = Release|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|x86.ActiveCfg = Release|Any CPU
{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}.Release|x86.Build.0 = Release|Any CPU
{67138EE0-0823-4524-9453-4E9892296669}.Debug|Any CPU.ActiveCfg = Debug|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Debug|x64.ActiveCfg = Debug|x64
{67138EE0-0823-4524-9453-4E9892296669}.Debug|x64.Build.0 = Debug|x64
{67138EE0-0823-4524-9453-4E9892296669}.Debug|x86.ActiveCfg = Debug|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Debug|x86.Build.0 = Debug|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Release|Any CPU.ActiveCfg = Release|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Release|Any CPU.Build.0 = Release|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Release|x64.ActiveCfg = Release|x64
{67138EE0-0823-4524-9453-4E9892296669}.Release|x64.Build.0 = Release|x64
{67138EE0-0823-4524-9453-4E9892296669}.Release|x86.ActiveCfg = Release|Win32
{67138EE0-0823-4524-9453-4E9892296669}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 2 additions & 1 deletion DoW Mod Manager/DoW Mod Manager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{071DFF9E-1A7F-4F94-A1CE-4B5CB931D8EE}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>DoW_Mod_Manager</RootNamespace>
<AssemblyName>DoW Mod Manager v2.3.1.0</AssemblyName>
<AssemblyName>DoW Mod Manager v2.4.0.0</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down Expand Up @@ -118,6 +118,7 @@
<Compile Include="SystemPerformanceManagerForm.Designer.cs">
<DependentUpon>SystemPerformanceManagerForm.cs</DependentUpon>
</Compile>
<Compile Include="UNIEXTDLLLoader.cs" />
<Compile Include="WinApiCalls.cs" />
<EmbeddedResource Include="AboutForm.resx">
<DependentUpon>AboutForm.cs</DependentUpon>
Expand Down
6 changes: 4 additions & 2 deletions DoW Mod Manager/FogRemover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ private static bool CheckToggleMemory(int addr, byte[] checkVal, byte[] setVal,
{
byte[] lpBuffer = new byte[checkVal.Length];

if (!ReadProcessMemory(pHandle, addr, lpBuffer, lpBuffer.Length, out int lpNumberOfBytesRead)
int lpNumberOfBytesRead, lpflOldProtect, _;

if (!ReadProcessMemory(pHandle, addr, lpBuffer, lpBuffer.Length, out lpNumberOfBytesRead)
|| lpNumberOfBytesRead != lpBuffer.Length
|| !((IEnumerable<byte>)lpBuffer).SequenceEqual(checkVal))
return false;

VirtualProtectEx(pHandle, addr, setVal.Length, PAGE_EXECUTE_READWRITE, out int lpflOldProtect);
VirtualProtectEx(pHandle, addr, setVal.Length, PAGE_EXECUTE_READWRITE, out lpflOldProtect);
int returnCode = WriteProcessMemory(pHandle, addr, setVal, setVal.Length, out _) ? 1 : 0;

VirtualProtectEx(pHandle, addr, setVal.Length, lpflOldProtect, out _);
Expand Down
Binary file modified DoW Mod Manager/LatestStable/DoW Mod Manager.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion DoW Mod Manager/LatestStable/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.1.0
2.4.0.0
27 changes: 21 additions & 6 deletions DoW Mod Manager/ModManagerForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading