diff --git a/README.md b/README.md index cdd3f1e..d7e32e6 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,8 @@ This project is cost a lot of time and effort, if it can help you, please [buy m 1. If you want to use overlay (only available for Windows), pay attention to the settings of the renderer. 2. About Android exporting: only testing with "EOS Android SDK 1.16.1". -3. Some Apis in `1.16.1` will lead to crash by the bug of SDK itself: +3. `XxxAttributeData.Key` will be converted to upper case when transfering to remote peer, you should not use lower charactors in your key. +4. Some Apis in `1.16.1` will lead to crash by the bug of SDK itself: 1. `EOSUserInfoInterface.copy_best_display_name()` -> `EOS_UserInfo_CopyBestDisplayName()` ## Exporting for Android diff --git a/README.zh.md b/README.zh.md index 54d08e7..e14f6e3 100644 --- a/README.zh.md +++ b/README.zh.md @@ -128,7 +128,8 @@ 1. 如果你要使用覆层(仅Windows可用),要注意渲染器的设置。 2. 关于安卓导出: 目前仅使用 "EOS Android SDK 1.16.1" 测试通过,如果要进行安卓导出,注意下载的SDK版本应该对应。 -3. 某些`1.16.1`版本的接口会由于SDK本身的bug导致程序奔溃: +3. `XxxAttributeData` 的 `Key` 字段传输到远端时会被转为大写,因此你不应该使用小写字符作为键。 +4. 某些`1.16.1`版本的接口会由于SDK本身的bug导致程序奔溃: 1. `EOSUserInfoInterface.copy_best_display_name()` -> `EOS_UserInfo_CopyBestDisplayName()` ## 安卓导出 diff --git a/demo/scenes/main/main.gd b/demo/scenes/main/main.gd index e22b448..b7e6694 100644 --- a/demo/scenes/main/main.gd +++ b/demo/scenes/main/main.gd @@ -188,7 +188,7 @@ func _create_lobby_async() -> void: _entered_lobby_id = create_result.lobby_id - # Initialize lobby info, we use "started" to sreach lobbies. + # Initialize lobby info, we use "STARTE" to sreach lobbies. var ulmr := EOSLobby.update_lobby_modification(_product_user_id, _entered_lobby_id) if ulmr.result_code != EOS.Success: printerr("== Update lobby modification failed: ", EOS.result_to_string(ulmr.result_code)) @@ -197,7 +197,7 @@ func _create_lobby_async() -> void: var lobby_modification := ulmr.lobby_modification var parameter := EOSLobby_AttributeData.new() - parameter.key = "started" + parameter.key = "STARTE" parameter.value = false var add_attribute_result = lobby_modification.add_attribute(parameter, EOSLobby.LAT_PUBLIC) if add_attribute_result != EOS.Success: @@ -224,7 +224,7 @@ func _refresh_lobbies_list_async() -> void: var lobby_search: EOSLobbySearch = clsr.lobby_search # Ignore strated lobbies. var parameter := EOSLobby_AttributeData.new() - parameter.key = "started" + parameter.key = "STARTE" parameter.value = false lobby_search.set_parameter(parameter, EOS.CO_EQUAL)