Coder Social home page Coder Social logo

darkosm's Introduction

DarkOSM

DarkOSM is a minimalistic implementation of an object script module, providing the interfaces necessary to write scripts for all released Dark Engine games (Thief 1/Gold, Thief 2, and System Shock 2). Using all script services is supported. The ANSI C implementation can be found in csrc and the ISO C++98 implementation can be found in cppsrc. Both implementations are independent of each other and employ a common API.

libosm

libOSM consists of only the api.h header in combination with the service headers. The API provides all interfaces and supplemental types necessary for a script module to work with the target game. The service headers provide the interfaces necessary to use a particular game's script services and are the primary means of interaction.

IScript is the script interface. It is used by scripts for handling messages.

IScriptManager is the script manager interface. It is used for managing script state, initializing services, working with messages, and several more common tasks.

IScriptModule is the script module interface. It is used by the script module for initializing individual scripts.

Building

Makefiles for MinGW-w64 (GNU Make) and Visual C++ 9 (NMAKE) are provided for both the C and C++ implementations. Using the requisite make utility from the source directory will generate complete binaries. No additional dependencies are required.

Usage

A complete script module implementation is located in csrc/module.c and cppsrc/module.cpp. For an example script, see csrc/script.c and cppsrc/script.cpp, respectively. The included script, TestScript, simply responds to a FrobWorldEnd message by printing to mono. More complex scripts can be constructed by handling additional messages and using additional service routines.

darkosm's People

Contributors

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