Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this updated? #127

Open
MoogieOuttaMyDepth opened this issue Aug 22, 2024 · 5 comments
Open

Is this updated? #127

MoogieOuttaMyDepth opened this issue Aug 22, 2024 · 5 comments

Comments

@MoogieOuttaMyDepth
Copy link

I saw there was some discussion about making this work for Godot 4, but I can't find clear information about whether or not it does yet. I'm using 4.2 and it doesn't appear to be available in the Asset store.

Also, I'm not using Mono, does that mean I can't use this?

I really needed an Astar alternative that can weight connections between points. This is all I found, so it'll be a bummer if I can't use it. :/

@astrale-sharp
Copy link
Collaborator

Hey there :)
Gdext doesn't support optionnal parameter in gdscript yet so we're reluctant so officialy update and push to the asset store just yet.

I'm pretty sure there is a working C# version here: astrale-sharp#1

You're going to need to compile it yourself, do you have a rust toolchain installed? Do tell if you run into any issues

@greenguy77
Copy link

Hi, I'm looking at trying to compile and use this for Godot 4.3. While the branch you linked is supposed to work on godot 4.0 the instructions for compiling it aren't present. I'm not experienced with rust, and so it's difficult to figure out where the process should start. The instructions in that branch haven't been updated either, as they still refer to using GDnative, which to my knowledge stopped being updated and will not be receiving any Godot 4+ support.
If you have any time could you give an abbreviated version of the compilation process for the project, and the dependencies it relies on?

@astrale-sharp
Copy link
Collaborator

@greenguy77
using cargo build --release, do you run into compilation errors?
then i would suggest following latest godot-rust/gdext instructions as to how to setup the resulting binary (target/release/?.so) with godot

https://godot-rust.github.io/book/intro/hello-world.html#the-gdextension-file

@greenguy77
Copy link

I did run into a compilation error. I'm not sure, but I suspect it may be caused by my Godot version.

Compiling godot-ffi v0.2.2 (https://github.com/godot-rust/gdext.git?branch=master#6a5d19d5) error: failed to run custom build command forgodot-ffi v0.2.2 (https://github.com/godot-rust/gdext.git?branch=master#6a5d19d5)`

Caused by:
process didn't exit successfully: C:\Users\redacted\Documents\Dijkstra_map_for_Godot-1\target\release\build\godot-ffi-5c5a55c39c014e0a\build-script-build (exit code: 101)
--- stdout
Found GODOT4_BIN with path to executable: 'C:\Users\redacted\Desktop\gameDev\Godot_v4.3-stable_win64.exe'
cargo:rerun-if-env-changed=GODOT4_BIN
cargo:rerun-if-changed=C:\Users\redacted\Desktop\gameDev\Godot_v4.3-stable_win64.exe
[stdout] 4.3.stable.official.77dcf97d8
`

@astrale-sharp
Copy link
Collaborator

wow that's an awful error, i'll try to reproduce (i finally have my real computer back) give me a few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants