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

Godot 4.2 / .net6 port #108

Open
wants to merge 3 commits into
base: godot4
Choose a base branch
from
Open

Godot 4.2 / .net6 port #108

wants to merge 3 commits into from

Conversation

Treer
Copy link

@Treer Treer commented Jan 31, 2023

also addresses #104

This PR might age like milk and need to be dropped as refinements continue in Godot 4, but today it works 😄

Godot 4.0-stable only took minor tweaks from the initial Godot 4 Beta-16 pull request

@quentincaffeino
Copy link
Owner

Thank you, definitely better than nothing

/// This is a hack until we can fix the code generated by GodotPluginsInitializerGenerator to specify it means System.Console not this Console
/// https://github.com/godotengine/godot/pull/72434
/// </summary>
public static TextWriter Error => System.Console.Error;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn that was quick, the Godot devs have fixed it already!

@Treer Treer changed the title Godot 4 Beta-16 / .net6 port Godot 4.0 / .net6 port Mar 2, 2023
FuncRefs are replaced by Callables, and there's a change to array syntax

The demo projects will still need attention, but the console works in Godot 4.
Renames call() to invoke_call() to avoid "The function signature doesn't match the parent" errors.

Since gdscript doesn't support function overloading, classes can no longer have a method named "call" because the Object class has one.
Treer added a commit to Treer/WorldWanderer that referenced this pull request Jan 21, 2024
Pulls 4.2 fixes for quentincaffeino/godot-console from quentincaffeino/godot-console#108
@Treer Treer changed the title Godot 4.0 / .net6 port Godot 4.2 / .net6 port Jan 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants