Giter Site home page Giter Site logo

dreamycecil / se1-exampleentitieslib Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 725 KB

A clean library base for your own entities based on Serious Sam SDK for modern Visual Studios instead of Microsoft Visual C++ 6.0.

License: GNU General Public License v2.0

ECL 0.14% C++ 80.85% C 19.01%
platform-toolset sam-sdk visual-studio toolset mod sdk serious-sam serious-engine entity-pack engine

se1-exampleentitieslib's Introduction

Example Entities Library

This is a clean library base for your own Serious Sam entities based on Serious Engine 1 Mod SDK.

This example library contains an entity that can display information about all players. The project files were created for Visual Studio 2010 and newer.

Notes

  • If you want to create other entity packs, you can base them off renamed CustomEntities project and add them to EntitiesLib.sln instead of cloning the entire repository again.
  • If you want your entities to depend on vanilla ones, you have to include headers from EntitiesV and optional GameV directories into your code to link vanilla libaries.
    • You can see this dependency implementation in the example project. Look for the VANILLA_ENTITIES macro switch.
  • Alternatively, you can freely move CustomEntites folder into the mod SDK and build entity packs with your mod.

Building

To compile the library, you'll need to use a compiler from Microsoft Visual C++ 6.0.

Full guide: https://github.com/DreamyCecil/SE1-ModSDK#building

Running

Once the project is compiled, the library (e.g. CustomEntitiesMP.dll) is automatically placed into the Bin folder one level above the sources folder (e.g C:/SeriousSam/Bin if the sources are in C:/SeriousSam/Sources).

To change the path where to copy the library (if you wish to put sources separately from the game), consider changing the path in the post-build step (Project properties -> Build Events -> Post-Build Step -> Command Line).

How to use your new entities in the game

  1. Copy the compiled library into the Bin folder (e.g. C:/SeriousSam/Bin).
  2. Create a ECL (Entity Class Link) file with your entity in it. Example can be found at Classes/ExampleEntity.ecl.
  3. Add your class file into the virtual tree in Serious Editor.

And then you'll be able to use your entity just like any other entity.

License

Just like Croteam's Serious Engine 1.10 source code, Serious Sam SDK is licensed under the GNU GPL v2 (see LICENSE file).

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.