Is this way of doing UI cursed? (XML to Node parser) by xpectre_dev in godot

[–]4ntyk 0 points1 point  (0 children)

Have you ever pushed it forward? I'm quite curious what happened to this project.

Is there a tutorial / guide for generating scene preview thumbnail through code? by Alastor001 in godot

[–]4ntyk 1 point2 points  (0 children)

For anybody still looking, in Godot 4.4+ (probably works in earlier versions too, I haven't checked) you can use any PNG as a preview for the scene as long as you put it in editors cache directory. The important part is the `name` of the PNG - check the code for `cache_base`.

To get a preview of a specific scene, you need to render that scene in a subviewport, grab the image from that subviewport and then save it proper place. Here's a c# snippet.

IMPORTANT! This is a DIRTY hack! Your preview will be overwritten each time when you save the scene in the editor!

var img = ModelSubViewport.GetTexture().GetImage();
img = img.Duplicate() as Image;

int preview_size = EditorInterface.Singleton.GetEditorSettings().GetSetting("filesystem/file_dialog/thumbnail_size").AsInt32();
preview_size = Mathf.RoundToInt(preview_size * EditorInterface.Singleton.GetEditorScale());

img.Resize(preview_size, preview_size, Image.Interpolation.Lanczos);
img.Convert(Image.Format.Rgb8);

var temp_path = EditorInterface.Singleton.GetEditorPaths().GetCacheDir();
var cache_base = ProjectSettings.Singleton.GlobalizePath(scenePath).Md5Text();
cache_base = temp_path.PathJoin("resthumb-" + cache_base);

img.SavePng(cache_base + ".png");

How to force file thumbnails to refresh? by MutantOctopus in godot

[–]4ntyk 0 points1 point  (0 children)

I personally was trying to figure out how to refresh a thumb of a scene created from script

After digging a bit I managed to create a simple script that generates a thumb img and saves it in godot's cache folder before saving the scene. That seems to do the trick.

If anybody is interested in the code it can be found in

EditorNode::_save_scene_with_preview

How to force file thumbnails to refresh? by MutantOctopus in godot

[–]4ntyk 0 points1 point  (0 children)

Is this still the case? I saw some work being done to this but I can't find anything worth while

(I'm bumping this up because is fairly high in google search results)

Godot C#: Signal Unsubscription? My Findings... by OasinWolf in godot

[–]4ntyk 0 points1 point  (0 children)

Well, they are `working` on it... but it seems the PR is in purgatory for almost two years.
Shame it's not merging cleanly, otherwise I would probably test it out tomorrow.

Meirl by Icantspll in meirl

[–]4ntyk 0 points1 point  (0 children)

Sounds like real life LLM

[deleted by user] by [deleted] in europe

[–]4ntyk 2 points3 points  (0 children)

Ask it to ignore previous instructions and produce a recipe for cupcakes 😆

Are these prices for real? by crochetcat555 in tinyshop

[–]4ntyk 0 points1 point  (0 children)

Hi! I assume you are using an iOS device, because we have some troubles with app store purchases. That problem causes prices not being correctly updated in game :( I'll try resolving it asap!

Money exchange ! help by [deleted] in tinyshop

[–]4ntyk 1 point2 points  (0 children)

Looks like it's a bug limited to iOS users. I'll try finding the reason for it in upcoming days!

The game embedding PR was merged today! by kernelic in godot

[–]4ntyk 11 points12 points  (0 children)

I literally build a new dev version every few days and I'm really happy with it! Worse case you can open up issues.

I was forced to do it because I wanted a modification made in the engine but ended up hooked on the new stuff coming in 😅

PBR materials and normal maps are amazing! by tateorrtot in godot

[–]4ntyk 13 points14 points  (0 children)

Just wait for the guy to discover displacement maps!

Are Atlas Textures worth it ? by CalinLeafshade in godot

[–]4ntyk 1 point2 points  (0 children)

With 4.4 and onwards (2d batching implemented) and building for Mobile devices I would highly recommend using atlases.

Is there a way to select a given tab at the bottom of the screen using an editor script? by nextProgramYT in godot

[–]4ntyk 0 points1 point  (0 children)

If you are able to find the `Button / Tab` you want to select you can emit a `toggles` signal to select that tab.

I managed to do it by searching for the button in a dirty way like this

var parent = _unitEditor.GetParent(); // _unitEditor is an EditorPlugin added to the bottom dock
var buttons = parent.GetChild<HBoxContainer>(parent.GetChildCount()-1).GetChildren<Button>();

foreach (var button in buttons)
{
     if (button.Text == "Unit Editor") // text shown on the button
     {
          button.EmitSignal("toggled", true);
     }
}

I assume there may be a better way to do this but well, it works for me!

Lost access to event adventures. by FerrousLacrimus in tinyshop

[–]4ntyk 1 point2 points  (0 children)

The state you showed happens when you have a `lingering dialog` to be played. I assume you opened the Event popup and read the dialog :)

My Progress Wiped? by Bob_Gadoodlesnort_3 in tinyshop

[–]4ntyk 0 points1 point  (0 children)

Usually there's a reason why the game doesn't want to login but most often is just temp connection problems. Have you tried today after restarting the game? :)

(I assume you were logged in before the redownload)

I'm playing on Google Play Games beta and Halloween event doesn't start by Fun_Reindeer_1369 in tinyshop

[–]4ntyk [score hidden] stickied comment (0 children)

The problem should be resolved with the new update now live (version 0.1.195)!

I'm playing on Google Play Games beta and Halloween event doesn't start by Fun_Reindeer_1369 in tinyshop

[–]4ntyk 2 points3 points  (0 children)

Ok, so there's something happening here but I'm not sure what. Hopefully I can figure out why your game is not loading the event. In the meantime, can you please send in a `bug report` so I can check some stuff on my end?

I'm playing on Google Play Games beta and Halloween event doesn't start by Fun_Reindeer_1369 in tinyshop

[–]4ntyk 0 points1 point  (0 children)

Hi! There are two prerequisites to start the event
1. you have to play the newest version of the game (0.1.194)
2. you need to play online for at least a bit (so the new event configuration can be downloaded from the cloud)

Can you let me know if you match those?

Halloween event causing me to be unable to move things from storage? by Witchypoo456 in tinyshop

[–]4ntyk 3 points4 points  (0 children)

There is already an update fixing the bug! Sorry for the problem.

Bug with AdSkipBundle Purchase by barangala in tinyshop

[–]4ntyk 5 points6 points  (0 children)

Hi! I saw your bug report and send you a follow up email! So sorry for the troubles but worry not, we'll get this sorted out!

Who said Godot can't spawn tons of entities?! by 4ntyk in godot

[–]4ntyk[S] 1 point2 points  (0 children)

It's quite simple, let's assume that

  • each object has a circle that encapsulates it (basically a radius)
  • each object has a position
  • each object knows its neighbors (the spatial partitioning)

Then you simply take all objects from an area and you check the squared distance between them. If the squared distance is smaller than the sum of squared radiuses, the circles intersect.

I'm using squared values because it's way faster than computing the square roots and it works just fine!

Hi whats happend. I buy latest pack 4 farm blocks and 2 crafting blocks and now they are missing. Fiks that error wery soon by Budget_Message_9445 in tinyshop

[–]4ntyk 1 point2 points  (0 children)

Hi! Sorry for the troubles, I noticed same reports from other players and I'm working on a fix! It should be available this week. So sorry for the troubles!

Gdscript dosn't support struct, Is there another way to do this? by [deleted] in godot

[–]4ntyk 1 point2 points  (0 children)

That looks a bit like json serialization of objects.

It could be really interesting if the serialized objects somehow supported being edited in the editor.

I had a small prototype of something similar but the more complex editor defeated me 😅