[-] Zykino@programming.dev 4 points 1 week ago
  1. You need a license
  2. usage should just be help (avoid extra step)
  3. connect does not exist (see add and cmd list)
  4. You can git clone <REPO> <DEST FOLDER>, no need to cd
  5. maybeCreateDir is not used each time, there are some mkdir
  6. "changes" is not a helpfull commit message. Accept an optional argument string and {MESSAGE:=change}
  7. Accept a different repo path
  8. set -euxo pipefail at the start of the script if you want to exit at any error. Some sort of bash strict mode
  9. shellcheck does not like iterating over ls's output

I'm too lazy to open issues/PR for all that, and I still need to learn stow. Hopfully this might help me ? (I don't really need help with git that this sçript look to abstract too much for me.)

[-] Zykino@programming.dev 3 points 1 week ago

La faute à qui ? Qui aurait pu prévoir que le groupe présidentiel ne retrouverait pas la majorité au lendemain des européenes ?

[-] Zykino@programming.dev 4 points 1 week ago

Yup, pull requests are an invention from git's servers (I think github came up with that first). The built in way (famously used by the linux kernel) is git-send-email.

20
submitted 2 weeks ago* (last edited 1 week ago) by Zykino@programming.dev to c/godot@programming.dev

I have been looking for a way to move non player entities on the map. For example I want cars to move around road, a parking lot, … I found way too many options without comparaison to see pro/cons. Is there a ressource telling which option is privileged?

I saw (in 2D, but I suspect all/most have their 3D equivalent):

Option My understanding
Path2D Very rigid path to follow (only saw used with tween). Can be nice to follow tracks, insert cubes in slot, … But when trying to have a more natural movement, with a bit of variety thanks to physic I don’t see how to do it.
AStar2D (and the AStar2DGrid variant) Robust algo known everywhere. Can add weight to connections. I suspect to make it work we have to give points to reach so we should "cover" the maps with points and link them together
NavigationServer2D Same as AStar2D but experimental, more automatic. Instead of specifying all the point we specify accessible zones. But adding weight to the connection is less obvious (using NavigationObstacle2D?) may be less customizable also?

Are there more options?
Is my understanding of each correct or completely wrong?
What is "the best" one (in Godot 4.3)? Like is there big performance drawback for some (at 100 entities there are lags or whatever)?

Keep in mind that I want my game as little as I can to understand how Godot/game engines work (I’m a developer so that part is easy, Scenes and Nodes choice less so), I don’t really care if using experimental feature means it disappear at some point or change behavior.

Edit: Just found out the official page explaining the different methodes.
So AStar is for grid/pathing on a set of points while NavigationServer can navigate to any point on the accessible area and uses A* as an implementation detail.

=> I think for my use case A* is better suited since I want to move on roads (that look like a grid with weight being the length).

[-] Zykino@programming.dev 3 points 3 weeks ago

Oh, didn't knew about Alt d. Thx

[-] Zykino@programming.dev 13 points 3 weeks ago

When I'm unsure, I ls <the-glob>, chek, then replace ls with rm.

[-] Zykino@programming.dev 5 points 1 month ago

Just use this one... or any of this 4 others.

This is the issue for us, python outsiders. Each time we try we get a different answer with new tools. We are outside of the comtunity, we don't know the trend, old and new, pro and cons.

Your first recommandation is hatch... first time I've heard of it. Uv seems trendy in this thread, but before that it was unknown to me too.

As I understands it, it should be pip's job. When it detect I'm in a project it install packages in it and python use them. It can use any tool under the hood, but the default package manager shoud be able to do it on its own.

[-] Zykino@programming.dev 2 points 1 month ago

Zellij always permitted to change all the keybindings… On the discord peoples asked for Alt as default modifier, and shared their config default locked. That what motivated the maintainer to include this sort of configs. With this version zellij implement the kitty’s keyboard protocol, which should enable to use more key combinaison (if your terminal support it). I’m not sure about multiples modifiers, I haven’t installed it yet.

I’m not sure what you mean by "not being able to lock floating windows on top".

[-] Zykino@programming.dev 2 points 1 month ago

Why does it needs mic permission?

[-] Zykino@programming.dev 4 points 1 month ago

Where can I learn what each colors means? Is it buried in man htop somewhere? Or in a website?

[-] Zykino@programming.dev 2 points 2 months ago

and you won’t use At “just” for a bit of concurrency. Right ?

Is "At" a typo?

Yes I wanted to talk about the Qt Framework. But with that much ways to do concurrency in the language's core, I suspect you would use this framework for more than just its signal/slots feature. Like if you want their data structures, their network or GUI stack, …

I'm not using Python, but I love to know the quirks of each languages.

[-] Zykino@programming.dev 3 points 2 months ago* (last edited 2 months ago)

Wow coming from C++/Rust I was about to answer that both are parallelism. I did not knew about python's GIL. So I suppose this is the preferred way to do concurrency, there is no async/await, and you won't use Qt "just" for a bit of concurrency. Right ?

We learn a little bit everyday. Thanks!

[-] Zykino@programming.dev 2 points 2 months ago

I read that global hotkey is not possible in Wayland. Or, at least, not as easily as with XOrg. Did you achived it ? Can you link to where you are doing it in your code please ? I'm curious, especially since its the first time I heard global hotkeys from a terminal program.

I try not to use global hotkeys myself. Do you have another way of controlling the soundboard ? Either from websocket, DBus, launching a command, ... I like to use streampi^1^ (open source streamdeck clone) for streaming and it may use any of this interraction methods. (Websocket may require to write a plugin for yëur program.)

^1^ Streampi as stopped developpment for now in its v2 snapshots. Still usable. But the dev want to rewrite in C++/Qt for a v3.

view more: next ›

Zykino

joined 2 months ago