Giter Site home page Giter Site logo

sc3u-nptl's Introduction

SimCity™ 3000 Unlimited for modern Linux

This is a hack that allows you to run the old native Linux version of SC3U, released by Loki Software in 2000, on your current Linux distribution.

Requirements

Make sure you have a 32-bit capable C compiler.

You are most likely running a Linux distribution on a shiny 64 bits CPU, but the binaries you are trying to run are build for the classic 32 bits PC architecture. In the Debian/Ubuntu world, you will need to install the gcc-multilib package.

You will also need to install patchelf and a really old version of libstdc++.

Usage

Build the code:

$ make

Go to the game directory and make use of patchelf's blackmagic:

$ patchelf --replace-needed libSDL-1.1.so.0 libSDL-1.2.so.0 sc3u.dynamic
$ patchelf --replace-needed libSDL-1.1.so.0 libSDL-1.2.so.0 sc3bat.dynamic
$ patchelf --add-needed libstdc++-libc6.2-2.so.3 ./sc3u.dynamic
$ patchelf --add-needed libstdc++-libc6.2-2.so.3 ./sc3bat.dynamic

You can now run the game:

$ LD_PRELOAD=/path/to/sc3u-nptl.so ./sc3u.dynamic

You can also run the Building Architect Plus tool:

$ LD_PRELOAD=/path/to/sc3u-nptl.so ./sc3bat.dynamic

Disclaimer

This isn't heavily tested. But it worked for a few minutes on my computer and I was able to complete the "Tutorial on Getting Started" scenario.

sc3u-nptl's People

Contributors

twolife 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.