Coder Social home page Coder Social logo

cybersys / opensr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from obko/opensr

0.0 1.0 0.0 2.98 MB

Opensource multi-genre game based upon "Space Rangers 2: Dominators"

License: GNU General Public License v3.0

CMake 1.40% C++ 86.74% QML 10.36% JavaScript 1.39% Shell 0.05% Scilab 0.07%

opensr's Introduction

How to build

Prerequisites

  • cmake >= 3.0
  • Qt >= 5.9
  • OpenAL
  • mpg123

Building

mkdir build
cd build
cmake -DBUILD_ALL_TOOLS=Yes -DCMAKE_BUILD_TYPE=Debug ../
make 

How to run

First of all, you'll need resources from original game. OpenSR now can only use "Space Rangers 2: Reboot" ("Космические Рейнджеры 2: Доминаторы. Перезагрузка") release of game.

Copy following .pkg files (game resources) from install ISO to data/ folder:

SR2/DATA/2captain.pkg
SR2/DATA/2gov.pkg
SR2/DATA/2Items.pkg
SR2/DATA/2main.pkg
SR2/DATA/common.pkg
SR2/DATA/ShipFull.pkg
SR2/DATA/ShipSmall.pkg
SR2/DATA/Sound.pkg
SR2/DATA/Star.pkg

Copy music from install ISO to data/ folder:

SR2/Music/

All the following commands assumed to be run from project root dir with build as build directory

Next you have to decode several .dat files using previously built DATTools (tools/DATTools):

./build/tools/DATTools/opensr-dat-convert hd <iso>/SR2/CFG/CacheData.dat data/CacheData.dat
./build/tools/DATTools/opensr-dat-convert d <iso>/SR2/CFG/Main.dat data/Main.dat
./build/tools/DATTools/opensr-dat-convert d <iso>/SR2/CFG/Rus.dat data/Rus.dat

(You can replace SR2/CFG/Rus.dat with SR2/CFG/Eng.dat for English version)

Also, OpenSR requires that some libraries should be available in working directory:

ln -s build/World/libworld.so
mkdir imageformats
ln -s ../build/ImagePlugin/libQtOpenSRImagePlugin.so imageformats/libQtOpenSRImagePlugin.so

Finally, run OpenSR:

./build/Engine/opensr

opensr's People

Contributors

kaffeine avatar kakadu avatar obko 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.