“null function or function signature mismatch”错误(HTML导出)和Mac导出崩溃

huangapple go评论62阅读模式
英文:

Godot "null function or function signature mismatch" error (HTML export) and Mac export crash

问题

"Solved a 'null function or function signature mismatch' error (HTML export) and Mac export crash by making a new Godot project and copy/pasting the files into it"

Leaving this here in case it helps anyone encountering the same issue!


"The issue + unsuccessful attempts to fix it:"

My latest game update's HTML export and Mac export no longer worked. Uploading on itch.io resulted in a black screen with 'null function or function signature mismatch' error. Mac export crashed upon launch and I couldn't understand anything from the error message.

The game would run fine when I play the project in the Godot editor, but doesn't work well otherwise. For example, I have a script that changes a tilemap's sprite sheet. I use this exact same script in other projects, and in previous versions of this project, and it worked fine. It would work ok when playing the project from the Godot editor but didn't work when I used the 'run in local browser' button from the editor, and didn't work in exports either.

Commenting out portions of code and trying to re-export didn't work (tried multiple times, commenting out more and more sections of code each time).

Of course, I also tried restarting both Godot and my computer a couple times.


I'm using Godot 3.5.1 on Mac OS 12.6.

英文:

Solved a "null function or function signature mismatch" error (HTML export) and Mac export crash by making a new Godot project and copy/pasting the files into it

Leaving this here in case it helps anyone encountering the same issue!


The issue + unsuccessful attempts to fix it:

My latest game update's HTML export and Mac export no longer worked. Uploading on itch.io resulted in a black screen with "null function or function signature mismatch" error. Mac export crashed upon launch and I couldn't understand anything from the error message.

The game would run fine when I play the project in the Godot editor, but doesn't work well otherwise. For example, I have a script that changes a tilemap's sprite sheet. I use this exact same script in other projects, and in previous versions of this project, and it worked fine. It would work ok when playing the project from the Godot editor but didn't work when I used the "run in local browser" button from the editor, and didn't work in exports either.

Commenting out portions of code and trying to re-export didn't work (tried multiple times, commenting out more and more sections of code each time).

Of course, I also tried restarting both Godot and my computer a couple times.


I'm using Godot 3.5.1 on Mac OS 12.6.

答案1

得分: 0

实际有效的操作:

我创建了一个新的Godot项目,然后将我的游戏文件复制到新项目的文件夹中。然后导出就正常工作了!我没有改变任何代码。当我复制文件时,我只复制了场景、脚本和资产。没有复制“.import”文件,没有复制“project.godot”文件(虽然我只是将其中一些内容复制/粘贴到我的新“project.godot”文件中),也没有复制“export_presets.cfg”文件。

我猜想是我的项目中的导入或导出出了问题?可能是当我使用计算机文件系统删除了项目文件夹中的一些文件时发生的?而不是在Godot编辑器中操作。愚蠢的错误,我知道!我刚刚不小心将我的游戏导出到了项目文件夹中,然后我以为只是删除HTML导出文件以及它们的.import文件会是安全的。我不能百分之百确定这是否真正导致了问题,但无论如何,我不打算再这样做了!

英文:

What actually worked:

I created a new Godot project and then copied my game's files into the new project's folder. And then exports just worked fine again! I didn't change any code. When I copied the files over I only copied the scenes, scripts, and assets. Not the ".import" files, not the "project.godot" file (although I did just copy/paste some of its contents into my new "project.godot" file), and not the "export_presets.cfg" file.

My guess is that something messed up the import or export in my project? Probably when I deleted some files in my project folder using my computer's file system, instead of doing it inside the Godot editor. Stupid mistake, I know! I had just accidentally exported my game into my project folder and I thought it would be safe to just delete the HTML export files along with their .import files. I'm not 100% sure if that's what actually caused the issue, but either way I'm just not gonna do that again!

huangapple
  • 本文由 发表于 2023年5月22日 19:21:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76305647.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定