mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-14 11:27:42 +08:00
紧急更新,修复安卓无法使用的小bug
This commit is contained in:
parent
5d48fcd96a
commit
8aa503710d
@ -19,6 +19,6 @@ Terms & Conditions: ../License.md
|
|||||||
|
|
||||||
from .main import *
|
from .main import *
|
||||||
|
|
||||||
__version__ = "0.5.0.1"
|
__version__ = "0.5.0.2"
|
||||||
__all__ = []
|
__all__ = []
|
||||||
__author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon"))
|
__author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon"))
|
||||||
|
@ -1593,6 +1593,8 @@ class midiConvert:
|
|||||||
:return 成功与否,成功返回(True,未经过压缩的源,结构占用大小),失败返回(False,str失败原因)
|
:return 成功与否,成功返回(True,未经过压缩的源,结构占用大小),失败返回(False,str失败原因)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from TrimMCStruct import Structure
|
||||||
|
|
||||||
if self.enable_old_exe_format:
|
if self.enable_old_exe_format:
|
||||||
raise CommandFormatError("使用mcstructure结构文件导出时不支持旧版本的指令格式。")
|
raise CommandFormatError("使用mcstructure结构文件导出时不支持旧版本的指令格式。")
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from TrimMCStruct import Structure, Block, TAG_Long, TAG_Byte
|
|
||||||
|
|
||||||
bdx_key = {
|
bdx_key = {
|
||||||
"x": [b"\x0f", b"\x0e", b"\x1c", b"\x14", b"\x15"],
|
"x": [b"\x0f", b"\x0e", b"\x1c", b"\x14", b"\x15"],
|
||||||
@ -241,6 +240,7 @@ def form_note_block_in_NBT_struct(
|
|||||||
:return Block
|
:return Block
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from TrimMCStruct import Block, TAG_Byte
|
||||||
return Block(
|
return Block(
|
||||||
"minecraft",
|
"minecraft",
|
||||||
"noteblock",
|
"noteblock",
|
||||||
@ -271,6 +271,8 @@ def form_repeater_in_NBT_struct(
|
|||||||
:param delay: 1~4
|
:param delay: 1~4
|
||||||
:return Block()"""
|
:return Block()"""
|
||||||
|
|
||||||
|
from TrimMCStruct import Block
|
||||||
|
|
||||||
return Block(
|
return Block(
|
||||||
"minecraft",
|
"minecraft",
|
||||||
"unpowered_repeater",
|
"unpowered_repeater",
|
||||||
@ -338,6 +340,9 @@ def form_command_block_in_NBT_struct(
|
|||||||
:return:str
|
:return:str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
from TrimMCStruct import Block, TAG_Long
|
||||||
|
|
||||||
return Block(
|
return Block(
|
||||||
"minecraft",
|
"minecraft",
|
||||||
"command_block"
|
"command_block"
|
||||||
@ -384,6 +389,9 @@ def commands_to_structure(
|
|||||||
:return 成功与否,成功返回(结构类,结构占用大小),失败返回(False,str失败原因)
|
:return 成功与否,成功返回(结构类,结构占用大小),失败返回(False,str失败原因)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
from TrimMCStruct import Structure
|
||||||
|
|
||||||
_sideLength = bottem_side_length_of_smallest_square_bottom_box(
|
_sideLength = bottem_side_length_of_smallest_square_bottom_box(
|
||||||
len(commands), max_height
|
len(commands), max_height
|
||||||
)
|
)
|
||||||
|
@ -38,6 +38,12 @@ method_id = 3 # 指定使用的转换算法
|
|||||||
# 使用计分板播放器,转换为附加包文件
|
# 使用计分板播放器,转换为附加包文件
|
||||||
convertion_result = conversion.to_mcpack(method_id,*prompts)
|
convertion_result = conversion.to_mcpack(method_id,*prompts)
|
||||||
|
|
||||||
|
# 使用延迟播放器,转换为附加包文件
|
||||||
|
# 注意,在执行这个功能之前,你需要使用指令
|
||||||
|
# pip install TrimMCStruct
|
||||||
|
# 安装最新版的TrimMCStruct库
|
||||||
|
convertion_result = conversion.to_mcpack_with_delay(method_id,*prompts)
|
||||||
|
|
||||||
# 使用计分板播放器,转换为BDX结构文件
|
# 使用计分板播放器,转换为BDX结构文件
|
||||||
convertion_result = conversion.to_BDX_file(method_id,*prompts)
|
convertion_result = conversion.to_BDX_file(method_id,*prompts)
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
Brotli>=1.0.9
|
Brotli>=1.0.9
|
||||||
mido>=1.2.10
|
mido>=1.2.10
|
||||||
TrimMCStruct>=0.0.5.7
|
|
Loading…
Reference in New Issue
Block a user