-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
2.5D Demo with GDScript Error #1161
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
Comments
Update: In looking further into the code, I suspect that at least part of the problem may be due to the 'get_editor_viewport' was incorrect, and should have been 'get_editor_viewport2d', as this looks to be a Node2D. Changing that removed that error, however, two new errors came up: The second error runs non-stop with the project open, but not running. I am afraid my current level of GDScript knowledge is insufficient to troubleshoot this further. If you have any ideas or code changes you would like me to make, I would be happy to implement them. Thanks! |
I've been working on this for a bit (ran across this report while trying to solve it myself), and I think I have it mostly solved.
Aaaand that's as far as I've gotten for now. It's still throwing some errors, which might be related to the problems I mentioned that the beginning, but it's something. The gizmo doesn't work for moving objects and while it does appear when an object is selected, it's not necessarily anywhere near the selected object, although it does maintain the same relative position to said object when that object is moved. I'll take another look at it when I have the time, but don't let that stop anyone from solving this first? I'm not making any git push/pull requests unless I have the thing fully working, so this comment should be enough for now. |
Thanks for the work you have done troubleshooting this! You definitely got a lot further than I did. |
TL;DR: Download the version here on Github, the one from the Godot Asset Library is a year out of dateWell. I figured it out. And also, it turns out I've spent the last week chasing my tail. So it looks like both you and I grabbed the copy from the Asset Library, ran into these problems, and then dropped on over here to raise the issue, without noticing that the version of the project on Github is some eight months newer. When you first open the project, it throws an error, failing to load the plugin. However, once you've opened it once and the .godot folder is created, opening it at any future point (or going to We can probably close this issue, although it may be worth figuring out how to update/sync project changes with the Asset Library... |
Thanks so much for figuring that out! I didn't have a clue that there was a more up-to-date version on Github, I just assumed (wrongly) that whatever was posted on the Godot Asset Library was the most current version. I'll keep a closer eye on this as I test different projects that they post. |
Which demo project is affected:
2.5D Demo with GDScript
OS/device including version:
Kubuntu 24.04
Issue description:
I searched the issues here in the Godot Github, but could not find an existing bug report on this issue. Upon opening the 2.5D Demo with GDScript for the second time (to ensure all of the assets were properly imported), I got the error: res://addons/node25d/node25d_plugin.gd:13 - Invalid call. Nonexistent function 'get_editor_viewport' in base 'EditorInterface'
I opened the indicated script and found line 13 as indicated in the error, there were no errors indicated in the code. I understand that this demo was created in Godot 4.1, I am running Godot 4.3.stable. I am fairly new to Godot and GDScript, but I do have a background in other OOP languages: C# and VB.NET. Thank you for your time!
Screenshots of issue:
The text was updated successfully, but these errors were encountered: