请选择 进入手机版 | 继续访问电脑版
查看: 762|回复: 2

[反馈] 关于多人联机开发的问题

[复制链接]

12

主题

61

回帖

52

积分

Lv.3 矿物能手

UID
6514283
小麦
0
金锭
296
下界之星
0
发表于 2019-8-9 14:48:20 | 显示全部楼层 |阅读模式 IP:江苏
我们在尝试着制作多人联机玩法的时候发现如下问题,希望能够得到相关支持
1、目前无法在手机测试端直接测试多人联机,会显示服务器维护中。
这个问题直接造成了组件做完后无法测试,造成组件得多次审核才能修复bug。
例如pc mod端测试的时候,主机断开连接后,其他玩家也会掉线。但在手机版中,房主退出游戏,其他玩家还会卡在游戏中。

2、多人联机人数的限制
上传时设置的人数,只做到了提示,不能直接限制人数。
我们在server.properties输入了max-players=6之后。上传平台,无法通过审核,审核显示只能有一个一级目录。打包格式如下


3、多人联机权限的设置
由于是地图+玩法,房主是拥有管理员权限的,那作为多人联机玩法,是否有提供地图权限这方面的api呢,比如能在server.properties直接设置地图的一些权限内容


4、如何设置游戏开始后,玩家无法加入房间,有相关api吗
我们目前做的是多人竞技类玩法,玩家开始游戏后理论上来说是不能继续加入新玩家的,有这方面的api吗?

5、server.properties的设置内容和国际版是否相同呢,以下内容都能设置吗
  1. server-name=Dedicated Server
  2. # Used as the server name
  3. # Allowed values: Any string

  4. gamemode=survival
  5. # Sets the game mode for new players.
  6. # Allowed values: "survival", "creative", or "adventure"

  7. difficulty=hard
  8. # Sets the difficulty of the world.
  9. # Allowed values: "peaceful", "easy", "normal", or "hard"

  10. allow-cheats=false
  11. # If true then cheats like commands can be used.
  12. # Allowed values: "true" or "false"

  13. max-players=10
  14. # The maximum number of players that can play on the server.
  15. # Allowed values: Any positive integer

  16. online-mode=true
  17. # If true then all connected players must be authenticated to Xbox Live.
  18. # Clients connecting to remote (non-LAN) servers will always require Xbox Live authentication regardless of this setting.
  19. # If the server accepts connections from the Internet, then it's highly recommended to enable online-mode.
  20. # Allowed values: "true" or "false"

  21. white-list=false
  22. # If true then all connected players must be listed in the separate whitelist.json file.
  23. # Allowed values: "true" or "false"

  24. server-port=19132
  25. # Which IPv4 port the server should listen to.
  26. # Allowed values: Integers in the range [1, 65535]

  27. server-portv6=19133
  28. # Which IPv6 port the server should listen to.
  29. # Allowed values: Integers in the range [1, 65535]

  30. view-distance=32
  31. # The maximum allowed view distance in number of chunks.
  32. # Allowed values: Any positive integer.

  33. tick-distance=4
  34. # The world will be ticked this many chunks away from any player.
  35. # Allowed values: Integers in the range [4, 12]

  36. player-idle-timeout=30
  37. # After a player has idled for this many minutes they will be kicked. If set to 0 then players can idle indefinitely.
  38. # Allowed values: Any non-negative integer.

  39. max-threads=8
  40. # Maximum number of threads the server will try to use. If set to 0 or removed then it will use as many as possible.
  41. # Allowed values: Any positive integer.

  42. level-name=Bedrock level
  43. # Allowed values: Any string

  44. level-seed=
  45. # Use to randomize the world
  46. # Allowed values: Any string

  47. default-player-permission-level=member
  48. # Permission level for new players joining for the first time.
  49. # Allowed values: "visitor", "member", "operator"

  50. texturepack-required=false
  51. # Force clients to use texture packs in the current world
  52. # Allowed values: "true" or "false"

  53. content-log-file-enabled=false
  54. # Enables logging content errors to a file
  55. # Allowed values: "true" or "false"
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

3

主题

138

回帖

65

积分

Lv.3 矿物能手

UID
6472670
小麦
3
金锭
422
下界之星
0
发表于 2019-8-11 16:41:03 来自手机 | 显示全部楼层 IP:浙江
一般克服这种问题就是在代码设计中 让中途进来的玩家在游戏场景的另一头 不让他们直接参与游戏

4

主题

1093

回帖

345

积分

Lv.2 石器学徒

UID
3409745
小麦
4
金锭
1241
下界之星
0
发表于 2019-8-12 18:11:12 | 显示全部楼层 IP:广东
1.现在可通过手机测试端的本地联机来测试,其他测试方式我们也正在开发;
2.在server.properties里面设置的max-players是不生效的,上传时设置的人数为建议人数;
3.具体希望怎样的权限设置呢,希望提供一个比较具体的描述;
4.即将上线的竞技模式支持你说的这种情况,如果是普通模式,那么需要自己处理游戏过程中加入的玩家;
5.除了level-name、port、online-mode、max-player、whitelist外,其他都可以。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部