Skip to content

Commit

Permalink
files from sourceforge
Browse files Browse the repository at this point in the history
  • Loading branch information
gecube committed Mar 9, 2013
1 parent b48e87c commit 4325bc9
Show file tree
Hide file tree
Showing 90 changed files with 19,707 additions and 0 deletions.
91 changes: 91 additions & 0 deletions INSTALL_LINUX
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// This file is part of openCaesar3.
//
// openCaesar3 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// openCaesar3 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with openCaesar3. If not, see <http://www.gnu.org/licenses/>.
//
// Copyright 2012-2013 Gregoire Athanase, gathanase@gmail.com


Installation of openCaesar3 on Linux


The opencaesar3 software uses the original (c) Caesar3 art for graphics, sounds and animations.
For copyright reasons, I do not upload Caesar3 material.
Therefore you need to install Caesar3 to install opencaesar3.

1. Extract the picture files

1.a Install Caesar3

* You only need the Caesar3 CD.
insert your CaesarCD (mounted in /media/CAESAR3 for example)
cd ~
mkdir caesar3_orig
cd caesar3_orig
unshield x /media/CAESAR3/data1.CAB

=> this will extract all files from the data1.CAB archive to your local directory
=> you need to install the "unshield" package if you don't have it already.


1.b Install dependencies

sudo apt-get install libarchive-dev zlib1g-dev zlib1g unshield libsdl1.2-dev libsdl1.2debian qt4-dev-tools


1.c Install and launch SGReader

* Download the SGReader tool "sgreader-src.tar.gz"
cd ~
tar xvzf sgreader-src.tar.gz
cd sgreader-src
qmake
make

=> this extracts and compiles the source code.


1.d Run the SGReader tool

cd ~/sgreader-src
./sgreader
in File/Batch_Extract...
Select the input folder:
Select the directory where you installed Caesar3 (eg: ~/caesar3)
Choose files to extract:
Select C3.sg2, C3_North.sg2 and C3_south.sg2
Set the output folder:
Use a temporary directory of your choice (eg: ~/caesar3_extract)
Run the extraction...
Images extracted:
you should get approx 26314 extracted images, and 124 skipped images.


2. Install opencaesar3

2.a Download opencaesar3 archive, for example: caesar_2012_05_21.20_55_51.tgz

cd ~
tar xvzf caesar_2012_05_21.20_55_51.tgz
cd opencaesar3
make

2.b Install

./install.sh --pic-dir ~/caesar3_extract --data-dir ~/caesar3_orig
ln -s /usr/share/fonts/truetype/freefont/FreeSerif.ttf .

2.c Run!

./run.sh

48 changes: 48 additions & 0 deletions INSTALL_WINDOWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// This file is part of openCaesar3.
//
// openCaesar3 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// openCaesar3 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with openCaesar3. If not, see <http://www.gnu.org/licenses/>.
//
// Copyright 2012-2013 Gregoire Athanase, gathanase@gmail.com


Installation of openCaesar3 on Microsoft Windows


1. Install the original Caesar3 game. Pictures and maps are needed for openCaesar3

2. Download and extract openCaesar3

3. Launch the sgreader.exe
select "File", "Batch extract"
set the "Input Folder" as instructed
choose C3.exe, C3_North.sg2, C3_south.sg2
wait until done
you will have 3 folders created: C3, C3_North and C3_South

4. Rename all *.png files to lowercase in all 3 folders (C3, C3_North and C3_South)
Several tools are available on the internet for this, for example:
* BulkReaderUtility, http://www.bulkrenameutility.co.uk/
* TotalCommander, http://www.ghisler.com/

5. Pack all files from C3 folder into pics.zip, from C3_North to pics_north.zip, from C3_South to pics_south.zip
move these 3 zip files to openCaesar3/pics
Several tools are available on the internet for this, for example:
* 7zip, http://www.7-zip.org/. You may need to use the ".bzip2" compression.

6. From your Caesar3 install dir, copy *.map to resources/maps/

7. Run caesar.exe
in case of error, check the stdout.txt file in the openCaesar3 directory for clues.


22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
This file is part of openCaesar3.

openCaesar3 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

openCaesar3 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with openCaesar3. If not, see <http://www.gnu.org/licenses/>.

Copyright 2012-2013 Gregoire Athanase, gathanase@gmail.com


openCaesar3 source code and binary is published under the GNU GPLv3 license.
The libarchive library is published under the BSD-2 clause license.


29 changes: 29 additions & 0 deletions LICENSE_BSD2
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<OWNER> = Regents of the University of California
<YEAR> = 1998

Copyright (c) <YEAR>, <OWNER>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
Loading

0 comments on commit 4325bc9

Please sign in to comment.