Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

MarshReaper, to godot in WebSocket not receiving anymore updates after initial connection
@MarshReaper@lemmy.world avatar

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.

MarshReaper, to godot in WebSocket not receiving anymore updates after initial connection
@MarshReaper@lemmy.world avatar

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:


<span style="color:#323232;">extends Node
</span><span style="color:#323232;">
</span><span style="color:#323232;">var _client = WebSocketClient.new()
</span><span style="color:#323232;">
</span><span style="color:#323232;">func _ready():
</span><span style="color:#323232;">	print("connecting...")
</span><span style="color:#323232;">	_client.connect("connection_closed", self, "ws_closed")
</span><span style="color:#323232;">	_client.connect("connection_error", self, "ws_connection_error")
</span><span style="color:#323232;">	_client.connect("connection_established", self, "ws_connection_established")
</span><span style="color:#323232;">	_client.connect("server_close_request", self, "ws_close_request")
</span><span style="color:#323232;">	_client.connect_to_url("wss://ws.revolt.chat/?version=1&format=json&token={token}")
</span><span style="color:#323232;">
</span><span style="color:#323232;">func ws_closed(clean):
</span><span style="color:#323232;">	if !clean:
</span><span style="color:#323232;">		print("websocket closed")
</span><span style="color:#323232;">	else:
</span><span style="color:#323232;">		print("websocket closed cleanly")
</span><span style="color:#323232;">
</span><span style="color:#323232;">func ws_connection_error():
</span><span style="color:#323232;">	print("websocket connection failed")
</span><span style="color:#323232;">
</span><span style="color:#323232;">func ws_connection_established(protocol):
</span><span style="color:#323232;">	print("we're connected using protocol: ", protocol)
</span><span style="color:#323232;">
</span><span style="color:#323232;">func ws_close_request(code, reason):
</span><span style="color:#323232;">	print("closed with code: ", code, " and reason: ", reason)
</span><span style="color:#323232;">
</span><span style="color:#323232;">func _process(delta):
</span><span style="color:#323232;">	if _client.get_connection_status() == WebSocketClient.CONNECTION_DISCONNECTED:
</span><span style="color:#323232;">		return
</span><span style="color:#323232;">	print(_client.get_peer(1).get_packet().get_string_from_utf8())
</span><span style="color:#323232;">	_client.poll()
</span>
MarshReaper, to godot in Terrain for Godot 3.x
@MarshReaper@lemmy.world avatar

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

https://lemmy.world/pictrs/image/178276d4-988b-4d20-972d-b401af7ccf9b.png

Each texture now has its own multimesh | terrain is now textured + generate texturedata d03de637ebhttps://lemmy.world/pictrs/image/16f302fa-c864-4ad3-b370-80f95a7a5dbd.png

Quickly set the size of each terrain node/point | cleanup and point size 2bff7a7cdehttps://lemmy.world/pictrs/image/c9de1831-7c9f-47b0-b2d4-13db59cfa112.png

MarshReaper, to godot in Terrain for Godot 3.x
@MarshReaper@lemmy.world avatar

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.

MarshReaper, to 196 in Game derulepment
@MarshReaper@lemmy.world avatar

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

MarshReaper, to whitepeopletwitter in WTF???
@MarshReaper@lemmy.world avatar

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).

MarshReaper, to antiquememesroadshow in Do they?
@MarshReaper@lemmy.world avatar

thought it said Electric EP

MarshReaper, to whitepeopletwitter in WTF???
@MarshReaper@lemmy.world avatar

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.

MarshReaper, to memes in *points finger* That's bait.
@MarshReaper@lemmy.world avatar

I know there are some configurations that manage to disguise themselves as a real machine. I would like to look into that as it could be very useful. At the same time, I also wonder how deep the kernel level whatever go into my personal device.

MarshReaper, to asklemmy in My Father In Law’s Deathbed confession – what can I do to help?
@MarshReaper@lemmy.world avatar

dead man switch

MarshReaper, to memes in *points finger* That's bait.
@MarshReaper@lemmy.world avatar

It probably wouldn’t work out for the spyware that doesn’t want you running a VM for “anti-cheating” purposes.

MarshReaper, to lemmyworld in Lemmy.world update: Downtime today / Cloudflare
@MarshReaper@lemmy.world avatar

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.

MarshReaper, to lemmyworld in Lemmy.world update: Downtime today / Cloudflare
@MarshReaper@lemmy.world avatar

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

MarshReaper, to memes in The decentralized web is growing
@MarshReaper@lemmy.world avatar

Better to move them to something more private at the very least. Then we can slowly heal their addiction through in-app propaganda and purposefully declined algorithm performance over a long period of time.

MarshReaper, to lemmyshitpost in Buffed af
@MarshReaper@lemmy.world avatar

Guys guys guys c/lemmyshitpost c/lemmyshitpost

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • cisconetworking
  • DreamBathrooms
  • InstantRegret
  • ethstaker
  • magazineikmin
  • Youngstown
  • thenastyranch
  • mdbf
  • slotface
  • rosin
  • modclub
  • kavyap
  • GTA5RPClips
  • provamag3
  • osvaldo12
  • khanakhh
  • cubers
  • Durango
  • everett
  • ngwrru68w68
  • tester
  • normalnudes
  • tacticalgear
  • anitta
  • megavids
  • Leos
  • lostlight
  • All magazines