ba-archive / blue-archive-story-viewer

碧蓝档案的档案。仓库已经迁移到 monorepo,详情请看 readme。
https://github.com/ba-archive/blue-archive
GNU General Public License v3.0
118 stars 8 forks source link

momotalk 数据结构和组件结构草案 #22

Closed mark9804 closed 1 year ago

mark9804 commented 2 years ago

此信息已过时,参考 #24 .

过时内容 # momotalk 数据结构和组件结构草案 我想了一下,本来是想解包出来之后直接用韩国人的数据结构的,但是想起来件重要的事就是他们只有日语,不用做翻译,所以还是得自己实现 ## 数据结构 ### 相对于羁绊剧情入口的位置 聊天大体上可以分成羁绊剧情前和羁绊剧情后,使用 `before` 和 `after` 进行区分。 #### 参数 ##### `before`: `Array` 放置进入羁绊剧情前的 momotalk 内容。 ##### `after`: `Array` 放置完成羁绊剧情后的 momotalk 内容。 #### 示例 ```yml chats: before: [...chat_before] after: [...chat_after] ``` ### 普通文本信息(学生 -> 老师) #### 游戏内容示例 image-20221022133116061 #### 参数 ##### `type`: `String` 标记聊天组件的样式。纯文本信息当中,`type` 的值为 `chat`。(是否应该使用 `string` 作为值?) ##### `content`: `Object` 标记聊天组件的内容。纯文本信息中,`content` 的值为 `Object`。 ###### `content.zh`: `String` 简体中文聊天内容。 ###### `content.ja`: `String` 日语聊天内容。 ##### `sender`: `String` 标记聊天信息是由谁发出的。一般只有 `student` 和 `teacher` 两个取值。 #### 数据结构示例 ```yml chats: before: - type: chat content: zh: 一直以来承蒙照顾。 ja: いつもお世話になっております。 sender: student - type: chat content: zh: …… ja: …… sender: student ``` ### 图片文本信息(学生 -> 老师) ### 游戏内容示例 image-20221022133546784 #### 参数 ##### `type`: `String` 标记聊天组件样式为图片。 ##### `url`: `String` 标记图片的 url。 ##### `sender`: `String` 同“普通文本信息”。 ### 数据结构示例 ```yml - type: image url: "~.webp" sender: student ``` ### 回复选择肢(老师 -> 学生)和学生回复 #### 老师回复选择肢 ##### 游戏内容示例 image-20221022133758721 ##### 参数 ###### `type`: `String
sonali-rajput commented 2 years ago

Is it not available in English?

mark9804 commented 2 years ago

Hi @sonali-rajput ,

Logically, the data structure we are currently planning on supports English.

However, we are still working on a way to read the momotalk database. If this effort fails, we can only use screenshots collected from player community, and unfortunately we have no dataset in English yet.

If you know the way to read momotalks from database (and kindly share the method with us... we need it badly), then we can make it possible in English, Japanese and Simplified Chinese. I promise.

sonali-rajput commented 2 years ago

Nice to meet you @Mark9804 but I got to know about your work because it was labeled as a good first issue and I couldn't understand anything if it's written in another language other than English... I would really love to help but unfortunately, I am not familiar with Japanese and Chinese, I apologize I am sorry for that.

mark9804 commented 2 years ago

OK @sonali-rajput this is a fan project for the game blue archive (Homepage, wikipedia, Fandom). This project is designed to provide an online viewer for in-game story (gameplay sample) and momotalk chat function. We are trying to make the viewer look and behave the same as it is in the gameplay.

I created the project and gathered other 9 members from a Chinese forum just on this Friday (Oct. 21), and we are still working on basic things like this issue, which suggests a data structure to store and show the momotalk chat content interactively.

Since we want to cover every (115 and more in future) student, we are looking for a way to directly read data from game data package (Unity3D asset bundles) to find the texts we are about to use. Currently we are looking for file(s) which is supposed to contain all momotalk contents and read the content. We haven't found the file (and it is supposed to be encrypted), so we are still contacting for help from other experienced players.

I'm a little uncertain if you are a blue archive player since you said you found this work by luck…?, and I apologize if I attached an inappropriate tag. If so, please let me know and I will remove the "good first issue" tag ASAP.

If you are willing to join this project (we are planning a frontend(Vue3, main viewer) + backend(golang/java, data storage and global search function), I will prepare an English copy of current and future documents

sonali-rajput commented 2 years ago

OK @sonali-rajput this is a fan project for the game blue archive (Homepage, wikipedia, Fandom). This project is designed to provide an online viewer for in-game story (gameplay sample) and momotalk chat function. We are trying to make the viewer look and behave the same as it is in the gameplay.

I created the project and gathered other 9 members from a Chinese forum just on this Friday (Oct. 21), and we are still working on basic things like this issue, which suggests a data structure to store and show the momotalk chat content interactively.

Since we want to cover every (115 and more in future) student, we are looking for a way to directly read data from game data package (Unity3D asset bundles) to find the texts we are about to use. Currently we are looking for file(s) which is supposed to contain all momotalk contents and read the content. We haven't found the file (and it is supposed to be encrypted), so we are still contacting for help from other experienced players.

I'm a little uncertain if you are a blue archive player since you said you found this work by luck…?, and I apologize if I attached an inappropriate tag. If so, please let me know and I will remove the "good first issue" tag ASAP.

If you are willing to join this project (we are planning a frontend(Vue3, main viewer) + backend(golang/java, data storage and global search function), I will prepare an English copy of current and future documents

Thanks for explaining all of it! I actually got to know about your project by luck tbh I was searching for some Good-First-Issue to work on and landed yours . I don't know anything about the game and I am so sorry I couldn't be of any help, I practice DevOps.

mark9804 commented 2 years ago

I have removed the inappropriate "good first issue" tags. Sorry for disrupting you.

sonali-rajput commented 2 years ago

You should not remove the tag as it will help more people to see your project and contribute to it if you're planning to make it open-source.