mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 04:04:25 +00:00
Compare commits
28
Commits
v14.23
...
14-develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
299c8f53cf | ||
|
|
13fb0a4f92 | ||
|
|
921374f24f | ||
|
|
d2d244c70e | ||
|
|
f201f344a2 | ||
|
|
76d6ed9a41 | ||
|
|
b807aa1fb1 | ||
|
|
d797ed378a | ||
|
|
c3f8f1eb8f | ||
|
|
226d953012 | ||
|
|
d1ab2fbf43 | ||
|
|
00a14010c6 | ||
|
|
a198e40fc7 | ||
|
|
5b820c537d | ||
|
|
6e1be02cf0 | ||
|
|
9abf9eb779 | ||
|
|
fbc95314ad | ||
|
|
d4576249ac | ||
|
|
dfe47f7c64 | ||
|
|
1199e10ca4 | ||
|
|
61287cf64c | ||
|
|
b16058340c | ||
|
|
ac09a51f48 | ||
|
|
3e5bd83b5c | ||
|
|
4ce00d07b5 | ||
|
|
6e9380be49 | ||
|
|
53050a63f5 | ||
|
|
34ac3ac4f2 |
No files matched your search
@@ -38,7 +38,7 @@ body:
|
||||
description: |
|
||||
The files are in the folder `<minecraft-directory>/crash-reports`
|
||||
[Generate URL](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "Ex: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: csl-log
|
||||
attributes:
|
||||
@@ -46,7 +46,7 @@ body:
|
||||
description: |
|
||||
The path to the file is `<minecraft-directory>/CustomSkinLoader/CustomSkinLoader.log`.
|
||||
[Generate URL](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "Ex: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: latest-log
|
||||
attributes:
|
||||
@@ -54,28 +54,37 @@ body:
|
||||
description: |
|
||||
The path to the file is `<minecraft-directory>/logs/latest.log`.
|
||||
[Generate URL](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "Ex: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: forge-log
|
||||
attributes:
|
||||
label: "[Only Forge User] Link to debug.log (=>1.12.2) or fml-client-latest.log (=<1.12.2) if applicable"
|
||||
label: "[Only Forge User] Link to Forge Log if applicable"
|
||||
description: |
|
||||
The path to the file is `<minecraft-directory>/logs/debug.log` or `<minecraft-directory>/logs/fml-client-latest.log`.
|
||||
if your mod loader isn't `Forge`, URL can set empty
|
||||
[Generate URL](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "Ex: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: mod-version
|
||||
attributes:
|
||||
label: Mod Version
|
||||
placeholder: "Ex: 14.16"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: mc-version
|
||||
attributes:
|
||||
label: Minecraft Version
|
||||
placeholder: "Ex: 1.19.4"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: mc-launcher-version
|
||||
attributes:
|
||||
label: Minecraft Launcher Name and Version
|
||||
placeholder: "Ex: HMCL v3.5.4.232"
|
||||
description: |
|
||||
If you don't know the version of the game, you can just fill in the name of the game launcher
|
||||
- type: dropdown
|
||||
id: loader-type
|
||||
attributes:
|
||||
@@ -109,3 +118,7 @@ body:
|
||||
- label: |
|
||||
This is a valid bug (I am able to reproduce this on the latest dev build).
|
||||
required: true
|
||||
- label: |
|
||||
This problem is triggered in the latest version of the mod (if not the latest please upgrade the mod first)
|
||||
required: true
|
||||
|
||||
@@ -38,7 +38,7 @@ body:
|
||||
在游戏目录下的 `crash-reports` 文件夹下,里面找最近的报告生成时间
|
||||
客户端若无崩溃则直接填写 `客户端无崩溃`
|
||||
[生成连接](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "示例: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: csl-log
|
||||
attributes:
|
||||
@@ -46,7 +46,7 @@ body:
|
||||
description: |
|
||||
文件路径:`<游戏路径>/CustomSkinLoader/CustomSkinLoader.log`.
|
||||
[生成连接](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "示例: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: latest-log
|
||||
attributes:
|
||||
@@ -54,26 +54,37 @@ body:
|
||||
description: |
|
||||
文件路径:`<游戏路径>/logs/latest.log`.
|
||||
[生成连接](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "示例: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: forge-log
|
||||
attributes:
|
||||
label: "[仅Forge用户] debug.log (=>1.12.2) 或者 fml-client-latest.log (=<1.12.2) 查看地址"
|
||||
label: "[仅Forge用户] Forge Log 查看地址"
|
||||
description: |
|
||||
文件路径:`<游戏路径>/logs/debug.log` 或者 `<游戏路径>/logs/fml-client-latest.log`.
|
||||
若没有使用 `Forge` 加载器的,可以不填写
|
||||
[生成连接](https://mclo.gs)
|
||||
placeholder: "https://mclo.gs/xxxxxx"
|
||||
placeholder: "示例: https://mclo.gs/xxxxxx"
|
||||
- type: input
|
||||
id: mod-version
|
||||
attributes:
|
||||
label: 模组版本
|
||||
placeholder: "示例: 14.16"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: mc-version
|
||||
attributes:
|
||||
label: Minecraft游戏版本
|
||||
placeholder: "示例: 1.19.4"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: mc-launcher-version
|
||||
attributes:
|
||||
label: Minecraft启动器 名称 及 版本
|
||||
placeholder: "示例: HMCL v3.5.4.232"
|
||||
description: |
|
||||
若不知道游戏版本 可以只填写游戏启动器的名称
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
@@ -109,3 +120,6 @@ body:
|
||||
- label: |
|
||||
确认你的模组版本是最新的开发版本,且文件下载正确,没有出现类似forge下载了fabric版的这类基础问题
|
||||
required: true
|
||||
- label: |
|
||||
这个问题是在最新的mod版本触发(若不是最新的请先升级mod)
|
||||
required: true
|
||||
@@ -15,7 +15,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-common:
|
||||
name: Build Common
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
environment: Build
|
||||
steps:
|
||||
@@ -39,21 +39,167 @@ jobs:
|
||||
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $GITHUB_SHA)
|
||||
./gradlew clean build --stacktrace
|
||||
-
|
||||
name: Publish
|
||||
if: ${{ inputs.publish-task }}
|
||||
uses: actions/upload-artifact@v3
|
||||
name: Publish to Github Artifact
|
||||
with:
|
||||
name: CustomSkinLoader-${{ inputs.type }}-${{ github.run_number }}
|
||||
path: build/libs
|
||||
|
||||
Upload:
|
||||
if: inputs.publish-task
|
||||
needs: build-common
|
||||
continue-on-error: true
|
||||
environment: Build
|
||||
strategy:
|
||||
matrix:
|
||||
website: [CurseForge_Modrinth]
|
||||
modtype: [Fabric,Forge-Active,Forge-Legacy]
|
||||
include:
|
||||
-
|
||||
website: TencentCOS
|
||||
modtype: All
|
||||
# -
|
||||
# website: GitHub-Release
|
||||
# modtype: All
|
||||
-
|
||||
website: GitHub-PreRelease
|
||||
modtype: All
|
||||
name: ${{ matrix.website }} (${{ matrix.modtype}})
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout Git Repository
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
uses: actions/download-artifact@v3
|
||||
name: Download Artifact Zips
|
||||
with:
|
||||
path: build
|
||||
-
|
||||
name: Preparation Folder
|
||||
run: |
|
||||
rsync -avz "build/$(ls build|grep "CustomSkinLoader")/" build/libs/
|
||||
ls -lh build
|
||||
-
|
||||
if: ${{ matrix.modtype != 'All' }}
|
||||
name: Checking and setting the environment
|
||||
id: cslenv
|
||||
run: |
|
||||
output="$(ls build/libs | grep -v "sources")"
|
||||
if [[ "${{ matrix.modtype }}" == "Forge"* ]]; then
|
||||
modloader="Forge"
|
||||
path=$(echo ${{ matrix.modtype }} | sed "s#-#/#")
|
||||
else
|
||||
modloader=${{ matrix.modtype }}
|
||||
path=${{ matrix.modtype }}
|
||||
fi
|
||||
echo "path=$path" >> $GITHUB_OUTPUT
|
||||
echo "modloader=$modloader" >> $GITHUB_OUTPUT
|
||||
echo "filename=$(echo "$output"|grep $(echo ${{ matrix.modtype }}|sed "s#-##") )" >> $GITHUB_OUTPUT
|
||||
echo "version=$(grep "version=" build.properties | grep -v "#" | sed "s/version=//")" >> $GITHUB_OUTPUT
|
||||
echo "edition=$(echo ${{ matrix.modtype }} | sed "s/-//")" >> $GITHUB_OUTPUT
|
||||
echo "minecraft_vers<<EOF" >> $GITHUB_OUTPUT
|
||||
grep "minecraft_full_versions=" "$path"/build.properties | grep -v "#" | sed "s/minecraft_full_versions=//" | sed "s/,/\n/g" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
echo "java_vers<<EOF" >> $GITHUB_OUTPUT
|
||||
grep "java_full_versions=" "$path"/build.properties | grep -v "#" | sed "s/java_full_versions=//" | sed "s/,/\n/g" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
-
|
||||
if: startsWith(matrix.website, 'GitHub-')
|
||||
name: Settings more strings to Environment
|
||||
id: cslenv-github
|
||||
run: |
|
||||
#展开
|
||||
echo "buildtime=$(TZ=Asia/Shanghai date "+%Y.%m.%d %H:%M")" >> $GITHUB_OUTPUT
|
||||
echo "pathlist="$(find build/libs -type f|grep -v "sources"|grep -v "json")"" >> $GITHUB_OUTPUT
|
||||
-
|
||||
if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }}
|
||||
name: 【GitHub Pre-Release】 Delete
|
||||
uses: 8Mi-Tech/delete-release-assets-action@main
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: CI-Build
|
||||
deleteOnlyFromDrafts: false
|
||||
-
|
||||
if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }}
|
||||
name: 【GitHub Pre-Release】 Set CI-Build Text
|
||||
run: |
|
||||
cat > build/ci-build.md << 'EOF'
|
||||
Build Time / 构建时间 : ${{ steps.cslenv-github.outputs.buildtime }}
|
||||
自动同步分支 ${{ github.ref_name }} 的代码,以保持最新
|
||||
Synchronize ${{ github.ref_name }} branch code updates, keeping only the latest version
|
||||
<br>
|
||||
[如何使用 / How to uses?](https://github.com/xfl03/MCCustomSkinLoader/wiki/How-to-Use)
|
||||
EOF
|
||||
-
|
||||
if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }}
|
||||
name: 【GitHub Pre-Release】 Upload Tag
|
||||
uses: richardsimko/update-tag@v1
|
||||
with:
|
||||
tag_name: CI-Build
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
if: ${{ matrix.website == 'GitHub-PreRelease' && startsWith(github.ref, 'refs/heads') }}
|
||||
name: 【GitHub Pre-Release】 Publish
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: CustomSkinLoader CI-Build
|
||||
tag_name: CI-Build
|
||||
prerelease: true
|
||||
body_path: build/ci-build.md
|
||||
files: build/libs/*
|
||||
#iles: "${{ steps.cslenv-github.outputs.pathlist }}"
|
||||
-
|
||||
if: ${{ matrix.website == 'GitHub-Release' && inputs.type == 'Release' }}
|
||||
uses: softprops/action-gh-release@v1
|
||||
name: 【GitHub Release】 Publish
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: CustomSkinLoader ${{ github.ref }}
|
||||
tag_name: ${{ github.ref }}
|
||||
#generate_release_notes: true
|
||||
files: ${{ steps.cslenv-github.outputs.pathlist }}
|
||||
-
|
||||
if: ${{ matrix.website == 'TencentCOS' }}
|
||||
name: 【TencentCOS】 Publish
|
||||
env:
|
||||
COS_BUCKET: ${{ secrets.COS_BUCKET }}
|
||||
COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }}
|
||||
COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
|
||||
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
|
||||
run: |
|
||||
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $GITHUB_SHA)
|
||||
./gradlew ${{ inputs.publish-task }} --info --stacktrace
|
||||
# ./gradlew publishGprPublicationToGitHubPackagesRepository
|
||||
|
||||
-
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ matrix.website == 'CurseForge_Modrinth' && inputs.type == 'Release' }}
|
||||
name: 【CurseForge & Modrinth】 Publish
|
||||
uses: Kir-Antipov/[email protected]
|
||||
with:
|
||||
name: CustomSkinLoader-${{ inputs.type }}-${{ github.run_number }}
|
||||
path: build/libs
|
||||
modrinth-id: idMHQ4n2
|
||||
modrinth-featured: true
|
||||
modrinth-unfeature-mode: subset
|
||||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||
|
||||
curseforge-id: 286924
|
||||
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
|
||||
|
||||
name: CustomSkinLoader_${{ steps.cslenv.outputs.edition }}_${{ steps.cslenv.outputs.version }}
|
||||
version: ${{ steps.cslenv.outputs.version }}-${{ steps.cslenv.outputs.edition }}
|
||||
version-type: release
|
||||
loaders: ${{ steps.cslenv.outputs.modloader }}
|
||||
game-versions: |
|
||||
${{ steps.cslenv.outputs.minecraft_vers }}
|
||||
game-version-filter: releases
|
||||
java: |
|
||||
${{ steps.cslenv.outputs.java_vers }}
|
||||
|
||||
retry-attempts: 2
|
||||
retry-delay: 10000
|
||||
fail-mode: fail
|
||||
|
||||
files: |
|
||||
build/libs/${{ steps.cslenv.outputs.filename }}
|
||||
@@ -1,8 +1,7 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
build-release:
|
||||
|
||||
@@ -2,6 +2,7 @@ package customskinloader.fake;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
||||
import customskinloader.utils.HttpTextureUtil;
|
||||
@@ -35,7 +36,7 @@ public class FakeMinecraftProfileTexture extends MinecraftProfileTexture {
|
||||
|
||||
@Override
|
||||
public String getHash() {
|
||||
return this.info.hash;
|
||||
return this.info.hash == null ? super.getHash() : this.info.hash;
|
||||
}
|
||||
|
||||
public File getCacheFile() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
minecraft_version=1.14
|
||||
minecraft_full_versions=1.14-Snapshot,1.14,1.14.1,1.14.2,1.14.3,1.14.4,1.15-Snapshot,1.15,1.15.1,1.15.2,1.16-Snapshot,1.16,1.16.1,1.16.2,1.16.3,1.16.4,1.16.5,1.17-Snapshot,1.17,1.17.1,1.18-Snapshot,1.18,1.18.1,1.18.2,1.19-Snapshot,1.19,1.19.1,1.19.2,1.19.3,1.19.4
|
||||
minecraft_full_versions=1.14,1.14.1,1.14.2,1.14.3,1.14.4,1.15,1.15.1,1.15.2,1.16,1.16.1,1.16.2,1.16.3,1.16.4,1.16.5,1.17,1.17.1,1.18,1.18.1,1.18.2,1.19,1.19.1,1.19.2,1.19.3,1.19.4,1.20,1.20.1
|
||||
java_full_versions=8,9,10,11,12,13,14,15,16,17,18
|
||||
#forge gradle needs forge version
|
||||
forge_mc_version=1.12.2
|
||||
|
||||
@@ -4,9 +4,11 @@ net/minecraft/client/Minecraft net/minecraft/class_310
|
||||
net/minecraft/client/entity/AbstractClientPlayer net/minecraft/class_742
|
||||
getDownloadImageSkin (Lnet/minecraft/util/ResourceLocation;Ljava/lang/String;)Lnet/minecraft/client/renderer/ThreadDownloadImageData; method_3120
|
||||
getLocationSkin (Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation; method_3124
|
||||
net/minecraft/client/gui/Gui net/minecraft/class_332
|
||||
net/minecraft/client/gui/GuiPlayerTabOverlay net/minecraft/class_355
|
||||
renderPlayerlist (ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919
|
||||
renderPlayerlist (Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919
|
||||
renderPlayerlist (Lnet/minecraft/client/gui/Gui;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919
|
||||
net/minecraft/client/gui/spectator/PlayerMenuObject net/minecraft/class_530
|
||||
net/minecraft/client/model/ModelRenderer net/minecraft/class_630
|
||||
net/minecraft/client/renderer/IImageBuffer net/minecraft/class_760
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
minecraft_version=1.17.1
|
||||
minecraft_full_versions=1.17.1,1.18,1.18.1,1.18.2,1.19,1.19.1,1.19.2,1.19.3,1.19.4
|
||||
minecraft_full_versions=1.17.1,1.18,1.18.1,1.18.2,1.19,1.19.1,1.19.2,1.19.3,1.19.4,1.20,1.20.1
|
||||
java_full_versions=16,17,18
|
||||
#forge gradle needs forge version
|
||||
forge_mc_version=1.12.2
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[](https://github.com/xfl03/MCCustomSkinLoader/actions)
|
||||
[](https://github.com/xfl03/MCCustomSkinLoader/stargazers)
|
||||
|
||||
[](https://github.com/xfl03/MCCustomSkinLoader)
|
||||
[](https://github.com/xfl03/MCCustomSkinLoader)
|
||||
|
||||
## What's this?
|
||||
Custom Skin Loader mod for Minecraft.
|
||||
|
||||
@@ -11,8 +11,9 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
public abstract class MixinGuiPlayerTabOverlay {
|
||||
@Redirect(
|
||||
method = {
|
||||
"Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V",
|
||||
"Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V"
|
||||
"Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V", // 20w16a-
|
||||
"Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V", // 20w17a ~ 23w14a
|
||||
"Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lnet/minecraft/client/gui/Gui;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V" // 23w16a+
|
||||
},
|
||||
at = @At(
|
||||
value = "INVOKE",
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
name=CustomSkinLoader
|
||||
group=customskinloader
|
||||
version=14.15.3
|
||||
dev_version=
|
||||
version=14.17
|
||||
@@ -33,8 +33,7 @@ public class VersionUtil {
|
||||
//Example: 14.10a-SNAPSHOT-33
|
||||
public static String getCSLVersion(Project rootProject) {
|
||||
|
||||
return ConfigUtil.getConfigString(rootProject, "version") +
|
||||
ConfigUtil.getConfigString(rootProject, "dev_version") +
|
||||
return ConfigUtil.getConfigString(rootProject, "version") +
|
||||
(isRelease(rootProject) ? "" : ("-SNAPSHOT-" + getBuildNum()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user