# 自测工具

## [1.0.15 - 2021-12-29](https://all.res-gamebox.cocos.com/res/Cocos_Game_Tools_v1.0.15.apk)

1. 增加深度纹理扩展以及压缩问题astc、etc 扩展支持
2. 修复稳定性问题

## [1.0.14 - 2020-09-08](https://all.res-gamebox.cocos.com/res/Cocos_Game_Tools_v1.0.14.apk)

增加扫描二维码导入的功能

## [1.0.12 - 2020-07-21](https://chukong.oss-cn-qingdao.aliyuncs.com/res/Cocos_Game_Tools_v1.0.12.apk)

增加文件选择功能

## [1.0.11 - 2020-03-10](http://chukong.oss-cn-qingdao.aliyuncs.com/uploads/202003/apk/78721531e94c0da5e469be44e6c8ede4.apk)

游戏配置界面增加常见问题提示

## [1.0.10 - 2020-01-13](http://chukong.oss-cn-qingdao.aliyuncs.com/uploads/202001/apk/3ba2c3062f412147c0028da83b5a1bc7.apk)

首页增加开启chrome调试按钮，使用介绍看下方。

## [1.0.9 - 2020-01-08](http://chukong.oss-cn-qingdao.aliyuncs.com/uploads/202001/apk/a43c8a1a694ff0b6f168d984979ae066.apk)

修复h5游戏、runtime游戏广告创建异常

### 使用方法：

1、开发者将APK文件下载下来安装到手机。

2、打开APP点击左上角配置游戏按钮，进入游戏配置页面，参考以下配置游戏：

配置文件格式：

```
{
   gameId: 100001,  
   gameType: 对战类游戏/非对战类游戏,
   gameMode: h5/runtime/h5外链,
   loadType: file/url, 
   path: /jeekegame/game.cpk 
}
```

配置文件说明：

| **参数**       | **含义** | **类型** | **备注**                                                                                                                                                                                                        |
| ------------ | ------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| gameId       | 游戏ID   | 整数     | 通过CP后台获取                                                                                                                                                                                                      |
| loadType     | 游戏加载类型 | 字符串    | ”file” 或 ”url”                                                                                                                                                                                                |
| gameMode     | 游戏加载形式 | 字符串    | runtime、H5游戏链接、H5游戏                                                                                                                                                                                           |
| gameType     | 游戏类型   | 字符串    | 对战和非对战游戏                                                                                                                                                                                                      |
| loadLocation | 游戏加载地址 | 字符串    | <p>根据加载类型,</p><p>1、以文件方式从指定位置加载游戏包</p><p>（加载类型为：”file”）</p><p>2、以网页方式从指定网址</p><p>打开游戏（加载类型为：”url”）<br>url例：<a href="http://chukong"><http://chukong...cpk>?</a>index.html</p><p>File例：/cocosgame/game.cpk</p> |

3、配置完成后点击保存，然后启动游戏，测试工具会根据配置的参数拉起游戏。

## 关于小游戏chrome调试

注意 : 保证Android/ios设备与PC/Mac在同一局域网中。如开启chrome调试vConsole关闭。

### 开启chrome调试

在chrome游览器中输入链接地址 **devtools\://devtools/bundled/inspector.html?v8only=true\&ws=xxx.xxx.xxx.xxx:5086/00010002-0003-4004-8005-000600070008** , 其中 xxx.xxx.xxx.xxx 为局域网中 Android/iOS 设备的 IP 地址。使用自测工具，配置游戏成功后，回到主界面，主界面点击启动游戏，自测工具会停在初始化游戏环境界面，等待 JS 调试器连接，刷新chrome后，连接成功后，进入游戏。

### **开始调试**

运行游戏后，即可在chrome调试js代码。chrome中并不会有游戏界面展示，只可以在sources标签中查看debug代码。加断点后需重新启动游戏，游览器刷新链接，游戏运行便可定位到断点处。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gamebox.gitbook.io/project/you-xi-jie-ru-wen-dang/zi-ce-gong-ju.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
