0

我尝试使用tideSDK 为多用户Pomelo 聊天应用程序构建一个Windows 独立客户端(Pomelo 是node.js 的游戏服务器框架:http: //pomelo.netease.com/)。

我将 pomelo 项目文件夹的 web-server/public 作为资源文件。在构建之前,我启动了 pomelo 服务器并通过直接在浏览器中打开 ressources/index.html 来测试文件 => 一切正常。

然后我在tideSDK中启动(然后构建)应用程序,但是当我点击“加入”按钮时没有任何反应。

以下是来自潮汐SDK 的控制台日志:

启动时:

[09:32:29:535] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\ win32\app\1.3.1-beta\tideapp.dll
[09:32:29:568] [Ti.App.AppConfig] [Debug] Loading config file:
M:\Tiry\travail\d
ev-pomelo\tideSDK\standalone-chatpomelo\dist\win32\standalone-chatpomelo\tiapp.x
ml [09:32:29:577] [Ti.App] [Debug] Loaded config file successfully
[09:32:29:582] [Ti.Host] [Information] Loaded module = app
[09:32:29:585] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\ win32\codec\1.3.1-beta\tidecodec.dll
[09:32:29:602] [Ti.Host] [Information] Loaded module = codec
[09:32:29:606] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\
win32\database\1.3.1-beta\tidedatabase.dll [09:32:29:636] [Ti.Host]
[Information] Loaded module = database [09:32:29:641] [Ti.Host]
[Debug] Loading module: C:\ProgramData\TideSDK\modules\
win32\filesystem\1.3.1-beta\tidefilesystem.dll [09:32:29:653]
[Ti.Host] [Information] Loaded module = filesystem [09:32:29:658]
[Ti.Host] [Debug] Loading module: C:\ProgramData\TideSDK\modules\
win32\media\1.3.1-beta\tidemedia.dll [09:32:29:667] [Ti.Host]
[Information] Loaded module = media [09:32:29:671] [Ti.Host] [Debug]
Loading module: C:\ProgramData\TideSDK\modules\
win32\monkey\1.3.1-beta\tidemonkey.dll [09:32:29:681] [Ti.Host]
[Information] Loaded module = monkey [09:32:29:685] [Ti.Host] [Debug]
Loading module: C:\ProgramData\TideSDK\modules\
win32\network\1.3.1-beta\tidenetwork.dll [09:32:29:731] [Ti.Host]
[Information] Loaded module = network [09:32:29:738] [Ti.Host] [Debug]
Loading module: C:\ProgramData\TideSDK\modules\
win32\platform\1.3.1-beta\tideplatform.dll [09:32:29:760] [Ti.Host]
[Information] Loaded module = platform [09:32:29:764] [Ti.Host]
[Debug] Loading module: C:\ProgramData\TideSDK\modules\
win32\process\1.3.1-beta\tideprocess.dll [09:32:29:777] [Ti.Host]
[Information] Loaded module = process [09:32:29:783] [Ti.Host] [Debug]
Loading module: C:\ProgramData\TideSDK\modules\
win32\ui\1.3.1-beta\tideui.dll [09:32:29:798] [Ti.Host] [Information]
Loaded module = ui [09:32:29:802] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\ win32\worker\1.3.1-beta\tideworker.dll
[09:32:29:813] [Ti.Host] [Information] Loaded module = worker
[09:32:29:818] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\
win32\filesystem\1.3.1-beta\tifilesystemmodule.js [09:32:29:825]
[Ti.JavaScript] [Information] Loading JS path=C:\ProgramData\Tide
SDK\modules\win32\filesystem\1.3.1-beta\tifilesystemmodule.js
[09:32:29:837] [Ti.Host] [Information] Loaded module = tifilesystem
[09:32:29:841] [Ti.Host] [Debug] Loading module:
C:\ProgramData\TideSDK\modules\
win32\network\1.3.1-beta\tinetworkmodule.js [09:32:29:848]
[Ti.JavaScript] [Information] Loading JS path=C:\ProgramData\Tide
SDK\modules\win32\network\1.3.1-beta\tinetworkmodule.js [09:32:29:865]
[Ti.Host] [Information] Loaded module = tinetwork [09:32:29:868]
[Ti.Host] [Debug] Loading module: C:\ProgramData\TideSDK\modules\
win32\process\1.3.1-beta\tiprocessmodule.js [09:32:29:875]
[Ti.JavaScript] [Information] Loading JS path=C:\ProgramData\Tide
SDK\modules\win32\process\1.3.1-beta\tiprocessmodule.js [09:32:29:886]
[Ti.Host] [Information] Loaded module = tiprocess [09:32:30:071]
[Ti.UI.Win32WebKitPolicyDelegate] [Debug] decidePolicyForMIMEType ()
not implemented [09:32:30:133] [Ti.JavaScript.JSUtil] [Debug]
Evaluating JavaScript file at: C:\
ProgramData\TideSDK\modules\win32\ui\1.3.1-beta\ui.js [09:32:30:458]
[Ti.Proxy] [Debug] Looking up proxy information for: https://api.
appcelerator.net/p/v1/app-track [09:32:30:471] [Ti.Proxy] [Debug]
Using direct connection. [09:32:59:866] [Ti.Database.DB] [Debug] DB
Path = C:\Users\Administrateur\AppDat
a\Roaming\TideSDK\standalone-chatpomelo\Databases.db [09:32:59:875]
[Ti.Database.DB] [Debug] Creating table Origins [09:32:59:878]
[Ti.Database.DB] [Debug] Creating table Databases [09:32:59:883]
[Ti.Database.DB] [Debug] Execute called with create table if not
exists last_check(time long) [09:32:59:889] [Ti.Database.DB] [Debug]
sql returned: 0 rows for result
[09:32:59:893] [Ti.Database.DB] [Debug] Execute called with select strftime('%s'
,'now')-time from last_check
[09:32:59:899] [Ti.Database.DB] [Debug] sql returned: 1 rows for result

当我点击加入按钮时:

[09:33:48:758] [Ti.Proxy] [Debug] Looking up proxy information for:
http://127.0 .0.1:3014/socket.io/1/?t=1371029628706 [09:33:48:767]
[Ti.Proxy] [Debug] Using direct connection. [09:33:58:990] [Ti.Proxy]
[Debug] Looking up proxy information for: http://127.0
.0.1:3014/socket.io/1/xhr-polling/CgIVO7gZHpHkKvWon4Nf?t=1371029638938
[09:33:59:000] [Ti.Proxy] [Debug] Using direct connection.
[09:33:59:057] [Ti.API] [Information] [pomeloclient.init] websocket
connected!

之后就没有别的了……知道怎么回事吗?我不知道您是否可以帮助我,或者我是否必须在 Pomelo 论坛上提问...

4

1 回答 1

1

好吧,我在 tidSDK 控制台上发现了一些错误:

ReferenceError: Can't find variable: Uint8Array js/lib/build/build.js : 709

当我点击“测试服务器”按钮时:

TypeError: Result of expression 'pomelo' [undefined] is not an object. index.html : 24

第一个似乎是因为tideSDK使用的旧webkit版本!

我在 github pdf.js ( https://github.com/mozilla/pdf.js ) 中找到了一个 compatibility.js 文件,它似乎解决了第一个问题,但现在我有了另一个:

Can't find variable: ArrayBuffer

好吧,这个旧的 webkit 版本似乎很烦人......知道如何解决这个新错误吗?第二个呢?

于 2013-06-14T10:00:21.277 回答