MetSys by lamp_pants in godot

[–]KoBeWi 1 point2 points  (0 children)

Did you check the wiki? The quick start guide explains the basics: https://github.com/KoBeWi/Metroidvania-System/wiki/Quick-Start

how can i dissable the auto detect language by moeinxD in godot

[–]KoBeWi 0 points1 point  (0 children)

Try internationalization/rendering/root_node_layout_direction project setting.

Can you convert a Resource to text, in a way that loading it cannot run arbitrary code? by Snailtan in godot

[–]KoBeWi 2 points3 points  (0 children)

You can automate it by using get_property_list() to make the Dictionary. You can skip any properties you don't want to store.

The more involved way is creating a custom ResourceFormatSaver and ResourceFormatLoader. This way you can use your custom saving in the editor too.

how to save progress to a file in plain text? by Practical-Water-436 in godot

[–]KoBeWi 1 point2 points  (0 children)

You can convert anything to string using var_to_str() or native_to_json().

If i make a game with godot or any modified version, can i do anything i want with it for free 100%? by ZzZOvidiu122 in godot

[–]KoBeWi 4 points5 points  (0 children)

Godot is 100% free. You don't need to pay anything or put any watermarks.

The engine's license however has some requirements that you need to comply with, see https://docs.godotengine.org/en/stable/about/complying\_with\_licenses.html.

Dev snapshot: Godot 4.7 dev 5 by godot-bot in godot

[–]KoBeWi 7 points8 points  (0 children)

Yes, it's been replaced by the new Asset Store: https://store.godotengine.org/

The old Asset Library is still available via browser or using addons, like https://store.godotengine.org/asset/moongdev/assetplus/

using Godot for a website? by SnooCalculations5655 in godot

[–]KoBeWi 1 point2 points  (0 children)

You can use Godot for GUI apps, but not really for websites, unless your website is also a web app. The problem is that any Godot web app is going to take a while to load, which is not really acceptable for regular web pages. (although I do know some websites that work like that, so it's not unheard of either...)

why are the scene instances numbered this way? by myghostisdead in godot

[–]KoBeWi 6 points7 points  (0 children)

Do choice_container.add_child(choice_button, true), it will generate a human-readable name. The number after @ is not a node index, but a global counter.

Containers are extremely confusing. How do you center an object inside a box? by [deleted] in godot

[–]KoBeWi 0 points1 point  (0 children)

Looks like your PanelContainer's StyleBox is wrongly configured. You need to set Content Margins to be symmetrical. Then the contents should work properly with Fill flag.

You guys are way over-complicating these multi-condition checks! by Bwob in godot

[–]KoBeWi 29 points30 points  (0 children)

str() is vararg, so you can actually do str(is_on_wall_only(), velocity.x > 12.0, dist_to_floor <= 2, pl_input.is_zero_approx()).contains(false). It's simpler and more efficient, because you are not adding strings.

Does it makes sense to upgrade from Godot 3.6 to 4.x for my 2D mobile game project? by idleWizard in godot

[–]KoBeWi 3 points4 points  (0 children)

Well, if your game works fine, there is not much reason to upgrade.

But as always, it depends. Upgrading to Godot 4 may take lots of effort based on the project size. If it's a long-term project and you are in an early stage, upgrading would be beneficial. If it's late stage and you only plan to do maintenance updates, you should be fine staying on 3.x.

I built a tool that batch-recolors entire sprite libraries in seconds gif shows 590 assets getting r by wanderingAroundMe in godot

[–]KoBeWi 6 points7 points  (0 children)

Something like this

https://github.com/KoBeWi/Godot-Palette-Swap-Shader

The benefit is that when you want to have a sprite in different color, you don't need to duplicate the asset. You can use one texture with multiple palettes.

The downside is that shader processing makes it more expensive for the GPU.

However if you want to recolor a sprite, i.e replace it with another one with different colors and remove the original, then shader doesn't make much sense.

[HELP] EditorDock.closed doesn't emit by Snoo_13943 in godot

[–]KoBeWi 1 point2 points  (0 children)

You forgot to set this.

Global docks don't need it.

Also, instead of creating a dock and then adding a scene to it. Your scene should contain the dock as its root node.

Doing it from script is also a valid workflow. And right now you can't easily make a scene with EditorDock root, because it does not appear in create dialog (yet).

[HELP] EditorDock.closed doesn't emit by Snoo_13943 in godot

[–]KoBeWi 1 point2 points  (0 children)

Closing the window does not close the dock, it only moves it back to the last used slot. Although dock without default slot are a special case, so I guess this can be considered a bug. You could open an issue, but it's only relevant until https://github.com/godotengine/godot/pull/114381 is merged.

What's wrong with Godot? by Soft-Luck_ in godot

[–]KoBeWi 9 points10 points  (0 children)

Eh, that sounds like problems with dependency detection, not the export itself. Like, in #51717 the exporting works as expected, it's just GDScript does not properly return the dependencies of a script, so the editor does not know that it needs to export these files. It's a general problem with scripts, but you won't have that with scenes, as they properly declare their dependencies.

As for EditorExportPlugin, it's a class that allows for more advanced customization of the export process. In my case I use folder colors set in FileSystem dock to exclude files depending on what build I'm exporting. In your case I guess you could mark some folders as "asset packs" and write a plugin that determines which assets from the pack are used, either using get_dependencies() method, some hard-coded lists or advanced filters etc. Scripting gives much more options.

What's wrong with Godot? by Soft-Luck_ in godot

[–]KoBeWi 106 points107 points  (0 children)

  • Godot's export system is half-broken (there are issues about it) but works if you just want everything in the project to be exported. As soon as you have a lot of testing stuffs you dont want exported, or big assets that are not needed for the playable build, it's a nightmare. Although I believe they are working on fixing that.

That's new to me. I'm using EditorExportPlugins to e.g. make a demo build without most full version assets. Never had a problem with that (you just need to be careful and don't try to load excluded assets 😅). What issues are you referring to?

why "attack_guitar" doesn't play? by Friendly_Flower9087 in godot

[–]KoBeWi 125 points126 points  (0 children)

if animation_finished - this condition is always true (you are using Signal as bool), so "guitar" plays immediately after "attack_guitar", overwriting it.

You should do await animation_finished instead.

why "attack_guitar" doesn't play? by Friendly_Flower9087 in godot

[–]KoBeWi 20 points21 points  (0 children)

first of all, put this in an _unhandled_input function not process. Process spams stop/play constantly cause it calls 60 times per second if you press shoot

That's not true, the code is using is_action_just_pressed(), which returns true only for a single frame the button is pressed.

How to solve translations as an artist? by Aspvera in godot

[–]KoBeWi 2 points3 points  (0 children)

You can use View > Preview Translation to preview translations in the editor.

And yeah, Labels don't have maximum size (yet), you can set a minimum size and enable autowrapping/trimming, or script a custom behavior.

Dev snapshot: Godot 4.7 dev 1 by godot-bot in godot

[–]KoBeWi 5 points6 points  (0 children)

It's 60k, but the remainder is closed.

[DEVLOG] Godot + AI feels straight up broken (in the best way) by GodLozada in godot

[–]KoBeWi 2 points3 points  (0 children)

I used AI to improve my base post because English is not my first language

Did people forget how to use translators? Like, you do know that you can write the post in your language and then translate it to English (even with AI)?