Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Aug 1, 2020
2 parents a191cd6 + 5d79013 commit 04d8f26
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
[workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v2
with:
path: staging
5 changes: 5 additions & 0 deletions MusicDriver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Music Box Driver
Blue print code
```
0eNrtnf9uG7kRx1/lsED/qnLlj90lGRQB0l7/aq8I7tKiQVEYsrxJFidLwkpKzwj8AH2LPlufpLuWHcnkzGpmrXVuzv7nDqcb0tKHP2ZIzpf8nJ3Pt9WqqReb7OXnrJ4tF+vs5T8/Z+v6w2I67z7bXK2q7GX2qW422/aTSbaYXnYf7CxevMmuJ1m9uKh+zl7q6wmj5F8OShpWydcHJS2r5LuDkvn1vyZZtdjUm7ra/eib/7g6W2wvz6um/Tn70pfT+fzFfHq5amtcLddtkeWi+3NtNS+0nWRX7b/bb5K1/DbNcn52Xn2cfqqXTWczq5vZtt6ctf/v4kvB93Wz3pyRv7fOdpWvN9OupVT3H5eraTPddH8je9X97+26av/GfNm0P2bTbKtdiUU16/7muvsjuvtHU10c/tj64pb+wX/bjsyHpqoWBMvr64PP7tAZIrp8fHRqVHQ6Am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nTx5F0KbHccHWCEHa6VUxOsH4lUAMZZfC9UCYJQqDIziSG0gmGpe+3gQbI/w4iiPBcaTJOT4ItkYIckRFkic0C0hb4k96DjFga4QpR1okNzbv5jWyUgs2RvhxtEWS+2Sy3rOKAfDGGiE4WHH0xCPLY+l2NmdGloYoSWobk6FJktzpkyWm7XkrGbZGCHKESYKDAasY0hnEGiHI0R4Jziuzmi7lgo0RfnaIXsU8pl7l7ZAnFW9lPwct8Puvq2oBBERo85Xc972ph1GW/eL6rY5l1+Bfxa/ah7vV8/l09hPrXUx+GxhqypUteCPOPv6Ie3N8e+GrjiWodbjv6NzUwRwL5pHGwqAZ7038guxvhzXSA+a0nqjIsl6x10czIoGn/ah/ejcyW/N6U122P/18vq1WTd329Ek2n55XLafs++26nn3zh+XP33zX1J+qrjO0/1zfgHXOal0on3t9ff1/SKdFmA==
```
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# FactorioComposer
[Chinese readme](https://github.com/khjxiaogu/FactorioComposer/blob/master/README_CN.md)
Midi music blueprint generator for factorio.
Import your midi music to create circuit music blueprint for factorio.
Import your midi music to create circuit music blueprint for factorio.
![Java CI with Maven](https://github.com/khjxiaogu/FactorioComposer/workflows/Java%20CI%20with%20Maven/badge.svg)
# Usage
1. Ensure you have Java8 or newer jre/jdk installed.
2. Download newest version of factorio composer from [Releases](https://github.com/khjxiaogu/FactorioComposer/releases).
3. Double click to run the release jar.
4. Import midi file or folder as you wish.
5. Copy blueprint code for the dialog.
6. Import blueprint code to factorio and place it.
7. Place a Music Box Driver [blueprint](https://github.com/khjxiaogu/FactorioComposer/blob/master/MusicDriver.md).
8. Connect as the arrow instructed with green wire.
![instruction](https://res.khjxiaogu.com/piclib/db48c091-958d-4916-83c9-9bb002a9c0c5.jpg)
[view picture](https://github.com/khjxiaogu/FactorioComposer/blob/master/instruction.jpg)
9. Set Constant combinator with filter __"M" "A" "X" "V"__ 's __"V"__ signal count to music ticks in the blueprint title.
10. Turn off Constant combinator with filter __"P" "A" "U" "S" "E"__.
11. Enjoy
17 changes: 17 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 异星工厂音乐生成器
把midi音乐转换为异星工厂的音乐盒蓝图
![Java CI with Maven](https://github.com/khjxiaogu/FactorioComposer/workflows/Java%20CI%20with%20Maven/badge.svg)
# Usage
1. 确保已经安装java 8+.
2.[Releases](https://github.com/khjxiaogu/FactorioComposer/releases)下载最新版的jar.
3. 双击运行下载的jar.
4. 选择midi文件或者文件夹来导入.
5. 复制弹出窗口中的蓝图代码.
6. 在异星工厂中导入蓝图并放置.
7. 在旁边放一个音乐盒驱动器 [蓝图](https://github.com/khjxiaogu/FactorioComposer/blob/master/MusicDriver.md).
8. 用绿线安装箭头指示接上.
![instruction](https://res.khjxiaogu.com/piclib/db48c091-958d-4916-83c9-9bb002a9c0c5.jpg)
[在github看图](https://github.com/khjxiaogu/FactorioComposer/blob/master/instruction.jpg)
9. 设置输出信号为 __"M" "A" "X" "V"__ 的常量箱子的 __"V"__ 信号数值为蓝图标题上面的ticks.
10. 关闭输出信号为 __"P" "A" "U" "S" "E"__的常量箱子.
11. 享受音乐
Binary file added instruction.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 04d8f26

Please sign in to comment.