Godot

5920 readers
118 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 1 year ago
MODERATORS
201
202
69
submitted 7 months ago by [email protected] to c/godot
 
 

Steamdeck Cassette player thingy I have been making with Godot.

203
20
submitted 7 months ago by mac to c/godot
204
205
206
 
 

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

207
208
 
 

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.

209
210
42
submitted 8 months ago by mac to c/godot
211
212
 
 

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!

213
 
 

Follow @[email protected] for more fun 😊

214
40
submitted 8 months ago* (last edited 8 months ago) by mac to c/godot
215
 
 

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

216
217
218
20
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/godot
 
 

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.

219
 
 
  • Keep It Running
  • Sealed Bite: Extended
  • W4 Cloud
  • Inside the Machine
  • Honk of Heroes
220
221
222
 
 

Hi everybody! If you watched one of the previous videos in which we created a square grid, you might have wondered how difficult it would be to achieve a similar effect with perfectly aligned hexagons. There are certain differences, but the algorithm is not extremely complex. Let's get into it.

223
21
submitted 8 months ago by popcar2 to c/godot
224
225
87
submitted 8 months ago by popcar2 to c/godot
 
 

Long overdue post on the potential for using Godot for GUI app development and why I think it's pretty cool!

view more: ‹ prev next ›