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

Uncaught TypeError: Cannot read property 'byteLength' of null #2

Open
FreshfishSun opened this issue Oct 13, 2020 · 12 comments
Open

Uncaught TypeError: Cannot read property 'byteLength' of null #2

FreshfishSun opened this issue Oct 13, 2020 · 12 comments

Comments

@FreshfishSun
Copy link

FreshfishSun commented Oct 13, 2020

Utils.js:157 Uncaught TypeError: Cannot read property 'byteLength' of null
at c.Utils.getIndex (Utils.js:157)
at Main.js:436
at MiniSignal.dispatch (pixi.js:1411)
at n._onComplete (pixi.js:5005)
at pixi.js:5044
at next (pixi.js:6249)
at n.e.plugin (pixi-sound.js:9)
at pixi.js:5027
at pixi.js:6257
用的 python -m http.server
又在 https://www.dawuxia.net/kys-js/
试了,都报错,卡在99%或者100%
npm 的electron也不行
此错误会停止进程
已配置kys-C++的game文件夹
错误文件:
js/lib/pixi.js

@kt2
Copy link
Owner

kt2 commented Oct 14, 2020

貎似欠缺戰鬥效果的資源檔 (Main.js:436) 或者localstorage 到了上限 (可試清除瀏覽器localstorage再試)
https://www.dawuxia.net/kys-js/ 這個我可以運行 (chrome) 喔

@FreshfishSun
Copy link
Author

先谢谢:https://www.dawuxia.net/kys-js/ Chrome可以用
我用的edge,可能是浏览器兼容问题(edge没有localstorage )?
但是自己架构的不行
好像是game文件夹问题?
用了Chrome检查了,结构和原本的c++版文件夹不太一样
能不能发一下全部的资源文件夹?或者配置教程?
谢谢

@kt2
Copy link
Owner

kt2 commented Oct 14, 2020

資源可在https://github.com/scarsty/kys-cpp 找到
目錄結構應該是一樣的

@FreshfishSun
Copy link
Author

Uncaught (in promise) DOMException: Unable to decode audio data
DevTools 无法加载 SourceMap: 无法解析 http://127.0.0.1:8848/kys-js-master/js/lib/pixi.js.map 的内容: Unexpected token < in JSON at position 0
DevTools 无法加载 SourceMap: 无法解析 http://127.0.0.1:8848/kys-js-master/js/lib/pixi-sound.js.map 的内容: Unexpected token < in JSON at position 0
DevTools 无法加载 SourceMap: 无法解析 http://127.0.0.1:8848/kys-js-master/js/lib/jdataview.js.map 的内容: Unexpected token < in JSON at position 0
DevTools 无法加载 SourceMap: 无法解析 http://127.0.0.1:8848/kys-js-master/js/lib/jbinary.js.map 的内容: Unexpected token < in JSON at position 0
Failed to load resource: net::ERR_EMPTY_RESPONSE
Main.js:416 Uncaught TypeError: Cannot read property 'frames' of null
at Main.js:416
at MiniSignal.dispatch (pixi.js:1411)
at n._onComplete (pixi.js:5005)
at pixi.js:5044
at next (pixi.js:6249)
at n.e.plugin (pixi-sound.js:9)
at pixi.js:5027
at pixi.js:6257
配完又来一个
Chrome打开的,不知道怎么办
还是卡在99
结构:
d/kys/kys-js:
game/ index.html js/ loader.js main.js README.md sc.png start.bat
d/kys/kys-js/game:#资源文件夹,从c++的配置文件夹网址http://pan.baidu.com/s/1sl2X9wD下载
config/ font/ list/ music/ resource/ save/ script/ sfeu16/ sound/ txt/

@kt2
Copy link
Owner

kt2 commented Oct 14, 2020

大概是資源包某些資源都加壓了..
請用這個, 解壓到根目錄

@FreshfishSun
Copy link
Author

sorry,still not work :(
这个文件夹看起来像pascal版的文件夹加上一些c++版的文件夹。
某些文件夹是空的。
并且报错一致
有解决方法吗?

@kt2
Copy link
Owner

kt2 commented Oct 14, 2020

抱歉, 讓我找找看 -_-|||

@kt2
Copy link
Owner

kt2 commented Oct 14, 2020

找到了 , 這個, 解壓到根目錄 /game
链接:https://pan.baidu.com/s/1lgfBSjhbnw1U5HYi9D_RfQ 提取码:8swi

@FreshfishSun
Copy link
Author

谢谢了!可以运行!

@FreshfishSun
Copy link
Author

麻烦您了

@FreshfishSun
Copy link
Author

请问如何给东西?站人物面前给不行,谢谢

@FreshfishSun
Copy link
Author

玩了一会,杨过给不了断肠草

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

No branches or pull requests

2 participants