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

Proposal to add C++ code editor in Engine as Addon #75

Open
Ughuuu opened this issue Oct 19, 2024 · 3 comments · May be fixed by #128
Open

Proposal to add C++ code editor in Engine as Addon #75

Ughuuu opened this issue Oct 19, 2024 · 3 comments · May be fixed by #128
Assignees
Labels
enhancement New feature or request

Comments

@Ughuuu
Copy link

Ughuuu commented Oct 19, 2024

The idea is to keep this as easy as possible. The workflow would be similar to this: https://libriscv.no/docs/godot/rustprogram

Rust Usage Workflow:
When creating a Script you have option to create Rust script file:
image

  • Create file (just normal C++ file)
  • Edit c++ files in the editor
image
  • Compile them

Since this would be generic, it would probably support GDExtension. So you would how to be able to write c++ code and build it, either when using regular CMake projects, SConstruct projects (when doing GDExtension addon), or something else.

Autocomplete

For this the code needs to be processed to offer autocomplete options

Build

For this there can be a build option, similar to how C# has. Also, if not, when Saving files and/or when running project, build the code to a GDExtension or DLL (custom lib).

Compiler

As for building, we could support either setting compiler path and using that, or using local Docker and use that (send files to the Docker and get the binary output and save it).

@Ughuuu Ughuuu changed the title Proposal to add C++ code editor in Godot Proposal to add C++ code editor in Engine as Addon Oct 19, 2024
@Starkium Starkium added the enhancement New feature or request label Oct 19, 2024
@drcucaracha
Copy link

Hi, maybe this is off topic, but wouldn't it be easier to write everything in gdscript and before creating the executable use something like the plugin (https://github.com/Lcbx/GdScript2All) that translates the code and creates the executable with the selected code?

@Ughuuu
Copy link
Author

Ughuuu commented Oct 19, 2024

Interesting, will read that and see how it is useful and where it could fall into all this.
Edit: Seems like its not complete and doesn't support all features, and a lot of parts in code translated have parts saying it needs manual update. So it's not there yet.

From README:
generated code might need corrections

@jss2a98aj jss2a98aj linked a pull request Nov 11, 2024 that will close this issue
@jss2a98aj jss2a98aj moved this from Ready to In progress in Blazium Engine Roadmap Dec 15, 2024
@jss2a98aj jss2a98aj moved this from In progress to Blocked in Blazium Engine Roadmap Dec 15, 2024
@jss2a98aj jss2a98aj moved this from Blocked to In progress in Blazium Engine Roadmap Dec 15, 2024
@Ughuuu
Copy link
Author

Ughuuu commented Dec 15, 2024

Yeah, this needs the Godot 4.4 to work (with godot-sandbox module)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

3 participants