Skip to content

Latest commit

 

History

History
159 lines (130 loc) · 7.41 KB

CONTRIBUTING.md

File metadata and controls

159 lines (130 loc) · 7.41 KB

Contributing to Gothic Unity

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

For gamers:

  • Discussing the current state of the code
  • Reporting a bug
  • Proposing new features

For developers:

  • Submitting a fix
  • Becoming a maintainer

For gamers

Discord

Simple as that: Download the game and join our Discord Server to get in touch with the developers and the Gothic community.

For developers

Discord

To all coders and VR developers: Welcome, you're at the right spot.

We're mainly building Gothic by leveraging C# classes and building core Unity magic. (Nearly no 2D/3D designs are needed as we load everything from original assets at runtime).

The project opens and builds without any paid assets. No headset at hand? Turn on EnableVRDeviceSimulator in the DeveloperConfig to play the VR version with mouse and keyboard.

If you want to build Gothic together, then you're encouraged to join our active developer base. Feel free to grab a ticket you'd like to drive and reach out to us on our Discord Server for further questions.

We Develop with GitHub

You'll find our current feature development status at the Projects page.

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.

All Code Changes Happen Through Pull Requests

Pull requests are the best way to propose changes to the codebase. We welcome your pull requests:

  1. Try to align with current status of the project and team member's work (Discord).
  2. Fork the repo and create your branch from develop (see Branching).
  3. Issue your pull request with extensive information about what changed and how to test it.

Branching (git flow)

%%{init: {'theme': 'base', 'gitGraph': {'mainBranchOrder': 6}, 'themeVariables': {
    'git0': '#8DB8EC', 'gitBranchLabel0': '#000000',
    'git1': '#1F5FBF', 'gitBranchLabel1': '#ffffff',
    'git2': '#2E9E5B', 'gitBranchLabel2': '#ffffff',
    'git3': '#9ED9B0', 'gitBranchLabel3': '#000000',
    'git4': '#D93A2B', 'gitBranchLabel4': '#ffffff',
    'git5': '#E0A100', 'gitBranchLabel5': '#000000'
}}}%%
gitGraph
    commit id: "v0.2.0" tag: "v0.2.0"
    branch develop order: 2
    commit id: "features accumulate"
    branch "feature/vr-grab" order: 1
    commit id: "vr-grab"
    commit id: "PR + playtest"
    checkout develop
    merge "feature/vr-grab"
    branch "release/0.3.0" order: 3
    commit id: "feature freeze"
    checkout develop
    commit id: "next features"
    checkout "release/0.3.0"
    branch "fix/quest2-crash" order: 4
    commit id: "quest2-crash"
    checkout "release/0.3.0"
    merge "fix/quest2-crash" id: "RC build + review"
    checkout main
    merge "release/0.3.0" tag: "v0.3.0"
    checkout develop
    merge "release/0.3.0" id: "release fixes"
    checkout main
    branch "hotfix/0.3.1" order: 5
    commit id: "save-crash"
    checkout main
    merge "hotfix/0.3.1" tag: "v0.3.1"
    checkout develop
    merge "hotfix/0.3.1" id: "hotfix"
Loading
  • feature/* branches start from develop and go back into develop via PR (with playtest).
  • Feature freeze: a release/x.y.z branch is cut from develop. From then on develop is open for the next features again.
  • fix/* branches for the release start from release/x.y.z and go back into it via PR. No features here.
  • Release candidate: each RC build is reviewed and playtested. If it fails, more fixes go into the release branch.
  • Release: the release branch is merged into main and tagged vx.y.z. It is also merged back into develop so the fixes are not lost. When creating the GitHub release, set its target to main: it defaults to the default branch (develop), and the release build is made from the tagged commit.
  • hotfix/* branches fix an already released version. They start from main, go back into main with a new patch tag (e.g. v0.3.1) and are also merged into develop. If a release branch is open at that time, merge the hotfix into it instead of develop.
  • main only ever contains released versions.

Report bugs using GitHub's issues

We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!

Write bug reports with detail, background, and sample code

Great Bug Reports tend to have:

  • A quick summary and/or background
  • Steps to reproduce
    • Be specific!
    • Give sample code if you can.
  • What you expected would happen
  • What actually happens
  • Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

(People love thorough bug reports. I'm not even kidding.)

Use a Consistent Coding Style

To assist consistent development styles, we:

  1. set up an .editorconfig file which is automatically used by Rider and VS22+
  2. wrote an exhaustive example at our docs: Coding Style Guide

Be Open About AI Usage

We use AI agents ourselves (see AI_USE.md), so we're fine with AI-assisted contributions. We just want to know about them.

In your pull request, tell us how much AI helped. Because ultimately: You own your your pull request. Therefore review your code and test your submissions.

Working with Claude Code

Our Claude Code setup lives in .claude/. Agents you call by name, e.g. "use architecture-reviewer on my plan". Skills load on their own when the task fits.

flowchart LR
    D["1.\nDesign<br/>/design<br/>\nOutcome: ADR"] -->
    B["2.\nBuild<br/>(skills load automatically)\n\nOutcome: Feature"]
    B --> T["3.\n Test"]
    T --> R["4.\nReview<br/>/review<br/>\nOutcome: Findings"]
    R --> P["5.\nPush<br/>/commit-pr<br/>\nOutcome: PR to review"]
Loading
  1. Design: /design asks you the open decisions, writes the plan, drafts the decision record Docs/adr/<date>-<topic>.md and has the architecture-reviewer agent check the plan. You approve the ADR.

    /design VR ledge climbing for #123

  2. Build: skills such as daedalus-bridge and feature-checklist load automatically.

    Implement the plan.

  3. Test: the playtest-planner agent writes the in-game test steps, you play them.

    What should I test?

  4. Review: /review runs the gothic-reviewer (bugs, style) and architecture-reviewer (structure) agents and stores their reports locally. For each open finding you decide: fix it, follow-up, or disagree.

    Do a review

  5. Push: /commit-pr commits and opens or updates the PR with a summary of the latest review and posts the full reports as a comment. If the review is missing or outdated, it runs it first. Without the gh CLI it prepares the texts for you to paste. A human reviews the PR.

    /commit-pr open the PR
    /commit-pr update the PR

License

By contributing, you agree that your contributions will be licensed under its GPL-3.0 License.