Giter Club home page Giter Club logo

cookiecutter-rimworld-mod-development's Introduction

cookiecutter-rimworld-mod-development

A cookiecutter project that builds the basic Rimworld mod development file structure and sets up a sane build environment.

Table of Contents

Install/Setup

Windows Command Prompt

Required Programs
Usage (inside Rimworld/Mods folder)
  1. cookiecutter gh:n-fisher/cookiecutter-rimworld-mod-development
  2. Follow the prompts, and just press enter to skip the last prompt (_visual_studio)
  3. Open the folder you just created and double-click the ModName.sln file
  4. In the Solution Explorer pane right click RimWorldWin and click Set as Startup Project

Microsoft Visual Studio Integration

Required Programs
Install (if no File -> New -> From Cookiecutter... option is available)
  1. Open up VS Installer (In Visual Studio -> Tools -> Gets Tools and Features)
  2. Click Modify
  3. Click Individual Components
  4. Scroll to Development activities 5a. (VS 2017) Click the Cookiecutter template support checkbox 5b. (VS 2019) Click the Python language support checkbox
  5. Click Modify
Usage

(Due to a bug in VS, you'll have to make the specific mod's folder in [...]/Rimworld/Mods/ModName beforehand)

  1. Open Visual Studio
  2. File -> New -> From Cookiecutter...
  3. Search for rimworld
  4. Double-click n-fisher/cookiecutter-rimworld-mod-development
  5. Change the Template Options:
    • Create To => [...]/Rimworld/Mods/mod_name
    • Mod name
    • Author (Use your Steam username for automatic linking of mod to profile) (can change later in About.xml)
    • Mod Description (not required, can change later in About.xml)
    • Create blank XML files (yes/no)
  6. Create and Open Folder
  7. In the Solution Explorer pane double click your ModName.sln file

Basic Features

Folder Structure

This cookiecutter builds the entire standard mod folder structure, with empty folders as the default. namespace_name is automatically calculated.

  • {{cookiecutter.mod_name}}
    • About
      • About.xml
      • Preview.png
    • Common
      • Assemblies
      • Defs
      • Languages
      • Patches
      • Sounds
      • Textures
    • Source
      • Properties
        • AssemblyInfo.cs
      • namespace_name.cs
      • namespace_name.csproj
      • namespace_name.csproj.user
    • namespace_name.sln
    • LoadFolders.xml

VS Setup Automation

  • Links Rimworld and UnityEngine .dlls for importing in code
  • Clears the default set debugging and trace constants
  • Creates a VS solution with correctly defined paths

cookiecutter-rimworld-mod-development'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.