Skip to content

Commit

Permalink
更新demo与注意事项:不该使用小写字符作为key
Browse files Browse the repository at this point in the history
  • Loading branch information
Daylily-Zeleen committed Apr 20, 2024
1 parent fb62bc7 commit c590175
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
## 安卓导出
Expand Down
6 changes: 3 additions & 3 deletions demo/scenes/main/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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:
Expand All @@ -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)

Expand Down

0 comments on commit c590175

Please sign in to comment.