Commits

Rainer Hilmer committed cb579bb Merge

Merge branch 'feature/Guide' into develop

Comments (0)

Files changed (7)

EmergencyRecover/EmergencyRecover.Guide/DokuStyle.css

+h1 {
+   color: #606060;
+   font-family: 'Segoe UI';
+   font-size: x-large;
+}
+
+h2 {
+   color: #606060;
+   font-family: 'Segoe UI';
+   font-size: large;
+}
+
+h3 {
+   color: #606060;
+   font-family: 'Segoe UI';
+   font-size: medium;
+}
+
+h4 {
+   color: #606060;
+   font-family: 'Segoe UI';
+   font-size: larger;
+   font-weight: bold;
+}
+
+body {
+   background-color: #ffffff;
+   font-family: 'Calibri';
+   font-size: medium;
+}
+
+.code_standard {
+   background-color: White;
+   color: Black;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_standard_bold {
+   background-color: White;
+   color: Black;
+   font-family: 'Consolas';
+   font-size: 11pt;
+   font-weight: bold;
+}
+
+.code_purple-keyword {
+   background-color: White;
+   color: Purple;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_Class {
+   background-color: White;
+   color: #2b91af;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_Struct {
+   background-color: White;
+   color: navy;
+   font-family: 'Consolas';
+   font-size: 11pt;
+   font-weight: bold;
+}
+
+.code_Method {
+   background-color: White;
+   color: #8000ff;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_Delegate {
+   background-color: White;
+   color: Purple;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_Event {
+   background-color: White;
+   color: #ff8000;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_enum {
+   background-color: White;
+   color: Olive;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_Interface {
+   background-color: White;
+   color: #8080ff;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_string {
+   background-color: White;
+   color: Maroon;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_comment {
+   background-color: White;
+   color: #40a420;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}
+
+.code_blue {
+   background-color: White;
+   color: #0000ff;
+   font-family: 'Consolas';
+   font-size: 11pt;
+}

EmergencyRecover/EmergencyRecover.Guide/EmergencyRecover.Guide.csproj

+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.30703</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>EmergencyRecover.Guide</RootNamespace>
+    <AssemblyName>EmergencyRecover.Guide</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="EmergencyRecoverGuide.htm" />
+    <Content Include="DokuStyle.css" />
+  </ItemGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>

EmergencyRecover/EmergencyRecover.Guide/EmergencyRecoverGuide.htm

+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+   <title></title>
+   <link href="DokuStyle.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+   <h1>EmergencyRecover Guide</h1>
+   <h2>Legal blurp</h2>
+   <p>This is a mod for GTA IV 1.0.7.0 and EFLC 1.1.2.0. You need HazardX's .net scripthook in order to run this mod
+ (  http://www.gtaforums.com/index.php?s=e763ad4f847114996cc56b618e1d64c9&showtopic=392325&st=0 )
+ This mod is provided as is. Use it, spread it among your friends but do not repost it as your own work!
+ Modifications to the code need my approval.</p>
+
+   <h2>Description</h2>
+
+   <p>Stuck peds and vehicles are a well known bug of GTA IV.<br />
+      This mod provides functionality for unfreezing or deleting stuck peds and vehicles with adjustable aggressiveness.<br />
+      USE IN CASE OF EMERGENCY ONLY. </p>
+
+<h2>Installation</h2>
+
+<p>Copy the UndertakerService.net.dll into the Scripts folder of your GTA IV installation.
+ Copy the GTA IV folder into your Documents folder (not in Documents\Rockstar Games!!!).
+ Sorry for the shouting but some users did that wrong even though I described it in all detail and simple words in the guide of my PTS mod.
+ In case you have any of my other mods installed, Windows tells you this folder is already there and whether it should be integrated.
+ Accept the integration.</p>
+   <h2>How to use this mod</h2>
+   <p>At any time you face a stuck ped or a stuck vehicle, press <b>Shift+R</b>.<br />
+      All peds and vehicles in a perimeter of 5 meters will be recovered.<br />
+      A short message will inform you when the recoery process is done (which should 
+      happen immediately).<br />
+      By the way, you can configure the hotkey as you please.</p>
+   <h2>Configuration</h2>
+   <p>As always with my mods you can also configure various things here.<br />
+      The game recovery is a bit tricky, so this mod lets you decide how aggressive it 
+      will behave.<br />
+      The most careful mode just tries to unfreeze stuck peds and vehicles.<br />
+      If that don&#39;t help you can choose to also release the peds in your surrounding 
+      from their current tasks. CAUTION: This will most likely interfer with any 
+      missions and mods which spawn mission peds like LCPDFR, Tow service, PTS or the 
+      Undertaker Service. However those mods won&#39;t crash.<br />
+      Also all moving vehicles in the perimeter will loose their drivers and therefore 
+      just stand around and block traffic.<br />
+      If you still face frozen peds you can choose to let them delete. The same goes 
+      for vehicles. This is the most aggressive mode.<br />
+      You can find the configuration in Documents\GTA 
+      IV\ModSettings\EmergencyRecover\EmergencyRecoverConfig.xml (if you installed it 
+      correctly).<br />
+      Here is the default content. A detailed explanation follows below.</p>
+   <div style="color: black; background: #fafafa; font-family: Consolas; font-size: 11pt;">
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;1</span>&nbsp;<span 
+            style="color: blue;">&lt;</span><span style="color: purple;">ConfigurationContainer</span><span 
+            style="color: blue;"> </span><span style="color: red;">xmlns:i</span><span 
+            style="color: blue;">=</span>&quot;<span style="color: #404096;">http://www.w3.org/2001/XMLSchema-instance</span>&quot;<span 
+            style="color: blue;"> </span><span style="color: red;">xmlns</span><span 
+            style="color: blue;">=</span>&quot;<span style="color: #404096;">http://schemas.datacontract.org/2004/07/EmergencyRecover</span>&quot;<span 
+            style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;2</span>&nbsp;<span 
+            style="color: blue;">&nbsp; &lt;</span><span style="color: purple;">ClearTasks</span><span 
+            style="color: blue;">&gt;</span>false<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">ClearTasks</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;3</span>&nbsp;<span 
+            style="color: blue;">&nbsp; &lt;</span><span style="color: purple;">DeletePeds</span><span 
+            style="color: blue;">&gt;</span>false<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">DeletePeds</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;4</span>&nbsp;<span 
+            style="color: blue;">&nbsp; &lt;</span><span style="color: purple;">DeleteVehicles</span><span 
+            style="color: blue;">&gt;</span>false<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">DeleteVehicles</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;5</span>&nbsp;<span 
+            style="color: blue;">&nbsp; &lt;</span><span style="color: purple;">KeyContainer</span><span 
+            style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;6</span>&nbsp;<span 
+            style="color: blue;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: purple;">Alt</span><span 
+            style="color: blue;">&gt;</span>false<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">Alt</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;7</span>&nbsp;<span 
+            style="color: blue;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: purple;">Ctrl</span><span 
+            style="color: blue;">&gt;</span>false<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">Ctrl</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;8</span>&nbsp;<span 
+            style="color: blue;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: purple;">Key</span><span 
+            style="color: blue;">&gt;</span>R<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">Key</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;&nbsp;9</span>&nbsp;<span 
+            style="color: blue;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: purple;">Name</span><span 
+            style="color: blue;">&gt;</span>RecoverAll<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">Name</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;10</span>&nbsp;<span 
+            style="color: blue;">&nbsp;&nbsp;&nbsp; &lt;</span><span style="color: purple;">Shift</span><span 
+            style="color: blue;">&gt;</span>true<span style="color: blue;">&lt;/</span><span 
+            style="color: purple;">Shift</span><span style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;11</span>&nbsp;<span 
+            style="color: blue;">&nbsp; &lt;/</span><span style="color: purple;">KeyContainer</span><span 
+            style="color: blue;">&gt;</span></p>
+      <p style="margin: 0px;">
+         <span style="color: teal; background: white;">&nbsp;&nbsp;&nbsp;12</span>&nbsp;<span 
+            style="color: blue;">&lt;/</span><span style="color: purple;">ConfigurationContainer</span><span 
+            style="color: blue;">&gt;</span></p>
+   </div>
+<!--EndFragment-->
+<p>Line 1 is the XML header. Don&#39;t touch it!</p>
+   <p><b>ClearTasks</b> tag: If set to true the mod will release all peds in the 5 
+      meter perimeter from their tasks.</p>
+   <p><b>DeletePeds</b> tag: If set to true the mod will delete all peds in the 
+      perimeter.</p>
+   <p><b>DeleteVehicles</b> tag: If set to true the mod will delete all vehicles in 
+      the perimeter. So watch out that not your own vehicle is inside.</p>
+   <p><b>KeyContainer</b> tag: This is the definition of the hotkey to press in order 
+      to run this mod (default is <b>Shift+R</b>).</p>
+   <p>If you need further assistance about XML files or the key container, please 
+      download the PTS guide from this URL:<br />
+      <a href="https://bitbucket.org/rainerhilmer/pts/downloads">
+      https://bitbucket.org/rainerhilmer/pts/downloads</a></p>
+   <p>&nbsp;</p>
+</body>
+</html>

EmergencyRecover/EmergencyRecover.Guide/Properties/AssemblyInfo.cs

+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+
+[assembly: AssemblyTitle("EmergencyRecover.Guide")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("EmergencyRecover.Guide")]
+[assembly: AssemblyCopyright("Copyright ©  2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components.  If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+
+[assembly: Guid("fbe473c0-3436-4460-a693-c428647c1868")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

EmergencyRecover/EmergencyRecover.sln

 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmergencyRecover.Tests", "EmergencyRecover.Tests\EmergencyRecover.Tests.csproj", "{9603340B-A675-4688-B9CF-2C1E437B97DE}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmergencyRecover.Guide", "EmergencyRecover.Guide\EmergencyRecover.Guide.csproj", "{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
+		Debug|Mixed Platforms = Debug|Mixed Platforms
 		Debug|x86 = Debug|x86
 		Release|Any CPU = Release|Any CPU
+		Release|Mixed Platforms = Release|Mixed Platforms
 		Release|x86 = Release|x86
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|Mixed Platforms.Build.0 = Debug|x86
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|x86.ActiveCfg = Debug|x86
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Debug|x86.Build.0 = Debug|x86
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|Mixed Platforms.ActiveCfg = Release|x86
+		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|Mixed Platforms.Build.0 = Release|x86
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|x86.ActiveCfg = Release|x86
 		{C5613F28-30B2-416E-8E80-FC4F3D4D177C}.Release|x86.Build.0 = Release|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|Mixed Platforms.Build.0 = Debug|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|x86.ActiveCfg = Debug|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Debug|x86.Build.0 = Debug|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|Any CPU.Build.0 = Release|Any CPU
+		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|Mixed Platforms.ActiveCfg = Release|x86
+		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|Mixed Platforms.Build.0 = Release|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|x86.ActiveCfg = Release|x86
 		{9603340B-A675-4688-B9CF-2C1E437B97DE}.Release|x86.Build.0 = Release|x86
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Release|Any CPU.Build.0 = Release|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{0FACF53F-8D2B-4FC2-B7D9-9B015F4131A8}.Release|x86.ActiveCfg = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

EmergencyRecover/EmergencyRecover/ConfigurationHandling.cs

       internal ConfigurationHandling()
       {
          _fullPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
-                     + @"\GTA IV\ModSettings\RecoverAll\RecoverAllConfig.xml";
+                     + @"\GTA IV\ModSettings\EmergencyRecover\EmergencyRecoverConfig.xml";
       }
 
       internal ConfigurationContainer ReadConfig()

EmergencyRecover/EmergencyRecover/bin/x86/Release/EmergencyRecover.net.dll

Binary file modified.