[-] kureta@lemmy.ml 1 points 2 hours ago

The problem was a bit more than that but I solved it. I write packed resource into /tmp and read the file from there. Thanks.

6
submitted 12 hours ago by kureta@lemmy.ml to c/godot@lemmy.ml

I am writing a GDExtension for binding libpd, library version of PureData. I have added a property with appropriate getter and seterr.

  ADD_PROPERTY(
      PropertyInfo(Variant::STRING, "patch_path", PROPERTY_HINT_FILE, "*.pd"),
      "set_patch_path", "get_patch_path");

I do something like this to get the file path and load it to puredata

Ref<FileAccess> file = FileAccess::open(path, FileAccess::READ);
patch = pd.openPatch(
      file->get_path_absolute().utf8().get_data()->get_path_absolute().utf8().get_data(), "/");

I can select *.pd files from my resources directory, they load and work normally inside the editor. However, they do not work when I export the project.

The complete error message:

Godot Engine v4.3.stable.official.77dcf97d8 - 
Vulkan 1.3.296 - Forward+ - Using Device #0: Intel - Intel(R) Iris(R) Xe Graphics (RPL-U)

pd 0.55.2
bonk version 1.5
fiddle version 1.1 TEST4
pd~ version 0.54
pique 0.1 for PD version 23
PureDataGD constructor
ERROR: File does not exist: 
   at: file_exists (/home/kureta/Documents/repos/PureDataGD/src/puredatagd.cpp:60)
Trying to set path to: res://patches/test-2.pd

read (31 184) -> -1
//: Is a directory
Set patch path to: res://patches/test-2.pd
Setting DSP status to truehttps://godotengine.org

What am I doing wrong? Full code is here.

[-] kureta@lemmy.ml 38 points 2 months ago

is this the famous "invisible hand of the market"?

[-] kureta@lemmy.ml 74 points 3 months ago

But then I won't be able to race my black-smoke-belching rolling-coal truck with my manly man buddies :(

truck from hell

316
submitted 3 months ago by kureta@lemmy.ml to c/adhd@lemmy.dbzer0.com

and it is something I love and always dreamed of doing. I asked for 4 months and got it. started working 10 days before the deadline, and now I have 5 days left. wish me luck.

[-] kureta@lemmy.ml 34 points 3 months ago

and poor criminals

[-] kureta@lemmy.ml 41 points 4 months ago

I'm really surprised to hear that teaching C# to 7th graders is easer than teaching them python. Python was invented to teach. It looks like pseudo code. I have almost zero experience in teaching so I trust your experience. But can you elaborate a little? What makes teaching C# easier?

[-] kureta@lemmy.ml 43 points 5 months ago

Words of wisdom.

[-] kureta@lemmy.ml 41 points 7 months ago

But why? It is bad for babies OK, but what is the upside for Nestlé? Is it addiction?

[-] kureta@lemmy.ml 41 points 8 months ago

If you start seeing canaries everywhere in your coal mine, chances are you have a lethal gas leak. wait what?

[-] kureta@lemmy.ml 61 points 8 months ago

There are lots of ways computers are used for making art. Not just video-games. For example, projection mapping, algorithmic music composition, live coding, etc.

You can look into openFrameworks for examples of C++ in arts.

[-] kureta@lemmy.ml 69 points 9 months ago

Here where I live using AI detection tools is not allowed because they are not 100% correct, which means they might flag an innocent student.

[-] kureta@lemmy.ml 57 points 1 year ago

Security expert reveals surprising way to induce headaches

[-] kureta@lemmy.ml 53 points 1 year ago

and I say to them "eat shit and die"

view more: next ›

kureta

joined 2 years ago