wip
This commit is contained in:
@@ -9,9 +9,11 @@ func _ready():
|
||||
start_server()
|
||||
|
||||
func start_server():
|
||||
print("Try to start the server.")
|
||||
var peer = NetworkedMultiplayerENet.new()
|
||||
var result = peer.create_server(SERVER_PORT, MAX_PLAYERS)
|
||||
var peer = WebSocketServer.new()
|
||||
var result = peer.listen(SERVER_PORT, PoolStringArray(), true)
|
||||
get_tree().connect("server_disconnected", self, "_close_network")
|
||||
get_tree().set_network_peer(peer)
|
||||
print("Server started.")
|
||||
|
||||
if result != OK:
|
||||
print("Failed creating the server.")
|
||||
|
@@ -7,7 +7,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="../../Godot_Executables/Server_linux/Server.x86_64"
|
||||
export_path="../../../../Executables/hexagon_linux_server.x86_64"
|
||||
patch_list=PoolStringArray( )
|
||||
script_export_mode=1
|
||||
script_encryption_key=""
|
||||
@@ -65,3 +65,26 @@ application/product_name=""
|
||||
application/file_description=""
|
||||
application/copyright=""
|
||||
application/trademarks=""
|
||||
|
||||
[preset.2]
|
||||
|
||||
name="HTML5"
|
||||
platform="HTML5"
|
||||
runnable=true
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path=""
|
||||
patch_list=PoolStringArray( )
|
||||
script_export_mode=1
|
||||
script_encryption_key=""
|
||||
|
||||
[preset.2.options]
|
||||
|
||||
vram_texture_compression/for_desktop=true
|
||||
vram_texture_compression/for_mobile=false
|
||||
html/custom_html_shell=""
|
||||
html/head_include=""
|
||||
custom_template/release=""
|
||||
custom_template/debug=""
|
||||
|
@@ -15,7 +15,7 @@ _global_script_class_icons={
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Server_project"
|
||||
config/name="Hexagon_webRTC_server"
|
||||
run/main_scene="res://Scenes/Matchmaking/Server/Server.tscn"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
|
Reference in New Issue
Block a user