Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into relationships_doubleToInt
Browse files Browse the repository at this point in the history
# Conflicts:
#	MekHQ/resources/mekhq/resources/GUI.properties
#	MekHQ/src/mekhq/campaign/Campaign.java
#	MekHQ/src/mekhq/campaign/CampaignOptions.java
#	MekHQ/src/mekhq/campaign/io/CampaignXmlParser.java
#	MekHQ/src/mekhq/campaign/mission/BotForceRandomizer.java
#	MekHQ/src/mekhq/campaign/personnel/enums/PersonnelStatus.java
#	MekHQ/src/mekhq/campaign/personnel/familyTree/Genealogy.java
#	MekHQ/src/mekhq/campaign/personnel/generator/DefaultPersonnelGenerator.java
#	MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java
#	MekHQ/src/mekhq/campaign/universe/generators/companyGenerators/AbstractCompanyGenerator.java
#	MekHQ/src/mekhq/gui/CampaignGUI.java
#	MekHQ/src/mekhq/gui/adapter/PersonnelTableMouseAdapter.java
#	MekHQ/src/mekhq/gui/dialog/CustomizePersonDialog.java
#	MekHQ/src/mekhq/gui/dialog/GMToolsDialog.java
#	MekHQ/src/mekhq/gui/dialog/HireBulkPersonnelDialog.java
#	MekHQ/src/mekhq/gui/enums/PersonnelFilter.java
#	MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java
#	MekHQ/src/mekhq/gui/view/PersonViewPanel.java
#	MekHQ/unittests/mekhq/campaign/personnel/enums/PersonnelStatusTest.java
  • Loading branch information
IllianiCBT committed Sep 25, 2024
2 parents d83c2a1 + b14aad7 commit 5ae936e
Show file tree
Hide file tree
Showing 24,625 changed files with 1,701,731 additions and 1,532,696 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
root = true
charset = "utf-8"

[*.java]
indent_style = "space"
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 140 # Google Style Guide
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = "both"
indent_brace_style = "K&R"
wildcard_import_limit = 10
continuation_indent_size = 4 # Google Style Guid

