Skip Navigation

Posts
12
Comments
55
Joined
3 yr. ago

  • I wouldn't have gotten here without doing almost all of the previous steps. I even learned a lot about Godot and other libraries.

    To solve this issue, go to PROJECT SETTINGS -> NETWORK -> LIMITS -> Max In Buffer (KB) & Max Out Buffer (KB) to a generous 1024 AND (I think) set Max Buffer (Power of 2) to a whopping 256.

  • UPDATE

    I posted this before testing out an older version of godot and it seems to work just great! But as in the github issue, that is because of changes with how the protocols worked and what headers are sent!

    Here is the code for use in Godot 3.1.1:

     
        
    extends Node
    
    var _client = WebSocketClient.new()
    
    func _ready():
    	print("connecting...")
    	_client.connect("connection_closed", self, "ws_closed")
    	_client.connect("connection_error", self, "ws_connection_error")
    	_client.connect("connection_established", self, "ws_connection_established")
    	_client.connect("server_close_request", self, "ws_close_request")
    	_client.connect_to_url("wss://ws.revolt.chat/?version=1&format=json&token={token}")
    
    func ws_closed(clean):
    	if !clean:
    		print("websocket closed")
    	else:
    		print("websocket closed cleanly")
    
    func ws_connection_error():
    	print("websocket connection failed")
    
    func ws_connection_established(protocol):
    	print("we're connected using protocol: ", protocol)
    
    func ws_close_request(code, reason):
    	print("closed with code: ", code, " and reason: ", reason)
    
    func _process(delta):
    	if _client.get_connection_status() == WebSocketClient.CONNECTION_DISCONNECTED:
    		return
    	print(_client.get_peer(1).get_packet().get_string_from_utf8())
    	_client.poll()
    
      
  • UPDATES

    For this new chunking, each chunk gets a spatial for each of its terrain texture multimeshes. It is also functioning properly now. It simply counts up to the amount of necessary chunk_size points then starts a new chunk.

    A chunking system that is actually good | better chunks 2b091f189e

    Each texture now has its own multimesh | terrain is now textured + generate texturedata d03de637eb

    Quickly set the size of each terrain node/point | cleanup and point size 2bff7a7cde

  • If you need help implementing this into your game, send me a message or email. I'll see what I can do without a guarantee.

  • What game engine will you be working in? (nudge nudge 🤖)

  • WTF???

    Jump
  • I believe that all of these major players are being controlled at almost gunpoint into destroying their platforms and making horrible business decisions (facebook, twitter, youtube, etc).

  • WTF???

    Jump
  • Maybe after a few too wrong moves, he's trying to tank the company and make people think he's doing it on purpose so he could say that all this time he's been doing it on purpose. On purpose on purpose.

  • dead man switch

  • Cloudflare definitely has a great service and the positives probably overweight the negatives in this situation. But the potential for an attack from within cloudflare itself via trackers or a probably very low chance of a letter man being in the middle can feel a little tense. It boils down to not trusting the company. I especially do not like those outages, captchas, cookies and a centralized web. Cloudflare will help Lemmy stay on top of everything and keep stability though.

    Maybe being addicted to uBlock having only green and no detections makes me worried. It's like a little bit of dirt on the floor.

  • Cloudflare makes the website feel dirty, but it'll protect the site until a better option is found.

  • Guys guys guys c/lemmyshitpost c/lemmyshitpost

  • Nah it's the sudden decline of our lovable swashbuckling seafaring pirates

  • What if they defederate so my visa expires and now I am stuck in the spaceport limbo?

  • Definitely not lemmings.