GithubHelp home page GithubHelp logo

caesar3-pkware-example-scharp's Introduction

Caesar 3 PKWare decompression example port for C#.

Caesar 3 PKWare decompression example

C# is implementation could be used with Unity game engine for example.

This is a C# port of an example program for demonstrating how to decompress parts of the Caesar 3 .sav game file format. Original example was made in Java by Avatar Bianca van Schaik.

Running

  • Make sure you have .NET 6 installed
  • Change C:\Path\to\Ceasar3\Test.sav to actual save file location
  • Open PowerShell in the src folder
  • dotnet run

Legend

Natural elements

  • Y Tree
  • v Scrub
  • O Rock
  • / Elevation
  • \ Access ramp for elevated area
  • ~ Water
  • _ Meadow
  • . Empty land

Human elements

  • B Building
  • z Garden
  • = Road
  • | Aqueduct
  • w Wall
  • W Gatehouse
  • ; Rubble

Example output

Map of the first mission:

YYYYYYYYYYYYYYYYYY..O=..~~~~.YYYYYYYYOOO
YYYYYYYYYYYYYYYYYY...=...~~~~.YYYYYY.OOO
YYYYYYYYYYYYYYYYYYY..=..Y.~~~~.YYYY.OOOO
YYYYYYYYYYYYYYYYYYYY.=.YYY.~~~~~YYY.OOO.
YYYYYYYYYYYYYYY.YYYYY=YYYYY~~~~~~...OOOO
YYYYYYYYYYYYYYYY.YYY.=.YYYY..~~~~~~OOOOO
YYYYYYYYYYYYY.YYYYY..=YYYYYYY~~~~~~~OOOO
.YYYYYYYYYY....YYYY..=YYYYYYYYY~~~~~~.O.
YYYYYYYYYY......YYYY.=YYYYYYYY.Y~~~~~...
YYYYYYYYYY.......YYYY=.YYY...YY..~~~~~~~
~YY.YY...YYYY.....YYY=.YY.OOOOO..O.~~~~~
~~Y.YYY...YYYY.....Y.=.YYYOOOOOOOOO.~~~~
~~~.YYYY...YYYY......=..YYOOOOOOOOO..~~~
~~~..YYY....Y.YY.....=.YY.OOO.YY..YY.~~~
~~~..YYY....YYYYY....=.Y..OOO.YYYYYYYYY.
~~~...YYY...YY.YYY...=....OOOYYYYYYYYYYY
~~~~..YYY..YYYYYYY...=...YOOYYYYYYYYYYYY
.~~~...YYY..Y.YYYYY..=..Y.YOOYYYYYYYYYY.
.~~~~..YYYYYYYYYYY...=.YYY.YO.YYYYYYYYYY
.~~~~~..YYYYYYYYYYY..=.YYY.OOO.YYYYYYYYY
.~~~~~~..YYYYYYYYYYY.=YYYYY.OO.YYYYYYYYY
...~~~~~.YYYYY..YYYYY=YYYYY.YOO.YYYYYYY.
..Y.~~~~~YYYY...YYYY.=.YYYY..OOOOYYYYYY.
.YYY.~~~~~YYYY..YYY..=..YYY..YOOOOOYYYYY
YY.YY~~~~~~YYYYYYYY..=..YYYY...OOOOOYYYY
YYYYY.~~~~~.YYYYYYYY.=...YYYY...O.OO.YYY
YYYYYY~~~~~.YYYYYY.YY=..YYYYYY...OOOOYYY
YYY.YY~~~~~..YYY.YYYY.BBBBBYYYY...OOOOY.
YYYYYY~~~~~..YYYYYYY.=BBBBBYYYY....OOOOO
YYY.YY~~~~~~.YYYYYYBB=BBBBBY.YY..OOOOOOO
YYYY.Y~~~~~~.YYY.Y.BB=BBBBBY.YYY..OOOOOO
YY.Y...~~~~~~.YYY.BBB=BBBBBY.YYY..OOOO.O
YYYYYY..~~~~~.YYY..BB=BBBBBYY.YYY..OOOOO
YYYYYYY...~~~~.Y...BB=BBBBBYYYYYY..O.OO.
YY.YY.YY.~~~~~.YY..BB======YYYYYY..OOOOO
YYYYYYYYYY~~~~YYYYBBB=BBBB.YYYYYY..OOOOO
.YYYYYY.YYY~~~~YYY...=BBBB.YYYYY...OOOOO
..YYYYYYYYYY~~~YYYY..=BBY.YYYYYYY..OOOOO
...YYYYYYYY~~~~~YY..O=..YYYYYYYYYY.OOOOO
.......YYYYY~~~~.....=.YYYYYYYYYYYY.OOOO

caesar3-pkware-example-scharp's People

Contributors

mylan719 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.