[*.xml]
indent_style = "space"
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.blk]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.mtf]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
169 changes: 169 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
name: Bug Report
description: Report an issue with MekHQ
title: "Brief Description"
labels: [bug]
body:
- type: markdown
attributes:
value: |
**Fields marked with a red asterisk (*) are mandatory to complete.**
In this form, you’ll provide a description of the issue, steps to reproduce it, your system details, and any files that may help us resolve the problem.
- type: checkboxes
id: prerequisites-and-pre-issue-checks
attributes:
label: Prerequisites and Pre-Issue Checklist
description: Please confirm you have completed the following steps before submitting an issue.
options:
- label: |
I'm reporting the issue to the correct repository:
- [MegaMek](https://github.com/MegaMek/megamek/issues)
- [MegaMekLab](https://github.com/MegaMek/megameklab/issues)
- [MekHQ](https://github.com/MegaMek/mekhq/issues)
required: true
- label: "I've tested the issue against at least the latest MILESTONE version"
required: true
- label: "I've asked on the MegaMek Discord about the error"
required: true
- label: "I've reviewed the BattleTech rules and MekHQ documentation, and I've confirmed that something isn't working as intended."
required: true
- label: "I've searched the Github tracker and haven't found the issue listed"
required: true

- type: markdown
attributes:
value: |
![How to Search the GitHub Tracker](https://i.imgur.com/QMJY7pll.png)
- type: dropdown
id: severity
attributes:
label: Severity *
description: Choose the severity of the bug.
options:
- "Critical (Game-breaking/Crash): The game crashes or a core feature (like saving, loading, or network connection) is completely unusable."
- "High (Major Disruption): A major feature is broken or incorrect, but a workaround exists."
- "Medium (Gameplay Limitation): Non-core functionality is impaired, providing a suboptimal but playable experience."
- "Low (Minor/Nuisance): Minor glitches or cosmetic issues that don’t affect gameplay and occur rarely."
validations:
required: true

- type: markdown
attributes:
value: |
## Brief Description *
What happened? Please explain the issue in one or two sentences and how it stopped you from using the program. You can also upload a picture of the issue if possible.
- type: textarea
id: brief-description
attributes:
label: Brief Description *
description: |
Please describe the issue in detail:
1. Provide in-game screenshots if possible.
2. If it's a rules-related issue:
- Specify the rulebook edition
- Include the page number
- Quote the relevant text
3. If applicable, list the steps to reproduce the issue in the saved game.
placeholder: "Describe the issue here..."
validations:
required: true

- type: markdown
attributes:
value: |
## Steps to Reproduce
How did the problem happen? Please list the steps you followed before the issue appeared.
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: Provide a detailed numbered list of steps.
placeholder: "1. Step one\n2. Step two\n3. Step three"

- type: markdown
attributes:
value: |
## User Environment
For the next sections go to the logs folder inside MekHQ (usually called 'logs'). Find the MekHQ.log file, open it with a text editor. It will look like the image below. Fill the information you find there into the following sections:
![Example Screenshot](https://i.imgur.com/KD8cnvf.png)
- type: dropdown
id: operating-system
attributes:
label: Operating System *
description: What kind of computer are you using? Select your operating system (like Windows or Mac).
options:
- "Windows 11"
- "Windows 10"
- "Older Windows"
- "Mac"
- "Linux"
validations:
required: true

- type: input
id: java-version
attributes:
label: Java Version *
description: What version of Java is on your computer? You can find this information at the top of your MekHQ.log file.
validations:
required: true

- type: dropdown
id: megamek-version
attributes:
label: MekHQ Suite Version *
description: Which version of MekHQ are you using? Pick your version from the list. If you select "Free Text," please enter your version in the box below.
options:
- "v0.50.0"
- "v0.49.19.1"
- "v0.49.19"
- "v0.49.18"
- "v0.49.17"
- "v0.49.16"
- "v0.49.15"
- "Free Text (type manually)"

- type: input
id: custom-megamek-version
attributes:
label: Custom MekHQ Version
description: If you selected "Free Text" in the version dropdown, enter your MegaMek version here.
placeholder: "Enter your MegaMek version here if it's not listed above."

- type: markdown
attributes:
value: |
## Files
Please zip (compress) your logs folder and upload the file here. If you're not sure how to zip the folder, ask for help. It would also be helpful to screenshot the log header (like above) and paste it here.
- type: textarea
id: attached-files
attributes:
label: Attach Files
description: Provide any relevant files by attaching them to the issue.
placeholder: "Drag and drop or click to upload relevant files."

- type: checkboxes
id: final-checks
attributes:
label: Final Checklist
description: Before submitting, confirm the following steps
options:
- label: "I've checked to make sure that this issue has not already been filed"
required: true
- label: "I'm reporting only one issue in this ticket for clarity and focus"
required: true

- type: markdown
attributes:
value: |
**You will not be able to submit this report unless all fields marked with a red asterisk (*) are complete and filled out before submitting your report.**
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: false

contact_links:
- name: Questions
url: https://discord.gg/megamek
about: If you have questions about the above please ask on the Discord before selecting

- name: MegaMek Wiki
url: https://github.com/MegaMek/megamek/wiki
about: Before opening a new issue, please check the MegaMek Wiki for information.

- name: BattleTech Forums
url: https://bg.battletech.com/forums/index.php?board=29.0
about: Join the discussions and find more information on the official BattleTech Forums.
97 changes: 97 additions & 0 deletions .github/ISSUE_TEMPLATE/request_for_enhancement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Request for Enhancement
description: Use this to submit a Request for Enhancement (RFE)—asking for a new feature, extending an existing feature, or implementing missing rules or errata.
title: "[RFE] Brief Description"
labels: [(RFE) Enhancement]
body:
- type: markdown
attributes:
value: |
**This form is to submit a Request for Enhancement (RFE)—asking for a new feature, extending an existing feature, or implementing missing rules or errata. Submitting an RFE is no guarantee of its prioritization by the development team.**
**Fields marked with a red asterisk (*) are mandatory to complete.**
Before submitting an RFE, please review our [Content Policy](https://github.com/MegaMek/megamek/wiki/Unofficial-or-Non%E2%80%90Canon-Content-Policy).
- type: checkboxes
id: prerequisites-and-pre-issue-checks
attributes:
label: Prerequisites and Pre-Issue Checklist
description: Please confirm you have completed the following steps before submitting an RFE.
options:
- label: |
I'm reporting the RFE to the correct repository:
- [MegaMek](https://github.com/MegaMek/megamek/issues)
- [MegaMekLab](https://github.com/MegaMek/megameklab/issues)
- [MekHQ](https://github.com/MegaMek/mekhq/issues)
required: true
- label: "Does this conform with our Content Policy linked above?"
required: true
- label: "I've searched the GitHub tracker and haven't found a similar feature request listed"
required: true

- type: markdown
attributes:
value: "![How to Search the GitHub Tracker](https://i.imgur.com/QMJY7pll.png)"

- type: dropdown
id: rfe
attributes:
label: RFE Details *
description: Please select the type of RFE you're submitting.
options:
- "This is a new feature"
- "This is an improvement to an existing feature"
- "This is an implementation of a missing official rule"
- "This is a request to implement Errata"
validations:
required: true

- type: markdown
attributes:
value: |
For new features or improvements to existing features, please describe them in detail.
For rule implementations, provide the book, page, and edition.
For errata, reference the official documents: [Errata](https://bg.battletech.com/errata/)
- type: textarea
id: brief-description
attributes:
label: Brief Description *
description: |
## Brief Description of the Feature *
placeholder: |
Provide a detailed description of the requested feature, including why it's needed, any relevant use cases, and screenshots/mock-ups if applicable.
validations:
required: true

- type: input
id: megamek-version
attributes:
label: MekHQ Suite Version *
description: Which version of MekHQ are you using? All RFEs must be checked against the most current development release.
placeholder: "e.g., v0.50.0, v0.49.19.1, or development version"
validations:
required: true

- type: textarea
id: attached-files
attributes:
label: Attach Files
description: Provide any relevant files by attaching them to the request here.
placeholder: "Drag and drop or click to upload relevant files."

- type: checkboxes
id: final-checks
attributes:
label: Final Checklist
description: Before submitting, confirm the following steps-
options:
- label: "I've checked to make sure that this RFE has not already been filed"
required: true
- label: "I am requesting implementation of only one relevant set of features in this ticket for clarity and focus "
required: true

- type: markdown
attributes:
value: |
**You will not be able to submit this report unless all fields marked with a red asterisk (*) are complete and filled out before submitting your report.**
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Build with Gradle
working-directory: mekhq
run: ./gradlew build --stacktrace --scan
run: ./gradlew build -x checkstyleMain -x checkstyleTest --stacktrace --scan

- name: Upload Test Logs on Failure
uses: actions/upload-artifact@v4
Expand All @@ -114,8 +114,3 @@ jobs:
with:
name: mhq-release-tgz-${{ matrix.java-distribution }}-jdk${{ matrix.java-version }}
path: mekhq/MekHQ/build/distributions/*.tar.gz
# - name: Upload Zip Release
# uses: actions/upload-artifact@v4
# with:
# name: mhq-release-zip-${{ matrix.java-distribution }}-jdk${{ matrix.java-version }}
# path: mekhq/MekHQ/build/distributions/*.zip
Loading

0 comments on commit 5ae936e

Please sign in to comment.