Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DotPrism authored Jan 28, 2025
0 parents commit 34952d3
Show file tree
Hide file tree
Showing 58 changed files with 1,575 additions and 0 deletions.
147 changes: 147 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Bug Report
description: Create a Bug Report
title: "[Bug]: "
labels: ["Bug"]
projects: ["Team-Immersive-Intelligence/1"]
assignees:
- CarverBot
body:
- type: checkboxes
id: terms
attributes:
label: Initial Check
description: Before you submit this issue, please check previously reported and fixed issues to avoid duplication.
options:
- label: I have checked the existing issues and this one is not a duplicate
required: true

- type: dropdown
id: type
attributes:
label: Category
description: Select the category that matches this bug the best
options:
- 🧱Multiblocks
- 📻Smaller Devices
- 🧰Items
- ✈Vehicles
- 🙋‍♂️Hanses
- 🧩Compat
- 📗Manual
- 🧊Rendering
- 🔑Utility
default: 0

- type: textarea
id: what-happened
attributes:
label: Description
description: |
A clear description of what the bug is.
Tip: You can attach screenshots by dragging and dropping files into the text area.
placeholder: The device started rotating spontaneously, AGAIN.
validations:
required: true

- type: dropdown
id: side
attributes:
label: Side
description: Select side this bug occurs on. Allows selecting both options.
multiple: true
options:
- Client
- Server
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Steps to reproduce the behavior.
placeholder: |
1. Place a block
2. Wait for the block to do things
3. See the block doing its things
4. Actually it doesn't
validations:
required: false

- type: textarea
id: expected-behaviour
attributes:
label: Expected Behaviour
description: A clear description of what you expected to happen. Skip if very obvious.
placeholder: The rotating device shouldn't rotate... it just shouldn't do that!
validations:
required: true

