Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multiple FRFS files overlay. #63

Merged
merged 1 commit into from Dec 17, 2022

Conversation

Berrysoft
Copy link
Contributor

Related: #56

Add this features to all frontends.

The GUI will search for data.frfs, and then data.a.frfs to data.z.frfs. All existing files will be included.

@Berrysoft Berrysoft mentioned this pull request Dec 16, 2022
4 tasks
@Berrysoft
Copy link
Contributor Author

@LaoshuBaby 有关文件名命名有什么建议吗?目前的实现在上面写了。

@LaoshuBaby
Copy link
Member

LaoshuBaby commented Dec 16, 2022

@LaoshuBaby 有关文件名命名有什么建议吗?目前的实现在上面写了。

我个人觉得没问题,虽然我想如果从1开始递增会不会更好,但是一旦遇到1和10的问题(我不敢保证2一定在10前面)就要出差错了,所以虽然a-z顺序只有26个字母但是更好消除歧义

或者就干脆维护一个文件列表,overwrite.list之类的东西,然后自上而下排列

+ data.extra_adult.frfs
+ data.voice.frfs
+ data.extra2.frfs
+ data.extra1.frfs
data.frfs

(仅作举例,不会陷入字母容量困境,而且这样还能允许用户自定义每个包的名字,看到就知道内容,对游戏开发者和商业化都有帮助,然后也不至于太复杂,毕竟就是显式指定的,plaintext的列表读一下就好)——如果觉得不好那就无视这个方案直接合得了。

@Tim-Paik
Copy link
Contributor

26个字母应该相当够用

如果要分开搞的话其实应该是 data.frfs + data.video.frfs + data.video.a.frfs + data.video.b.frfs 更好?

@LaoshuBaby
Copy link
Member

26个字母应该相当够用

如果要分开搞的话其实应该是 data.frfs + data.video.frfs + data.video.a.frfs + data.video.b.frfs 更好?

啊总之我的意思是希望能引入一个依靠自然语言来标识不同数据包的方案

(然后一旦涉及到追加就总得有顺序,就不如直接用它做排序了)

心态

@Tim-Paik
Copy link
Contributor

Tim-Paik commented Dec 16, 2022

想要标定顺序的话也简单,你每个frfs里都放一个文件叫做index,内容是一个数字,根据这个数字做排序就行

就像css的那个z-index一样,完全手动控制了。

出现冲突数字一样的话就按照文件名再排序就行

实际上分包更多的用途是为了下载方便,不至于一个frfs体积巨大,其次是打包零碎文件。相对于怎么命名,其实怎么分开包才比较麻烦的,毕竟包里不带之前有的东西。

Copy link

@Akarinnnnn Akarinnnnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rs看不懂啦

@Berrysoft
Copy link
Contributor Author

啊总之我的意思是希望能引入一个依靠自然语言来标识不同数据包的方案

我也想要,但是想不太好怎么做。

目前我的想法是这样的,如果对这一点没有要求,那么现有的 a-z 应该可以接受;如果有要求,改一改前端就可以,这个逻辑是前端的,后端无所谓文件名。

用文件列表的方式似乎也行……?但是这样一来如果有计划外想要加入的内容还要重新维护一个文件列表,听起来容易冲突。

我也想过直接用文件名排序的办法,但是似乎有些扭曲。

另外 Unix 系列有一种排序方法是 数字-名称 排序,例如

0-main.frfs
10-r18.frfs
20-dlc.frfs
100-final.frfs

我们似乎也可以考虑这样搞,把文件名用 - split 一下,第0个部分 parse 成整数,然后排序。

@Berrysoft
Copy link
Contributor Author

先合并,有不同意见欢迎 issue

@Berrysoft Berrysoft merged commit 9b1abed into Uni-Gal:master Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants