Giter Site home page Giter Site logo

how use ? about godot-nim HOT 5 CLOSED

pragmagic avatar pragmagic commented on August 15, 2024
how use ?

from godot-nim.

Comments (5)

Skaruts avatar Skaruts commented on August 15, 2024 1

@zetashift Well... the problem was that my project's folder also contained a space... :) It's all working now. Compiled nicely and the stub is running.

Thank you for testing it, or otherwise I would remain thinking the problem wasn't on my end and wouldn't have double checked.

from godot-nim.

zetashift avatar zetashift commented on August 15, 2024

Are you using https://github.com/pragmagic/godot-nim-stub ? It shows how to attach a NativeScript to a Node and how to use godot-nim.

from godot-nim.

Skaruts avatar Skaruts commented on August 15, 2024

@zetashift I tried building godot-nim-stub with nake, but it tells me "Invalid GODOT_BIN path: C:\Users\Skaruts\Google Drive\Programming\Godot 3" a million times until nake crashes.

I have no idea what can be causing that. I'm thinking about the fact the path contains spaces, and also that I have several versions of godot in the folder, where each executable is named differently, such as Godot_v3.2-rc1_win64.exe.

The problem was indeed that the path can't take spaces, and I overlooked the requirement that it must point to the executable, not just the folder. So nake is working.

However, it just keeps restarting godot, and saying Failed to generate api.json. I'm doing this with the most recent version of godot (3.2_rc1), which I'm not sure it's supported.

from godot-nim.

zetashift avatar zetashift commented on August 15, 2024

@Skaruts, yeah I was about to point out that it needs the executable path, glad nake is working now. Might be worth to check open up an issue either on nake or nim repo (if it uses the stdlib to work with paths) to make sure spaces are allowed.

As for your error Failed to generate api.json, I tried to reproduce but I'm not on Windows. With a clean install of godot / nake and using Godot RC1 I get a succesfull compile using latest Nim devel.
This is however on Linux x64. I'll have Windows access next week then I could check for you, but it should work.
Any more info about the error?

from godot-nim.

endragor avatar endragor commented on August 15, 2024

Closing as a duplicate of #17.

from godot-nim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.