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.0 Update #8

Closed
wants to merge 9 commits into from
Closed

Godot 4.0 Update #8

wants to merge 9 commits into from

Conversation

allenwp
Copy link

@allenwp allenwp commented Feb 14, 2023

Hey there, thanks for the great mirror asset! This pull request updates the project to Godot 4.0. There is an outstanding issue that affects Godot 3.5 regarding the way the addon plugin is configured that I haven't fixed with this pull request.

@Norodix
Copy link
Owner

Norodix commented Feb 15, 2023

Hey!
Thanks for the PR! I will go through it and test it when I have some time.
I guess the weekend maybe :)

@allenwp
Copy link
Author

allenwp commented Feb 15, 2023

Great, thanks! There is also the following error that happens when instantiating a scene with a SubViewport and material that uses the texture from that SubViewport:

Mirror.gd:21 @ _enter_tree(): Condition "proxy.is_valid()" is true.
  <C++ Source>   scene/main/viewport.cpp:89 @ setup_local_to_scene()
  <Stack Trace>  Mirror.gd:21 @ _enter_tree()

There seems to be a lot of development work surrounding SubViewports in Godot 4.0, so I think this issue will be fixed in an upcoming 4.0 RC. I think the specific fix to this error can be found as a pull request to this issue. Because of this, I've just been ignoring this error for now.

@Norodix
Copy link
Owner

Norodix commented Mar 27, 2023

Hey!

Sorry for not getting back sooner. I started learning about the differences of the new engine and I'll soon get around to test and merge this PR.

Do you happen to know any recommendation on how to add different versions of the same plugin to the new asset lib? I see a lot of plugins creating a separate v4 branch but I don't know if that is for development or that is a real convention.

Thanks!

@allenwp
Copy link
Author

allenwp commented Mar 27, 2023

Hey, no worries. Full disclosure: this was my first time ever working with Godot and I have no other experience with plugins. My goal was just to get this plugin to be behaving the same on Godot 4.0 as it does using Godot 3.5, if you ignore the "proxy.is_valid()" is true issue that seems to be a known issue, as I mentioned.

So to answer your question: I have no idea, sorry!

@Norodix
Copy link
Owner

Norodix commented Apr 1, 2023

Applied some small fixes and pushed it to a new branch.
You can find it under https://github.com/Norodix/GodotMirror/tree/godot4

Thanks for the help! : )

@Norodix Norodix closed this Apr 1, 2023
@allenwp
Copy link
Author

allenwp commented Apr 1, 2023

Nice!

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