MajsoulPlus / majsoul-plus

雀魂Plus——雀魂麻将Majsoul专用浏览器,提供了一些专有特性
GNU Affero General Public License v3.0
792 stars 116 forks source link

[feature request] 人物形象同模 #113

Closed bokveizen closed 3 years ago

bokveizen commented 3 years ago

您是在使用中遇到了什么问题导致的您提交功能建议么?如果是,请描述您遇到的问题 常常跳出泳装大姐姐 让我感觉不适合在公共场合游玩

描述您希望的解决方案 希望能有把所有人物都变成一姬的mod

描述您希望的备选方案 变成空白也可以

备注

Yesterday17 commented 3 years ago

你可以参考绿头鸭(

bokveizen commented 3 years ago

你可以参考绿头鸭(

谢谢 请问是在这个目录下吗 resourcepack/mallard

Yesterday17 commented 3 years ago

是( 然后你要去 static 目录下面找 extendRes/charactor/你想修改的角色 然后把绿头鸭里的qianzhi改成对应角色的名称

bokveizen commented 3 years ago

是( 然后你要去 static 目录下面找 extendRes/charactor/你想修改的角色 然后把绿头鸭里的qianzhi改成对应角色的名称

谢谢 原来charactor是雀魂(?还是雀P)自带的拼写错误啊 哈哈

bokveizen commented 3 years ago

所以 from to 是可以指定对应关系 否则是同名替换 是这样吗

Yesterday17 commented 3 years ago

是( 然后你要去 static 目录下面找 extendRes/charactor/你想修改的角色 然后把绿头鸭里的qianzhi改成对应角色的名称

谢谢 原来charactor是雀魂(?还是雀P)自带的拼写错误啊 哈哈

是雀魂自带的(

Yesterday17 commented 3 years ago

所以 from to 是可以指定对应关系 否则是同名替换 是这样吗

bokveizen commented 3 years ago

谢谢 我先去自己试着改看看 有问题再向您请教

bokveizen commented 3 years ago

所以 from to 是可以指定对应关系 否则是同名替换 是这样吗

您好 請問怎麽加載我寫完的resource package呢

Yesterday17 commented 3 years ago

把你的资源包目录复制到 resourcepacks 目录下,然后重启雀魂 Plus(或者我记得有个刷新的按钮(记不大清楚了 这个目录通常会在 %appdata%/Majsoul Plus

bokveizen notifications@github.com 于2021年1月2日周六 下午9:57写道:

所以 from to 是可以指定对应关系 否则是同名替换 是这样吗

您好 請問怎麽加載我寫完的resource package呢

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MajsoulPlus/majsoul-plus/issues/113#issuecomment-753476849, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCEFLTBEXUNGEDUQC6HI3DSX4Q5DANCNFSM4VMUTRFQ .

bokveizen commented 3 years ago

image image 照做了 但是好像没有用 QAQ

Yesterday17 commented 3 years ago

minmodels 里面是什么样的(还有 resourcepack.json

bokveizen notifications@github.com 于2021年1月2日周六 下午10:08写道:

[image: image] https://user-images.githubusercontent.com/32029544/103458972-eceb0d00-4d03-11eb-8210-c0256bb656e1.png [image: image] https://user-images.githubusercontent.com/32029544/103459000-f5434800-4d03-11eb-9081-5e8d87851030.png 照做了 但是好像没有用 QAQ

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MajsoulPlus/majsoul-plus/issues/113#issuecomment-753477971, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCEFLQQXCN6ZPC5VLNBGGLSX4SGVANCNFSM4VMUTRFQ .

bokveizen commented 3 years ago

image image

bokveizen commented 3 years ago

不好意思 好像是因为我注释了dependencies 现在OK了

bokveizen commented 3 years ago

但是没有起到替换的作用 不知道什么原因 { "id": "minmodels", "version": "1.0.0", "name": "minimal models", "author": "Vezen", "description": "Converting non-yiji characters into default character", "preview": "preview.jpg", "dependencies": { "majsoul_plus": "^2.0.0" }, "replace": [ "extendRes/charactor/yiji_0/bighead.png", "extendRes/charactor/yiji_0/full.png", "extendRes/charactor/yiji_0/half.png", "extendRes/charactor/yiji_0/smallhead.png", "extendRes/charactor/yiji_0/waitingroom.png" ] }

bokveizen commented 3 years ago

直接替换static目录下的文件倒是有效果 就是不知道是不是合法行为

bokveizen commented 3 years ago

这是我的source package文件 minmodels.zip

Yesterday17 commented 3 years ago

直接替换的问题在于资源更新之后就失效了,还得重新替换

bokveizen notifications@github.com 于2021年1月2日周六 下午10:29写道:

直接替换static目录下的文件倒是有效果 就是不知道是不是合法行为

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MajsoulPlus/majsoul-plus/issues/113#issuecomment-753480255, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCEFLUKJBTOLIT4UHFNQZ3SX4UUHANCNFSM4VMUTRFQ .

bokveizen commented 3 years ago

直接替换的问题在于资源更新之后就失效了,还得重新替换 bokveizen notifications@github.com 于2021年1月2日周六 下午10:29写道: 直接替换static目录下的文件倒是有效果 就是不知道是不是合法行为 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#113 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCEFLUKJBTOLIT4UHFNQZ3SX4UUHANCNFSM4VMUTRFQ .

是的 是不是我对路径的理解有问题 是要写绝对路径吗

Yesterday17 commented 3 years ago

image 这个是确实是这个目录结构吗(

bokveizen commented 3 years ago

image 这个是确实是这个目录结构吗(

这个是保存之前写错了 { "id": "minmodels", "version": "1.0.0", "name": "minimal models", "author": "Vezen", "description": "Converting non-yiji characters into default character", "preview": "preview.jpg", "dependencies": { "majsoul_plus": "^2.0.0" }, "replace": [ "extendRes/charactor/yiji_0/bighead.png", "extendRes/charactor/yiji_0/full.png", "extendRes/charactor/yiji_0/half.png", "extendRes/charactor/yiji_0/smallhead.png", "extendRes/charactor/yiji_0/waitingroom.png" ] } 事实上是这个

Yesterday17 commented 3 years ago

看起来是没什么问题...因为绿头鸭也是这么写的 现在绿头鸭还能用吗(

Yesterday17 commented 3 years ago

hmm #106

bokveizen commented 3 years ago

那我先用替换static的方法吧 是整个模组出问题了吗

bokveizen commented 3 years ago

是需要关注源码 src\resourcepack\manager.ts 吗

Yesterday17 commented 3 years ago

image 不对 看上去是没有问题的

bokveizen commented 3 years ago

我开着就没用鸭 image

bokveizen commented 3 years ago

明白了 是因为我用的繁体 好像是这样子

bokveizen commented 3 years ago

我切成简体就有效了

bokveizen commented 3 years ago

繁体有个chs_t父目录

Yesterday17 commented 3 years ago

神奇 我试一下

bokveizen commented 3 years ago

image

Yesterday17 commented 3 years ago

image 现在好像可以了 你可以等一下 CI 的自动构建(

bokveizen commented 3 years ago

image 现在好像可以了 你可以等一下 CI 的自动构建(

thanks 神速 👍👍

bokveizen commented 3 years ago

最后一个问题 替换支持正则式吗

Yesterday17 commented 3 years ago

目前不支持……

bokveizen notifications@github.com 于2021年1月2日周六 下午11:32写道:

最后一个问题 替换支持正则式吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MajsoulPlus/majsoul-plus/issues/113#issuecomment-753487213, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCEFLTRDHV757ICN2GVVTLSX44CDANCNFSM4VMUTRFQ .