name: "[💥]: Crash Report"
description: "Report a bug that crashes the game or prevents startup."
title: "[💥]: "
labels: [ "Status: Backlog" ]
projects: ["TerraFirmaGreg-Team/10"]
type: "Crash"

body:
  - type: checkboxes
    id: exists
    attributes:
      label: "Was this crash reported before?"
      description: "Please search OPEN/CLOSED issues before submitting, as the issue may have already been reported/addressed."
      options:
        - label: "No, it was not."
          required: true

  - type: dropdown
    id: launcher
    validations:
      required: true
    attributes:
      label: "Are you using Prism or Curseforge?"
      description: "Prism and Curseforge are the only supported launchers for TFG. Some others may not work. TLAUNCHER DOES NOT WORK."
      options:
        - "Yes, I am using Prism or Curseforge."
        - "No, I am not using Prism or Curseforge."

  - type: checkboxes
    id: dependencies
    attributes:
      label: "Did you install required dependencies?"
      description: "If you are using Prism or Modrinth you will be instructed to install required mods. Do so."
      options:
        - label: "Not Applicable / Yes, I have all required dependencies installed."
          required: true

  - type: checkboxes
    id: redownload
    attributes:
      label: "Have you tried redownloading the pack?"
      description: "For issues that you are experiencing singularly, redownloading the pack may fix the issue."
      options:
        - label: "Not Applicable / Yes, I have tried downloading a new instance."
          required: true

  - type: input
    id: os
    validations:
      required: true
    attributes:
      label: Computer OS
      description: Write which OS your PC is running on.
      placeholder: "Example: Windows 10"

  - type: input
    id: version
    validations:
      required: true
    attributes:
      label: Modpack Version Used
      description: Write which version of the modpack you are using.
      placeholder: "Example: 0.1.1"

  - type: dropdown
    id: environment
    validations:
      required: true
    attributes:
      label: Minecraft Environment
      options:
        - "Singleplayer"
        - "LAN"
        - "Forge Server"
        - "Sponge Server"
        - "Mohist Server"
        - "E4MC"
        - "Essential"
        - "Other"

  - type: dropdown
    id: crash
    validations:
      required: true
    attributes:
      label: Side Crashed
      description: Where the game crashed.
      options:
        - "Client"
        - "Server"
        - "Client and Server"
        - "Unsure"

  - type: dropdown
    id: world
    validations:
      required: true
    attributes:
      label: New Worlds
      description: Does this crash occur on a newly generated world?
      options:
        - "Yes"
        - "No"
        - "Unsure"

  - type: input
    id: log
    validations:
      required: true
    attributes:
      label: "Please provide a link to your latest.log, if relevant"
      description: |
        "You can find the crash report in `/crash-reports/`, if one was created."
        "Additionally, please attach `/logs/latest.log` or `/logs/debug.log`. If either or both files do not exist, state such."
        "Please link to a paste site with their content, such as GitHub Gists or Pastebin, mclo.gs, etc."
        "We recommend always using https://mclo.gs/."
        
        
        > [!CAUTION]
        > **Do not paste the contents of either these files directly into the text box.**
        > If you skip this step, this issue might be **labeled** with `please add a reproduction` and **closed**.
      placeholder: https://mclo.gs/MydIQBu...

  - type: textarea
    id: reproduction
    validations:
      required: true
    attributes:
      label: Steps to Reproduce
      description: How to reproduce the crash.
      placeholder: "Example: 1) I did X..."


  - type: textarea
    id: additional-info
    validations:
      required: false
    attributes:
      label: Additional Information
      description: Any additional information you wish to provide. Please add anything which did not fit into the other sections here.
      placeholder: "Example: This is likely caused by X because..."

  - type: markdown
    attributes:
      value: Thank you for taking the time to fill out this crash report.
