Coder Social home page Coder Social logo

cbn-tilesets's Introduction

Cataclysm: Bright Nights Tilesets

This is an unofficial master tileset repository for Cataclysm: Bright Nights. It contains tools and components you need to build your own fully functional tilesets. Currently only a few tilesets are supported but that should change in the future.

Building tilesets

Tilesets are built using Python scripts to automate the process. You can still stich tile sprites manually using image editing software but that is not recommended.

Prerequisites

Before building the tilesets you need the following:

When running the script you might get error 0x7f on Windows. Make sure you've installed Python from the official website and not using the Microsoft Store. If you have not used MS Store you should still check that the PATH variable is not configured to read Python executable from the MS Store. Read here for more information.

Another solution to this problem is to use the w64 static version of libvips. It is unclear exactly what causes this issue but using the mentioned version seems to resolve it. See here for more information on this issue.

Composing

The compose.py script reads tile_info.json to find information about tile sprites definitions and then combines tile maps into sprite atlas files which are used by the game to render the environment.

Command syntax to build the tileset

$ python tools/compose.py <tileset_path> [<output_dir>]

For example here is how we would build UltimateCataclysm tileset:

$ python tools/compose.py gfx/UltimateCataclysm

Once executed the script will take a short time to complete building the tileset. Do not get alarmed if you don't see any output in the terminal, the script is just too busy to speak with you. Once finished you will find atlas files in the designated output directory. Read more on what to do with these files in #distribution section.

Note that the output directory is an optional argument that is useful when you are assembling a tileset distribution and you want to move everything you need to distribute the tileset to one place.

Distribution

In addition to the composed atlas files the following files need to be included in the distribution in order for the tileset to be recognized and properly render by the game:

  • tile_config.json - information about how to render tiles.

  • tileset.txt - metadata file that contains tileset information.

Once you have all needed files in once place create a new directory with the same name as the tileset you are building and move the files inside. Final step is to package the directory using your favorite archiver program such as zip or 7zip. Now your tileset is ready to be shared with the world!

Contributing

Everyone is encouraged to contribute to the project.

  • If you have questions or requests feel free to open a new issue.
  • If you want to submit tile changes or new tiles; fork the project, commit your changes and make a pull request.

License

Cataclysm: Bright Nights and all tilesets released with the game are the result of contributions from volunteers under the Creative Commons Attribution ShareAlike 3.0 license. The code and content of the game is free to use, modify, and redistribute for any purpose whatsoever. See Creative Commons for details. Some code distributed with the project is not part of the project and is released under different software licenses, the files covered by different software licenses have their own license notices.

cbn-tilesets's People

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.