Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 2b83ed3

Browse files
committed
Initial commit
0 parents  commit 2b83ed3

15 files changed

+1141
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
.vs/*
35+
*/Release/*
36+
*/Debug/*

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Spore-SpaceStageCrashFix.sln

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.33214.272
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Spore-SpaceStageCrashFix", "Spore-SpaceStageCrashFix\Spore-SpaceStageCrashFix.vcxproj", "{07FC5B61-B575-4207-B464-AFAE6AF3FC19}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{F057451A-1413-4D68-AF56-1BF529933420} = {F057451A-1413-4D68-AF56-1BF529933420}
9+
EndProjectSection
10+
EndProject
11+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Spore ModAPI", "..\..\..\..\..\Program Files (x86)\SporeModder FX\Spore ModAPI\Spore ModAPI\Spore ModAPI.vcxproj", "{F057451A-1413-4D68-AF56-1BF529933420}"
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|x86 = Debug|x86
16+
Release|x86 = Release|x86
17+
EndGlobalSection
18+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19+
{07FC5B61-B575-4207-B464-AFAE6AF3FC19}.Debug|x86.ActiveCfg = Debug|Win32
20+
{07FC5B61-B575-4207-B464-AFAE6AF3FC19}.Debug|x86.Build.0 = Debug|Win32
21+
{07FC5B61-B575-4207-B464-AFAE6AF3FC19}.Release|x86.ActiveCfg = Release|Win32
22+
{07FC5B61-B575-4207-B464-AFAE6AF3FC19}.Release|x86.Build.0 = Release|Win32
23+
{F057451A-1413-4D68-AF56-1BF529933420}.Debug|x86.ActiveCfg = Debug|Win32
24+
{F057451A-1413-4D68-AF56-1BF529933420}.Debug|x86.Build.0 = Debug|Win32
25+
{F057451A-1413-4D68-AF56-1BF529933420}.Release|x86.ActiveCfg = Release|Win32
26+
{F057451A-1413-4D68-AF56-1BF529933420}.Release|x86.Build.0 = Release|Win32
27+
EndGlobalSection
28+
GlobalSection(SolutionProperties) = preSolution
29+
HideSolutionNode = FALSE
30+
EndGlobalSection
31+
GlobalSection(ExtensibilityGlobals) = postSolution
32+
SolutionGuid = {2DD5FCB8-0E1A-43DE-8713-69A82F308182}
33+
EndGlobalSection
34+
EndGlobal
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#include "stdafx.h"
2+
#include "CheatToTestCrash.h"
3+
4+
CheatToTestCrash::CheatToTestCrash()
5+
{
6+
}
7+
8+
9+
CheatToTestCrash::~CheatToTestCrash()
10+
{
11+
}
12+
13+
14+
void CheatToTestCrash::ParseLine(const ArgScript::Line& line)
15+
{
16+
auto a = Simulator::SpacePlayerData::Get();
17+
18+
SporeDebugPrint("%x", a->mPlayerEmpireID);
19+
SporeDebugPrint("%b", a->mpPlayerEmpire != nullptr);
20+
//auto a = Simulator::SpacePlayerData::Get()->mpPlayerEmpire;
21+
//Simulator::SpacePlayerData::Get()->mpPlayerEmpire = nullptr;
22+
//Simulator::SpacePlayerData::Get()->mPlayerEmpireID = 0x0;
23+
SporeDebugPrint("%b", RelationshipManager.IsAllied((Simulator::cEmpire*)(nullptr),(Simulator::cEmpire*)(nullptr) ));
24+
// This method is called when your cheat is invoked.
25+
// Put your cheat code here.
26+
}
27+
28+
const char* CheatToTestCrash::GetDescription(ArgScript::DescriptionMode mode) const
29+
{
30+
if (mode == ArgScript::DescriptionMode::Basic) {
31+
return "This cheat does something.";
32+
}
33+
else {
34+
return "CheatToTestCrash: Elaborate description of what this cheat does.";
35+
}
36+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#pragma once
2+
3+
#include <Spore\BasicIncludes.h>
4+
5+
class CheatToTestCrash
6+
: public ArgScript::ICommand
7+
{
8+
public:
9+
CheatToTestCrash();
10+
~CheatToTestCrash();
11+
12+
// Called when the cheat is invoked
13+
void ParseLine(const ArgScript::Line& line) override;
14+
15+
// Returns a string containing the description. If mode != DescriptionMode::Basic, return a more elaborated description
16+
const char* GetDescription(ArgScript::DescriptionMode mode) const override;
17+
};
18+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
========================================================================
2+
DYNAMIC LINK LIBRARY : Spore_SpaceStageCrashFix Project Overview
3+
========================================================================
4+
5+
AppWizard has created this Spore_SpaceStageCrashFix DLL for you.
6+
7+
This file contains a summary of what you will find in each of the files that
8+
make up your Spore_SpaceStageCrashFix application.
9+
10+
11+
Spore_SpaceStageCrashFix.vcxproj
12+
This is the main project file for VC++ projects generated using an Application Wizard.
13+
It contains information about the version of Visual C++ that generated the file, and
14+
information about the platforms, configurations, and project features selected with the
15+
Application Wizard.
16+
17+
Spore_SpaceStageCrashFix.vcxproj.filters
18+
This is the filters file for VC++ projects generated using an Application Wizard.
19+
It contains information about the association between the files in your project
20+
and the filters. This association is used in the IDE to show grouping of files with
21+
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
22+
"Source Files" filter).
23+
24+
/////////////////////////////////////////////////////////////////////////////
25+
Other standard files:
26+
27+
StdAfx.h, StdAfx.cpp
28+
These files are used to build a precompiled header (PCH) file
29+
named Spore_SpaceStageCrashFix.pch and a precompiled types file named StdAfx.obj.
30+
31+
/////////////////////////////////////////////////////////////////////////////
32+
Other notes:
33+
34+
AppWizard uses "TODO:" comments to indicate parts of the source code you
35+
should add to or customize.
36+
37+
/////////////////////////////////////////////////////////////////////////////
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ImportGroup Label="PropertySheets" />
4+
<PropertyGroup Label="UserMacros">
5+
<SporeSdkPath>C:\Program Files (x86)\SporeModder FX\Spore ModAPI\</SporeSdkPath>
6+
<SporeLauncherPath>C:\ProgramData\SporeModManagerStorage\</SporeLauncherPath>
7+
</PropertyGroup>
8+
<PropertyGroup />
9+
<ItemDefinitionGroup />
10+
<ItemGroup>
11+
<BuildMacro Include="SporeSdkPath">
12+
<Value>$(SporeSdkPath)</Value>
13+
</BuildMacro>
14+
<BuildMacro Include="SporeLauncherPath">
15+
<Value>$(SporeLauncherPath)</Value>
16+
</BuildMacro>
17+
</ItemGroup>
18+
</Project>
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{07FC5B61-B575-4207-B464-AFAE6AF3FC19}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>Spore_SpaceStageCrashFix</RootNamespace>
17+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
18+
</PropertyGroup>
19+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
20+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
21+
<ConfigurationType>DynamicLibrary</ConfigurationType>
22+
<UseDebugLibraries>true</UseDebugLibraries>
23+
<PlatformToolset>v142</PlatformToolset>
24+
<CharacterSet>Unicode</CharacterSet>
25+
</PropertyGroup>
26+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
27+
<ConfigurationType>DynamicLibrary</ConfigurationType>
28+
<UseDebugLibraries>false</UseDebugLibraries>
29+
<PlatformToolset>v142</PlatformToolset>
30+
<WholeProgramOptimization>true</WholeProgramOptimization>
31+
<CharacterSet>Unicode</CharacterSet>
32+
</PropertyGroup>
33+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
34+
<ImportGroup Label="ExtensionSettings">
35+
</ImportGroup>
36+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
37+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
38+
<Import Project="SdkPathConfig.props" />
39+
</ImportGroup>
40+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
41+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
42+
<Import Project="SdkPathConfig.props" />
43+
</ImportGroup>
44+
<PropertyGroup Label="UserMacros" />
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
46+
<LinkIncremental>true</LinkIncremental>
47+
<IncludePath>$(SporeSdkPath)Spore ModAPI;$(SporeSdkPath)EASTL-3.02.01\test\packages\EABase\include\Common;$(SporeSdkPath)EASTL-3.02.01\test\packages\EAAssert\include;$(SporeSdkPath)EASTL-3.02.01\test\packages\EAStdC\include;$(SporeSdkPath)EASTL-3.02.01\include;$(SporeSdkPath)Detours\include\;$(DXSDK_DIR)Include;$(IncludePath)</IncludePath>
48+
<LibraryPath>$(DXSDK_DIR)Lib\x86;$(SporeLauncherPath)coreLibs;$(SporeSdkPath)Detours\lib.X86;$(SporeSdkPath)lib\Debug;$(LibraryPath)</LibraryPath>
49+
<TargetName>$(ProjectName)</TargetName>
50+
<OutDir>$(SporeLauncherPath)mLibs</OutDir>
51+
<LocalDebuggerCommand>$(SporeLauncherPath)Spore ModAPI Launcher.exe</LocalDebuggerCommand>
52+
<LocalDebuggerWorkingDirectory>$(SporeLauncherPath)</LocalDebuggerWorkingDirectory>
53+
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
54+
</PropertyGroup>
55+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
56+
<LinkIncremental>false</LinkIncremental>
57+
<IncludePath>$(SporeSdkPath)Spore ModAPI;$(SporeSdkPath)EASTL-3.02.01\test\packages\EABase\include\Common;$(SporeSdkPath)EASTL-3.02.01\test\packages\EAAssert\include;$(SporeSdkPath)EASTL-3.02.01\test\packages\EAStdC\include;$(SporeSdkPath)EASTL-3.02.01\include;$(SporeSdkPath)Detours\include\;$(DXSDK_DIR)Include;$(IncludePath)</IncludePath>
58+
<LibraryPath>$(DXSDK_DIR)Lib\x86;$(SporeLauncherPath)coreLibs;$(SporeSdkPath)Detours\lib.X86;$(SporeSdkPath)lib\Release;$(LibraryPath)</LibraryPath>
59+
<TargetName>$(ProjectName)</TargetName>
60+
<OutDir>$(SporeLauncherPath)mLibs</OutDir>
61+
<LocalDebuggerCommand>$(SporeLauncherPath)Spore ModAPI Launcher.exe</LocalDebuggerCommand>
62+
<LocalDebuggerWorkingDirectory>$(SporeLauncherPath)</LocalDebuggerWorkingDirectory>
63+
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
64+
</PropertyGroup>
65+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
66+
<ClCompile>
67+
<PrecompiledHeader>Use</PrecompiledHeader>
68+
<WarningLevel>Level3</WarningLevel>
69+
<Optimization>Disabled</Optimization>
70+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
71+
<SDLCheck>true</SDLCheck>
72+
</ClCompile>
73+
<Link>
74+
<SubSystem>Windows</SubSystem>
75+
<GenerateDebugInformation>true</GenerateDebugInformation>
76+
<AdditionalDependencies>detours.lib;SporeModAPIBase.lib;SporeModAPI.lib;%(AdditionalDependencies)</AdditionalDependencies>
77+
</Link>
78+
</ItemDefinitionGroup>
79+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
80+
<ClCompile>
81+
<WarningLevel>Level3</WarningLevel>
82+
<PrecompiledHeader>Use</PrecompiledHeader>
83+
<Optimization>MaxSpeed</Optimization>
84+
<FunctionLevelLinking>true</FunctionLevelLinking>
85+
<IntrinsicFunctions>true</IntrinsicFunctions>
86+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;SPOREMODAPITEMPLATE_EXPORTS;EXECUTABLE_TYPE=SPORE_STEAM;PATCHED_SPORE=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
87+
<SDLCheck>true</SDLCheck>
88+
</ClCompile>
89+
<Link>
90+
<SubSystem>Windows</SubSystem>
91+
<GenerateDebugInformation>true</GenerateDebugInformation>
92+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
93+
<OptimizeReferences>true</OptimizeReferences>
94+
<AdditionalDependencies>detours.lib;SporeModAPIBase.lib;SporeModAPI.lib;%(AdditionalDependencies)</AdditionalDependencies>
95+
</Link>
96+
</ItemDefinitionGroup>
97+
<ItemGroup>
98+
<Text Include="ReadMe.txt" />
99+
</ItemGroup>
100+
<ItemGroup>
101+
<ClInclude Include="CheatToTestCrash.h">
102+
<SubType>
103+
</SubType>
104+
</ClInclude>
105+
<ClInclude Include="stdafx.h" />
106+
<ClInclude Include="targetver.h" />
107+
</ItemGroup>
108+
<ItemGroup>
109+
<ClCompile Include="CheatToTestCrash.cpp">
110+
<SubType>
111+
</SubType>
112+
</ClCompile>
113+
<ClCompile Include="dllmain.cpp">
114+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
115+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
116+
</PrecompiledHeader>
117+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
118+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
119+
</PrecompiledHeader>
120+
</ClCompile>
121+
<ClCompile Include="stdafx.cpp">
122+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
123+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
124+
</ClCompile>
125+
</ItemGroup>
126+
<ItemGroup>
127+
<None Include="SdkPathConfig.props" />
128+
</ItemGroup>
129+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
130+
<ImportGroup Label="ExtensionTargets">
131+
</ImportGroup>
132+
</Project>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Resource Files">
5+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
6+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
7+
</Filter>
8+
<Filter Include="Spore-SpaceStageCrashFix">
9+
<UniqueIdentifier>{3880d018-2395-4502-abfe-4b83e0817aab}</UniqueIdentifier>
10+
</Filter>
11+
<Filter Include="Internal">
12+
<UniqueIdentifier>{d62ad12d-69d8-4933-8342-03043c9adc22}</UniqueIdentifier>
13+
</Filter>
14+
</ItemGroup>
15+
<ItemGroup>
16+
<ClInclude Include="targetver.h">
17+
<Filter>Internal</Filter>
18+
</ClInclude>
19+
<ClInclude Include="stdafx.h">
20+
<Filter>Internal</Filter>
21+
</ClInclude>
22+
<ClInclude Include="CheatToTestCrash.h">
23+
<Filter>Spore-SpaceStageCrashFix</Filter>
24+
</ClInclude>
25+
</ItemGroup>
26+
<ItemGroup>
27+
<ClCompile Include="dllmain.cpp">
28+
<Filter>Spore-SpaceStageCrashFix</Filter>
29+
</ClCompile>
30+
<ClCompile Include="stdafx.cpp">
31+
<Filter>Internal</Filter>
32+
</ClCompile>
33+
<ClCompile Include="CheatToTestCrash.cpp">
34+
<Filter>Spore-SpaceStageCrashFix</Filter>
35+
</ClCompile>
36+
</ItemGroup>
37+
<ItemGroup>
38+
<None Include="SdkPathConfig.props" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Text Include="ReadMe.txt">
42+
<Filter>Internal</Filter>
43+
</Text>
44+
</ItemGroup>
45+
</Project>

0 commit comments

Comments
 (0)