Godot

6246 readers
134 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

[email protected]

Credits

founded 2 years ago
MODERATORS
276
 
 
  • Pinbot
  • District Panic
  • SimpleDungeons
  • Frood Robotics
  • Desvelado
277
278
 
 

Hi everyone! As you may recall, in one of the previous videos, I was creating snow particles in a 3D scene. This time, I would focus on a similar effect, but instead, it would be in 2D, and it would be rain particles.

279
 
 
280
 
 

cross-posted from: https://programming.dev/post/12340077

I made a mod launcher for classic Doom (specifically, GZDoom) because I wasn't a fan of what currently exists. CleanDoom focuses on simplicity and usability.

If anyone here is a Doom fan, give it a try and let me know what you think!

This may not sound that relevant to this community, but I made this with Godot 4.2, so I thought I'd share it here too.

281
282
 
 

Steamdeck Cassette player thingy I have been making with Godot.

283
284
285
286
 
 

Amata has a new gameplay trailer on Steam! Lots of new updates recently as well :D. Wishlist and try the demo if you like what you see!

Short trailer: https://youtube.com/shorts/ys_J1pymrpc

Steam: https://store.steampowered.com/app/1841160/Amata/

Discord: https://discord.gg/famAakEBJX

287
288
 
 

Hey everybody! In this video, I would like to demonstrate how we can enhance the effect that we know from the very first video about shaders that I recorded for this channel. The enhancement will consist of displaying something like continuous plasma instead of rippling lines, for which we will use very similar calculations. Let's get started.

289
290
291
292
 
 

I finally published my first addon, and it hit the asset library today!

Log.pr(...) and Log.prn(...) are intended as drop-in replacements for print(...):

  • colorizes the output data based on type
  • recursively prints dictionaries and arrays
    • (with a sane max count, i.e. not printing 1000 entries in an array)
  • adds a script-name prefix and line-number before each log
    • with different treatment for [src:12]: vs <addons:12>: vs {test:12}: scripts

For me this helps reduce wall-of-text noise and eye strain while reading logs at a glance.

I created a docs site via docsify, and the code is on github.

I'll be adding support for more types and customizing the color choices soon. You can opt-in to pretty-printing with your own objects by implementing a to_printable() function. I'm brainstorming ways to add support for not-your custom types as well (for example, Pandora Entities) - I have a few ideas but nothing implemented yet.

I've been using it in my own projects for a few months now, so it feels ready to share - I'm hopeful that others find it useful!

Try it out, let me know what you think!

293
 
 

Follow @[email protected] for more fun 😊

294
39
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
295
 
 

Godot web socket client is not receiving anymore updates from Revolt web socket server (https://developers.revolt.chat/stack/bonfire/establishing) after first data is received

first data is an Authentication success message:

{
  "type": "Authenticated"
}

This success message comes when a successful token is received.

Since there are no updates and you cannot send any data after initial connection (data_received never called again, so put_packet() not working apparently), the token will have to be in query parameters:

wss://ws.revolt.chat/?version=1&format=json&token={token}

in order to even receive that success message.

An issue relating to web sockets was opened: https://github.com/godotengine/godot/issues/27560

The user claims that one of the headers causes the connection to cease.

The problem header is Connection: close, Upgrade

    GET / HTTP/1.1
    Pragma: no-cache
    Cache-Control: no-cache
    Host: echo.websocket.org
    Upgrade: websocket
    Connection: close, Upgrade
    Sec-WebSocket-Key: HKWU1xOVV6PP6HXjcIWMDQ==
    Sec-WebSocket-Version: 13

    HTTP/1.1 101 Web Socket Protocol Handshake
    Connection: Upgrade
    Date: Sun, 31 Mar 2019 19:09:01 GMT
    Sec-WebSocket-Accept: 0IHc3riAKJz52YmkLVcWrDHvaYs=
    Server: Kaazing Gateway
    Upgrade: websocket

IMPORTANT!!

What SHOULD happen and what happens on other clients like websocketking, piehost, or this one is receiving a READY update

the big issue:

connect_to_url() is the only thing that sends data or the connection closes or a protocol error

It would be of great help if anyone could give any little piece of knowledge or suggestion on this. code

296
297
 
 

I would like to be able to view mp4 files in my Godot game, but I can't seem to get this extension to work properly. I hear sound, but I do not see the picture.

I have gotten the built-in video player to work and it seems to work quite well. The downside is that it only supports Ogg Theora, which is unfavorable for my use case.

Does anyone have experience with viewing (mp4) video files in Godot 4?

Edit: In case it matters, I run Godot 4.2.1 on linux.

298
 
 
  • Keep It Running
  • Sealed Bite: Extended
  • W4 Cloud
  • Inside the Machine
  • Honk of Heroes
299
300
view more: ‹ prev next ›