Giter Club home page Giter Club logo

plugin-quest's People

Contributors

alvin-777 avatar ayaphis avatar dkwingsmt avatar gakada avatar gnattu avatar hanzhao avatar ilufang avatar jenningswu avatar kagamichan avatar kochiyaocean avatar lawvs avatar magicae avatar malichan avatar ruiii avatar sorayama avatar yukixz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-quest's Issues

Dependencies missing

Missing dependencies after running node fetch.js

> node fetch.js
A:\*****\plugin-quest\node_modules\babel-core\lib\transformation\file\options\option-manager.js:328
        throw e;
        ^

Error: Couldn't find preset "es2017-node7" relative to directory "A:\\*****\\plugin-quest"
......

plugin-quest/fetch.js

Lines 1 to 5 in add9a29

require('babel-register')({
extensions: ['.es'],
presets: ['es2017-node7', 'stage-0', 'react'],
plugins: ['add-module-exports', 'closure-elimination'],
})

npm install -D babel-preset-es2017-node7 babel-preset-stage-0 babel-preset-react

一直提示加载失败,兼容性问题

Electron v0.35.4 x64
Win 10 Pro x64
poi's version: Commit

如题,一直提示错误。
尝试了删除,重新安装,然后就卡 Installing.
看了一下插件目录,文件倒是下载下来了,但是好像并没有什么卵用?

娇喘启用了新的任务ID号段

api_bonus_flag: 1
api_category: 8
api_detail: "水雷戦隊を製油所地帯沿岸に展開!同海域の敵艦隊を撃滅、新年の暁に勝利を刻むのです!"
api_get_material: Array[4]
0: 2016
1: 0
2: 0
3: 0
length: 4
__proto__: Array[0]
api_invalid_flag: 0
api_no: 801
api_progress_flag: 0
api_state: 1
api_title: "謹賀新年!「水雷戦隊」出撃始め!"
api_type: 1

并由此引入了新的 api_category: 8

Incorrect i18n parsing on modal conversion quests.

"equip": "秘书舰{{{secretary}}}在{{{slot}}}搭载未上锁的{{{fullyskilled}}}{{{maxmodified}}}{{{equipment}}}",

In the case that maxed modification is required, but fully skilled is not , such structure will make the max-modification requirement take the position of the skill requirement, which resulted in an incorrect display. For example:
screen shot 2018-01-19 at 14 26 27


Edit: The display is still incorrect even after adding "fullyskilled": false, to data.json manually.

plugin-quest/assets/data.json

Lines 10442 to 10448 in bbe64b4

{
"slot": 4,
"equipment": "瑞雲(六三四空)",
"convert": true,
"maxmodified": true,
"use_skilled_crew": true
}

use_skilled_crew should not be defined inside the slots by the way, it should be directly inside the requirements to be displayed.

5.0.0 crashes for English

As was mentioned on discord, filterNames is ["Composition Quest", 1, 2, ..., 11], so pluralize throws. It works after adding filterNames values in en-US.json:

  "Composition Quest": "Composition Quest",
  "Sortie Quest": "Sortie Quest",
  "Exercise Quest": "Exercise Quest",
  "Expedition Quest": "Expedition Quest",
  "Supply/Docking Quest": "Supply/Docking Quest",
  "Arsenal Quest": "Arsenal Quest",
  "Modernization Quest": "Modernization Quest",
  "Marriage Quest": "Marriage Quest",
  "Daily Quest": "Daily Quest",
  "Weekly Quest": "Weekly Quest",
  "Monthly Quest": "Monthly Quest",
  "Quarterly Quest": "Quarterly Quest",

Another thing, fetch.js is used as fetch.es in package.json.

关于增加分类和显示任务完成情况

1、希望增加【日常】【周常】【月常】三个分类

2、将结婚系列任务【WB系列】单独独立出一个分类

3、希望类似 KCV 一样能够显示 当天/周/月 剩下的未完成的任务
(可以通过在上述新增分类下显示任务的完成情况来实现)

新加任务导致的出错问题

都是在 reqstr 函数上出的错,加了一些 print 信息之后显示如下:

任务 647

reqstr.coffee:153 Invalid requirements: {"category":"equipexchange","scraps":[{"name":"ドラム缶(輸送用)","amount":2}],"resources":[1200,0,0,3000]}, category:equipexchange, fn:function (local_args) {
      var new_f;
      new_f = function() {
        return f.apply(Object.assign(this, local_args), arguments);
      };
      return new_f.apply(new_f, arguments);
    }, ret:undefined. reason: TypeError: Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined

任务 649

Invalid requirements: {"category":"equipexchange","scraps":[{"name":"零式水上偵察機","amount":2}],"consumptions":[{"name":"新型航空機設計図","amount":2},{"name":"ネ式エンジン","amount":1}]}, category:equipexchange, fn:function (local_args) {
      var new_f;
      new_f = function() {
        return f.apply(Object.assign(this, local_args), arguments);
      };
      return new_f.apply(new_f, arguments);
    }, ret:undefined. reason: TypeError: Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined

任务 705

Invalid requirements: {"category":"modernization","times":2,"ship":"空母","consumptions":[{"ship":"轻母/空母","amount":5}],"resources":[0,0,5500,2500]}, category:modernization, fn:undefined, ret:undefined. reason: TypeError: fn is not a function TypeError: fn is not a function

705 我看出来是数据的 category 出问题,然而前面两个就不知道了……

[Review request] 任务条件

dkwingsmt@52d648d

左边的是原来的任务条件,

右边是经过我重构和翻译之后自动生成的任务条件。

然而疏忽难免,请大家帮忙一一检查是否有左右不一致的地方。

条目较多,麻烦了。

任务完成状况读取错误?

image

今天在做新飞机系列任务的时候遇到了这个情况。这个任务我还没开呢,但是出现在了“可执行”里面。
稍微调查了一下,发现是这个任务要求月常“海上护卫强化月间”作为前置,但这个月常我这个月还没完成呢(。•ˇ‸ˇ•。)
然后在我把任务切换到第三页,让任务插件了解我现在可以执行“海上护卫强化月间”(也即没有完成)之后这个任务就被归类到“未开放”里去了。
但是,为什么任务插件会奇怪地提前认为我可执行这个任务呢?

Quest plugin modernization

Coding

  • Use TypeScript

Parser

  • Explicit: avoid reading data from outside function parameters to make function dependency clear
  • Functional
  • Behavior unit testing

Quest data

  • Use JSON schema to verify content

“远征信息”插件远征38条件验证有误

远征38(东急2)成功条件是有4条以上各自携带2个以上桶,而插件似乎只验证总桶数>8...事实上例如三条三桶+一条一桶的配置远征仍然会失败(派出时poi会提示失败,估计api能收到失败信息?),但插件上显示配置可行的绿点。
望予修正,多谢。
另,远征24的大成功条件已经确证为至少4桶4闪,望能加入文字部分说明。

by @Yogomove at poooi/poi#973

Request latest update for quest log info

Several quest has not been updated, i recommended to export the latest working build into package.
Quest from A70,B70,F37 has not been update in the current released package. Although there is work progress in the git-hub, the released version has not been updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.