- type: input
id: log
attributes:
label: Logs
description: |
If the bug caused a crash or produced some visible evidence in the logs, upload them to [mclo.gs](https://mclo.gs/) and paste a link here.
MCLO.GS is a log upload platform, that makes them convenient to view.
- type: textarea
id: other-evidence
attributes:
label: Other Evidence
description: |
If you have any images or other evidence that would help identify the bug, include them as well.
- type: dropdown
id: os
attributes:
label: Operating System
description: Select your Operating System.
options:
- Windows 10 or newer
- Older Windows versions
- Linux
- MacOS
- Other
default: 0
validations:
required: true

- type: dropdown
id: mc-version
attributes:
label: Minecraft Version
description: Select your Minecraft Version.
options:
- 1.12.2
default: 0
validations:
required: true

- type: dropdown
id: mod-version
attributes:
label: Immersive Intelligence Version
description: Select Immersive Intelligence version.
options:
- 0.3.0 (Recent Dev Build)
- 0.3.0 (dev or other experimental branch)
- 0.2.2 and older
default: 0
validations:
required: true

- type: dropdown
id: ie-version
attributes:
label: Immersive Engineering Version
description: |
Select Immersive Engineering version.
If you're using an older version, the mod may not work correctly. In that case, please check if the bug you're reporting occurs in a recent version of IE.
options:
- 0.98
- 0.92
default: 0
validations:
required: true
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Feature Request
description: Request a New Feature
title: "[Feature Request]: "
labels: ["Feature"]
projects: ["Team-Immersive-Intelligence/1"]
assignees:
- CarverBot
body:
- type: checkboxes
id: terms
attributes:
label: Initial Check
description: Before you submit this issue, please check if someone hasn't already requested this feature. In that case, if you have any additional thoughts on what already has been requested, include them in a comment there to avoid duplication.
options:
- label: I have checked the existing issues and this one is not a duplicate
required: true

- type: dropdown
id: core
attributes:
label: Core Category
description: Select the Core Category this feature should be included in. If it doesn't match any of the categories, make sure Immersive Intelligence is the addon that needs this feature.
options:
- 📻Data and Electronics
- 💣Warfare
- 📦Logistics
- 🕵️‍♂️Intelligence
default: 0
validations:
required: true

- type: dropdown
id: type
attributes:
label: Feature Category
description: Select the Sub-Category that matches this feature the best
options:
- 🧱Multiblocks
- 📻Smaller Devices
- 🧰Items
- ✈Vehicles
- 🙋‍♂️Hanses
- 🧩Compat
- 📗Manual
- 🧊Rendering
- 🔑Utility
default: 0

- type: textarea
id: what-happened
attributes:
label: Description
description: |
Describe what do you want to add, how it will work, for what price and who's ~~@Pabilo8~~ gonna do all the coding.
placeholder: Floating Arithmetical Rotato Device(tm) could greatly benefit II's Data category, due to its rotation and maths and floatingness abilities.
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: To Reproduce
description: If you have something more about the idea, that's the place to go. If not, leave this empty ^^.
validations:
required: false
113 changes: 113 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Build IEAddon

on:
push: #Trigger On Push
branches: [ "master" ]
workflow_dispatch: #Manual Trigger

jobs:
optimize-assets:
continue-on-error: true
name: Optimize Assets
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg

- name: Optimize PNGs
continue-on-error: true
run: chmod -R a+rX ./gradle/tools/* ; bash ./gradle/tools/opti.sh -i

- name: Optimize Audio
continue-on-error: true
run: chmod -R a+rX ./gradle/tools/* ; bash ./gradle/tools/opti.sh -a
env:
LOC_FFMPEG: ${{ steps.setup-ffmpeg.outputs.ffmpeg-path }}
LOC_FFPROBE: ${{ steps.setup-ffmpeg.outputs.ffprobe-path }}

- name: Setup Git User
uses: fregante/setup-git-user@v2

- name: Setup Git User
run: git config --global user.name "Automated Carver Device(tm)"

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
continue-on-error: true
id: verify-changed-files
with:
files: |
**/*.png
**/*.ogg
- name: Create Pull Request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/[email protected]
with:
title: Optimized Assets
commit-message: optimized assets
body: Assets were automatically optimized.
token: ${{ secrets.OPTIMIZATION_TOKEN }}
build:
runs-on: ubuntu-latest
name: Create a Dev Build
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.OPTIMIZATION_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 8

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: chmod +x gradlew ; ./gradlew build --scan

- name: Upload test build
uses: actions/upload-artifact@v3
with:
name: test-build
path: |
build/libs/
!build/libs/*-core.jar
!build/libs/*-deobf.jar
!build/libs/*-sources.jar
- name: Upload sources
uses: actions/upload-artifact@v3
with:
name: sources
path: |
build/libs/*-core.jar
build/libs/*-deobf.jar
build/libs/*-sources.jar
- name: Read Properties File
id: rp
uses: christian-draeger/[email protected]
with:
path: './gradle.properties'
properties: 'mcmod_Name mcmod_Developer mcmod_URL'

- name: Notify Discord
uses: rguillaume/[email protected]
continue-on-error: true
env:
MOD_NAME: ${{ steps.rp.outputs.mcmod_Name }}
MOD_DEVOLOPER: ${{ steps.rp.outputs.mcmod_Developer }}
MOD_URL: ${{ steps.rp.outputs.mcmod_URL }}
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message: ""
embed: '{"title": "Dev Build assembly completed!","color": 3617648,"description": "You are granted access to a new, automatically compiled Dev Build of ${{ env.MOD_NAME }}:tm:. \n\nThis build can be downloaded by clicking on the link above, then on `current-build` in `Artifacts` section.\n\nHappy testing and please report any bugs you encounter. ^^","url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}","author": {"name": " ${{ env.MOD_NAME }}","url": "https://github.com/${{ github.repository }}","icon_url": "${{ vars.PROJECT_LOGO }}"}}'

28 changes: 28 additions & 0 deletions .github/workflows/build_pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build IEAddon

on:
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
name: Check if code can be compiled
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.OPTIMIZATION_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 8

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: chmod +x gradlew ; ./gradlew compileJava
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# eclipse
bin
*.launch
.settings
*.metadata
*.classpath
*.settings/
.project
eclipse

# idea
out
*.ipr
*.iws
*.iml
.idea

# gradle
*.class
build
bin/
.gradle
custom.gradle

# Forge
run/
hs_err_pid*

# Modworks Generated Sources
src/main/generated/*

# System
*Thumbs.db
*.ini
Loading

0 comments on commit 34952d3

Please sign in to comment.