-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Custom class (class_name
) not working with 3.2.3 RC3, but it works in RC2
#40991
Comments
If you can compile from source, can you try bisecting the regression, please? It should only require building an HTML5 export template a few times, since the commit range between 3.2.3rc2 and 3.2.3rc3 is quite narrow. |
Did you forget to add: |
@Faless Do you have it working in an HTML5 build or just in the editor? It is only in the HTML5 build that it doesn't work for me. |
The html5 build, but I tried my branch, which might have been few commits
before rc3 (shouldn't be actually, but I didn't check). I'll try again with
the official build and double check later today.
…On Mon, Aug 3, 2020, 19:51 ChronoDK ***@***.***> wrote:
@Faless <https://github.com/Faless> Do you have it working in an HTML5
build or just in the editor? It is only in the HTML5 build that it doesn't
work for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40991 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM4C3TT7DWSEBBKWB4MMBDR632KZANCNFSM4PTH3IHA>
.
|
I can confirm the issue. Weird... I'll start bisecting. |
Offending commit seems to be: 4f9ca00
|
Probably caused by checking the file path, instead of the remapped path. ( |
That's cool! I would probably have spend all day trying that bisect stuff, cause compiling is slow for me :-) Let me know if there is anything I can do. |
If this is specific to HTML5, I'm curious why #41025 fixes it then? (I haven't tested it myself though). It wouldn't work on all other platforms then?.. |
This is probably not just an HTML5 thing. The same thing just happend to me on Android:
I didn't test this on rc1 or rc2, just rc3. This is not happening in 3.2.2.stable. |
I have a similar error on Android in 3.2.3rc3. The typechecker causes an error on my class, which is defined in a MyObject.gd with class_name MyClass. It works fine on Android in 3.2.3rc2. In my case, my class is used in an autoload scene, so it prevents the autoload from loading. Here is the logcat from the error:
|
Same issue with me #41060 (RC3 mono), unable to identify class file by name . |
I run into a similar issue, although I don't know if it is the same because it shows a different error message:
Executing in the editor is fine, but it crashes when I export the project and then execute it. However, if I copy the folder that contains the scripts with the classes on the same folder that contains the executable, it runs. |
Confirmed here on Mac and Windows export. Project exported fine on 3.2.2 |
class_name
) not working with 3.2.3 RC3, but it works in RC2
Godot version:
3.2.3 RC3
OS/device including version:
Windows 10
Issue description:
I found some weird difference between RC2 and RC3 that I can't figure out.
My HTML5 build crashes when a custom class is included, and complains "identifier "SafeNum" isn't a valid type (not a script or class), or couldn't be found on base "self"."
The class DOES work in RC2 (and everything before that), so this must be a new bug.
Steps to reproduce:
Just include my class file (that I pasted below), and use it like this:
var diamonds:SafeNum = SafeNum.new(1)
Minimal reproduction project:
Bugsquad edit (keywords for easier searching): named class
The text was updated successfully, but these errors were encountered: