| @@ -30,8 +30,8 @@ This tool can help you easily create and share Swipe Formation or Solo Formation | |||
| * [3P协力示例](http://mapaler.gitee.io/paddashformation/triple.html?d={"t"%3A"3P%20Sample"%2C"d"%3A"3P没啥好的例子"%2C"f"%3A[[[[4691%2C104%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]%2C[2186%2C101%2C8%2C99%2C[20%2C20%2C20]%2C0]%2C[4877%2C101%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4793%2C99%2C7%2C99]%2C[5322%2C101%2C9%2C99%2C[20%2C20%2C20]]%2C[4691%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]]%2C[[4252%2C38%2C9]%2C[5632%2C1%2C6%2C99]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4155%2C1%2C7%2Cnull%2Cnull%2Cnull%2C1]%2C[4828%2C5%2C3]%2C[4394%2C12%2C3%2Cnull%2Cnull%2Cnull%2C1]]]%2C[[[4691%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]%2C[2186%2C101%2C8%2C99%2Cnull%2C0]%2C[4877%2C102%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4793%2C99%2C7%2C99%2C[21%2C21%2C21]]%2C[4877%2C101%2C9%2C99%2C[23%2C23%2C11%2C11]]%2C[4691%2C104%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]]%2C[[4394%2C12%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4155%2C1%2C7%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4252%2C38%2C9]]]%2C[[[5888%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4877%2C99%2C9%2C99]%2C[4877%2C99%2C9%2C99]%2C[4877%2C99%2C9%2C99]%2C[2540%2C110%2C8%2C99%2C[11%2C11%2C11%2C11%2C11%2C11]%2C0]%2C[5887%2C99%2C9%2Cnull%2C[11%2C11%2C11%2C11%2C11%2C11]]]%2C[[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]]]]}) | [3P Multi Formation Sample](//mapaler.github.io/PADDashFormation/triple.html?d={"t"%3A"3P%20Sample"%2C"d"%3A"3P没啥好的例子"%2C"f"%3A[[[[4691%2C104%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]%2C[2186%2C101%2C8%2C99%2C[20%2C20%2C20]%2C0]%2C[4877%2C101%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4793%2C99%2C7%2C99]%2C[5322%2C101%2C9%2C99%2C[20%2C20%2C20]]%2C[4691%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]]%2C[[4252%2C38%2C9]%2C[5632%2C1%2C6%2C99]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4155%2C1%2C7%2Cnull%2Cnull%2Cnull%2C1]%2C[4828%2C5%2C3]%2C[4394%2C12%2C3%2Cnull%2Cnull%2Cnull%2C1]]]%2C[[[4691%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]%2C[2186%2C101%2C8%2C99%2Cnull%2C0]%2C[4877%2C102%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4793%2C99%2C7%2C99%2C[21%2C21%2C21]]%2C[4877%2C101%2C9%2C99%2C[23%2C23%2C11%2C11]]%2C[4691%2C104%2C9%2C99%2C[19%2C19%2C11%2C11]%2C1]]%2C[[4394%2C12%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4155%2C1%2C7%2Cnull%2Cnull%2Cnull%2C1]%2C[4394%2C1%2C3%2Cnull%2Cnull%2Cnull%2C1]%2C[4252%2C38%2C9]]]%2C[[[5888%2C110%2C9%2C99%2C[19%2C19%2C11%2C11]]%2C[4877%2C99%2C9%2C99]%2C[4877%2C99%2C9%2C99]%2C[4877%2C99%2C9%2C99]%2C[2540%2C110%2C8%2C99%2C[11%2C11%2C11%2C11%2C11%2C11]%2C0]%2C[5887%2C99%2C9%2Cnull%2C[11%2C11%2C11%2C11%2C11%2C11]]]%2C[[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]%2C[0%2C0%2C0]]]]}) | |||
| ## 下载后使用本地版 | Use the local version after downloaded | |||
| [下载压缩包](//gitee.com/mapaler/PADDashFormation/repository/archive/master.zip)或`git clone`后使用浏览器打开`index.html`。 | |||
| [Download ZIP](//github.com/Mapaler/PADDashFormation/archive/master.zip) or `git clone`, and open the `index.html` with Browser. | |||
| [下载压缩包](//gitee.com/mapaler/PADDashFormation/repository/archive/master)或`git clone`后使用浏览器打开`index.html`。 | |||
| [Download ZIP](//codeload.github.com/Mapaler/PADDashFormation/zip/master) or `git clone`, and open the `index.html` with Browser. | |||
| * 火狐68.0及以后需要在`about:config`设定`privacy.file_unique_origin`为`false`。 | |||
| Firefox 68.0 or above need setting the `privacy.file_unique_origin` to `false` in `about:config`. | |||
| * Chrome需要添加`--allow-file-access-from-files`启动参数。 | |||
| @@ -1,5 +1,8 @@ | |||
| CACHE MANIFEST | |||
| NETWORK: | |||
| * | |||
| CACHE: | |||
| # JS库 | |||
| # ▼892c162d4f6b83e21b6be3f04eb2a76f | |||
| @@ -10,17 +13,13 @@ library/localforage.min.js | |||
| # ADPCM播放库 | |||
| # ▼7379056107dcfb5db0c24850e5dbd082 | |||
| library/jy4340132-aaa/std.js | |||
| # ▼25554e5e71e1478abfa8a6332ecaa098 | |||
| # ▼f1fcb9cddcdde1d6e716089c9f2fb68f | |||
| library/jy4340132-aaa/pcm_player.js | |||
| # ▼0b630a0642376a0c54b908b04122dc0e | |||
| library/jy4340132-aaa/adpcm.js | |||
| # ▼684c87e14175b63772422d877423d275 | |||
| library/jy4340132-aaa/adpcm.wasm | |||
| # 语言表 | |||
| # ▼3f06e66566808a6fbc21177e9e66d574 | |||
| languages/language-list.js | |||
| # 字体 | |||
| # ▼989604f44342b48af3a3e8c438af6ff0 | |||
| fonts/FOT-KurokaneStd-EB.woff2 | |||
| @@ -180,12 +179,6 @@ images\cards_ja\CARDS_057.PNG | |||
| images\cards_ja\CARDS_058.PNG | |||
| # ▼38a6751d4a088b8f0fd9e8fc87a40518 | |||
| images\cards_ja\CARDS_059.PNG | |||
| # ▼5d878a2d6ccdf88bcb8135df84a5b55d | |||
| images\cards_ja\CARDS_060.PNG | |||
| # ▼754ce3d90ca41954dfee79b86b899ae9 | |||
| images\cards_ja\CARDS_061.PNG | |||
| # ▼198d04acc1565a3466cd31d646d3ca42 | |||
| images\cards_ja\CARDS_062.PNG | |||
| # 国际服图片 | |||
| # ▼5b7ccbd3cf31ee412799c0dd9bb2f783 | |||
| @@ -306,10 +299,6 @@ images\cards_en\CARDS_057.PNG | |||
| images\cards_en\CARDS_058.PNG | |||
| # ▼67e5529a8e258b7776379f5b5f0d74eb | |||
| images\cards_en\CARDS_059.PNG | |||
| # ▼f9de8e11185c4c53a1bcc11135e17b78 | |||
| images\cards_en\CARDS_060.PNG | |||
| # ▼a6fb4019bbf33ab6f545dec0c6ef1209 | |||
| images\cards_en\CARDS_061.PNG | |||
| # 韩服图片 | |||
| # ▼5b7ccbd3cf31ee412799c0dd9bb2f783 | |||
| @@ -430,10 +419,6 @@ images\cards_ko\CARDS_057.PNG | |||
| images\cards_ko\CARDS_058.PNG | |||
| # ▼67e5529a8e258b7776379f5b5f0d74eb | |||
| images\cards_ko\CARDS_059.PNG | |||
| # ▼3e4d9f4211481da31d2ff7450b98eac4 | |||
| images\cards_ko\CARDS_060.PNG | |||
| # ▼a6fb4019bbf33ab6f545dec0c6ef1209 | |||
| images\cards_ko\CARDS_061.PNG | |||
| # 日服、港台服语音 | |||
| # ▼5d5cfc2aea6aa9e69299e2fd8f5657d2 | |||
| @@ -1277,4 +1262,4 @@ sound\voice\ko\padv148.wav | |||
| # ▼67f580bd514216fee2c0d51a216835f0 | |||
| sound\voice\ko\padv149.wav | |||
| # ▼957751e3eacce3330edd52f337602670 | |||
| sound\voice\ko\padv150.wav | |||
| sound\voice\ko\padv150.wav | |||
| @@ -13,17 +13,6 @@ const cacheList = [ | |||
| 'library/jy4340132-aaa/adpcm.js', | |||
| 'library/jy4340132-aaa/adpcm.wasm', | |||
| ]}, | |||
| {typeName:"语言表",list:[ | |||
| 'languages/language-list.js', | |||
| ]}, | |||
| /*{typeName:"怪物数据",list:[ | |||
| 'monsters-info/mon_ja.json', | |||
| 'monsters-info/mon_en.json', | |||
| 'monsters-info/mon_ko.json', | |||
| 'monsters-info/skill_ja.json', | |||
| 'monsters-info/skill_en.json', | |||
| 'monsters-info/skill_ko.json', | |||
| ]},*/ | |||
| {typeName:"字体",list:[ | |||
| 'fonts/FOT-KurokaneStd-EB.woff2', | |||
| 'fonts/FOT-KurokaneStd-EB.woff', | |||
| @@ -53,16 +42,18 @@ const cardsLang = [ | |||
| {name:"国际服图片",path:"images/cards_en"}, | |||
| {name:"韩服图片",path:"images/cards_ko"}, | |||
| ]; | |||
| const cardsReg = "CARDS_\\d+\\.PNG"; | |||
| const cardsReg = "CARDS_(\\d+)\\.PNG"; | |||
| cardsLang.forEach(lang=>{ | |||
| console.log('正在添加 %s',lang.name); | |||
| const list = []; | |||
| const langPath = lang.path; | |||
| const files = fs.readdirSync(langPath); | |||
| files.forEach(function (filename) { | |||
| if (new RegExp(cardsReg,"i").test(filename)) | |||
| let regRes = false; | |||
| if (regRes = new RegExp(cardsReg,"i").exec(filename)) | |||
| { | |||
| list.push(path.join(langPath, filename)); | |||
| if (parseInt(regRes[1],10) <60) //59及以前的基本上不会经常变化了 | |||
| list.push(path.join(langPath, filename)); | |||
| } | |||
| }); | |||
| const newType = { | |||
| @@ -113,8 +104,12 @@ const outTextArray = cacheList.map(type=>{ | |||
| }); | |||
| const outText = `CACHE MANIFEST | |||
| NETWORK: | |||
| * | |||
| CACHE: | |||
| ${outTextArray.join('\n\n')}`; | |||
| ${outTextArray.join('\n\n')} | |||
| `; | |||
| fs.writeFile('./manifest.appcache',outText,function(err){ | |||
| if(err){ | |||