Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit befe607

Browse files
committed
1.6-Snapshot
1 parent cbd448a commit befe607

File tree

4 files changed

+41
-147
lines changed

4 files changed

+41
-147
lines changed

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
# SC-to-RSC
22

3-
一个用于将`Slimefun`附属插件`SlimeCustomizer`的配置转为`RykenSlimeCustomizer`配置的脚本
4-
作者:`balugaq`
3+
A simple script to convert `Slimefun` addon `SlimeCustomizer`'s configuration to `RykenSlimeCustomizer` configuration.
4+
Author: balugaq
55

6-
#### 将 SC 的配置转为RSC
7-
#### 前提条件:能用SC加载的配置
8-
#### 符合条件才能转为RSC
6+
This repository is for Chinese SlimeCustomizer and Chinese RykenSlimeCustomizer only.
97

10-
# 特别鸣谢
8+
#### Convert SlimeCustomizer configuration to RykenSlimeCustomizer configuration.
9+
#### Condition: The SlimeCustomizer configuration must be all right and SlimeCustomizer can load the configuration.
1110

12-
特别感谢 `haiman` 大佬在 `github` 方面帮助了我
11+
## Special thanks
12+
13+
Special thanks to `haiman` who helped me on `github`
1314
> haiman's github home page
1415
>
1516
> <https://github.com/haiman233>
1617
17-
# 使用方式
18+
## Usage
19+
20+
### Run sc_to_rsc.exe
21+
22+
1. Unzip all the files to `plugins/SlimeCustomizer` and run `sc_to_rsc.exe`. The program will generate a `out` folder.
23+
2. Change the `info.yml` in `out` folder.
24+
3. Copy the `out` folder to `plugins/RykenSlimeCustomizer/addons`.
25+
26+
### Run main.bat
1827

19-
### 按照如下步骤运行此脚本
20-
1. 你的电脑需要安装了`python3.6`或以上
21-
2. 将全部文件解压到 `plugins/SlimeCustomizer`
22-
3. 运行`main.bat``main.sh`,程序将会生成`translated`文件夹
23-
4.`translated`直接放到`RykenSlimeCustomizer/addons`内即可
28+
1. You must have `python3.6` or above installed on your computer.
29+
2. Unzip all the files to `plugins/SlimeCustomizer`.
30+
3. Run `main.bat`. The program will generate an `out` folder.
31+
4. Change the `info.yml` in `out` folder.
32+
5. Copy the `out` folder to `plugins/RykenSlimeCustomizer/addons`.
2433

25-
# 注意事项
34+
# Note
2635

27-
#### 此脚本并不能保证绝对能使用!!!
28-
#### 如遇能用SC加载的内容无法转为RSC, 或转出来无法使用
29-
#### 请及时提issue~
36+
#### This script cannot guarantee 100% success.
37+
#### If you encounter a problem with the conversion, please report it as an issue.

UpdateLog.md

Lines changed: 0 additions & 116 deletions
This file was deleted.

sc_to_rsc.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,15 +684,15 @@ def translateInfo():
684684
}
685685
else:
686686
items = {
687-
'id': "RSC_SlimefunExpansion",
688-
'name': "Unknown addon",
687+
'id': "ChangeMe",
688+
'name': "ChangeMe",
689689
'depends': [],
690690
'pluginDepends': [],
691691
'scriptListener': "",
692-
'version': "1.0 SNAPSHOT",
693-
'description': 'No description',
694-
'authors': [""],
695-
'repo': ''
692+
'version': "ChangeMe",
693+
'description': "ChangeMe",
694+
'authors': ["SlimeReloadingProject"],
695+
'repo': ""
696696
}
697697
data = getYamlContext(f2)
698698
depend = data.get('depend', [])

translate_config.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,27 +149,29 @@ additions: # Addition config
149149
researches: {}
150150

151151
info:
152-
# Enable or disable the addon (When false, it will read sc-addon.yml)
152+
# Enable or disable the following info of the addon
153153
enable: false
154154
# The id of the addon in RykenSlimeCustomizer
155-
id: RSC_SlimefunExpansion
155+
id: ChangeMe
156156
# The name of the addon
157-
name: Unknown addon
157+
name: ChangeMe
158158
# The addon depends which based on RykenSlimeCustomizer
159159
depends: []
160-
# The plugin depends which based on Slimefun (Usually won't auto load)
160+
# The plugin depends which based on Slimefun (Usually will auto load)
161161
pluginDepends:
162162
- Slimefun
163163
#- GuizhanLibPlugin
164+
# The script listener of the addon (Not necessary to change)
165+
scriptListener: ""
164166
# The version of the addon
165-
version: 1.0 SNAPSHOT
167+
version: ChangeMe
166168
# The description of the addon
167-
description: No description
169+
description: ChangeMe
168170
# The authors of the addon
169171
authors:
170-
- ''
172+
- SlimefunSlimeReloadingProject
171173
# The github repository of the addon
172-
repo: ''
174+
repo: ""
173175

174176
# Don't change this
175177
config-version: 1.6-SNAPSHOT

0 commit comments

Comments
 (0)