Skip to content

Commit

Permalink
Release bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajko-horvat committed Mar 20, 2024
1 parent bc9f444 commit a46893a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
6 changes: 0 additions & 6 deletions How To Install.txt

This file was deleted.

26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,15 @@

<p>The part of the game assembly code is emulated with Virtual CPU, and the rest of the code has been rewritten from scratch until all of the code is replaced with new copyright free code. The other resources (like graphics, music and text) will also be completely replaced with copyright free resources before publishing the complete game.</p>

## Current status
<p><b>The game is in working state</b>, but you have to legally own the Original game (the .txt, .pic and .pal files have to be present).<br/><br/>
Keyboard shortcuts:
## Dependencies
<ul>
<li>Alt + D - Enable / Disable the <b>Debug mode (Shift-56)</b></li>
<li>Alt + P - Pause / Resume game</li>
<li>Alt + 1 - Show / Hide Screen 1</li>
<li>Alt + 2 - Show / Hide Screen 2</li>
<li>Alt + 3 - Show / Hide Screen 3</li>
</ul></p>
<li>.NET 8</li>
<li>Visual C++ 2015-2019 redistributable (on some Windows machines)</li>
</ul>

## How to install release version of OpenCiv1
<p>The files from the Release should be copied directly into installed and working DOS Civilization game directory.</p>

<p>The only dependency is .NET 8</p>

## How to compile the code (.NET 8 SDK required)
If you want to compile the code, it is assumed that:
<ul>
Expand All @@ -49,6 +42,17 @@ Compile with CLI method:
<li>dotnet build -c Release</li>
</ul>

## Current status
<p><b>The game is in working state</b>, but you have to legally own the Original game (the .txt, .pic and .pal files have to be present).<br/><br/>
Keyboard shortcuts:
<ul>
<li>Alt + D - Enable / Disable the <b>Debug mode (Shift-56)</b></li>
<li>Alt + P - Pause / Resume game</li>
<li>Alt + 1 - Show / Hide Screen 1</li>
<li>Alt + 2 - Show / Hide Screen 2</li>
<li>Alt + 3 - Show / Hide Screen 3</li>
</ul></p>

## Help needed
<p>All contributions are welcome.</p>
For this stage of code rewrite, the programmings skills needed are:
Expand Down
2 changes: 1 addition & 1 deletion src/CPU/CPU.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static CPU()
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), Path.DirectorySeparatorChar);
}
#else
DefaultCIVPath = "";
DefaultCIVPath = $"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}{Path.DirectorySeparatorChar}";
#endif
}

Expand Down
10 changes: 5 additions & 5 deletions src/Documentation/CVL and EXE driver overlays.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Sound drivers ASOUND.CVL, ISOUND.CVL, NSOUND.CVL, RSOUND.CVL and TSOUND.CVL (onl
* jmp instruction at offset 0xa41 is mapped to function 4
* jmp instruction at offset 0xa48 is mapped to function 5
* jmp instruction at offset 0xa4f is mapped to function 6
* jmp instruction at offset 0xa56 is mapped to function 7
* jmp instruction at offset 0xa5d is mapped to function 8
* jmp instruction at offset 0xa64 is mapped to function 9
* jmp instruction at offset 0xa6b is mapped to function 10
* jmp instruction at offset 0xa72 is mapped to function 11
* jmp instruction at offset 0xa56 is mapped to function 7 (Not used)
* jmp instruction at offset 0xa5d is mapped to function 8 (Not used)
* jmp instruction at offset 0xa64 is mapped to function 9 (Not used)
* jmp instruction at offset 0xa6b is mapped to function 10 (Not used)
* jmp instruction at offset 0xa72 is mapped to function 11 (Not used)
2 changes: 1 addition & 1 deletion src/Game/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void Start()

if (!File.Exists(sFilePath))
{
throw new ResourceMissingException($"Missing resource file {sFilePath}. Plsease ensure that the file exists at specified path.");
throw new ResourceMissingException($"Missing resource file {sFilePath}. Please ensure that the file exists at specified path.");
}
}
#endregion
Expand Down
18 changes: 10 additions & 8 deletions src/OpenCiv1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,17 @@
</ItemGroup>

<ItemGroup>
<None Update="..\How To Install.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="..\LICENSE">
<None Remove="..\LICENSE" />
<None Remove="..\README.md" />
</ItemGroup>

<ItemGroup>
<Content Include="..\LICENSE">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="..\README.md">
</Content>
<Content Include="..\README.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</Content>
</ItemGroup>

</Project>

0 comments on commit a46893a

Please sign in to comment.