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

C# GD.Randf() breaks HTML build #44923

Closed
VoidGoat opened this issue Jan 4, 2021 · 1 comment
Closed

C# GD.Randf() breaks HTML build #44923

VoidGoat opened this issue Jan 4, 2021 · 1 comment

Comments

@VoidGoat
Copy link

VoidGoat commented Jan 4, 2021

Godot version:

v3.2.2.stable.mono

OS/device including version:

macOS 10.15.4 exporting to HTML

Issue description:

Using GD.Randf in a C# script makes HTML build freeze on launch. Removing the script or the GD.Randf call fixes the problem.

Steps to reproduce:
Create a scene and add a script to a node with a script that calls GD.Randf() in the _Ready() function. Something like
GD.Print(GD.Randf())
Then export the project to HTML. When the HTML project is run from a web server it starts to load but freezes.

Minimal reproduction project:

RandfMinReproduction.zip

@Calinou
Copy link
Member

Calinou commented Jan 5, 2021

Duplicate of #36858 (same cause), fixed by #44105. You can test this by upgrading to 3.2.4beta4 (make a backup of your project first!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants