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

UWP export can't find my script #19320

Open
BastiaanOlij opened this issue Jun 2, 2018 · 7 comments
Open

UWP export can't find my script #19320

BastiaanOlij opened this issue Jun 2, 2018 · 7 comments

Comments

@BastiaanOlij
Copy link
Contributor

Godot version:
Master as of 2/06/2018, UWP template updated with fresh build and using matching editor build.

OS/device including version:
Universal Windows Platform running on Windows 10

Issue description:
Exporting to UWP gives error:
Parse Error: [ext_resource] referenced nonexistent resource at: res://Main.gd

The project works fine when running on Windows. Extracting the UWP package I can see that main.gd has been changed to main.gdc (I guess parsed GDScript in binary form?) and there is a main.gd.remap file which I'm guessing the resource loader should be picking up but isn't

Steps to reproduce:
Create a new Godot project. Add a root node with a script attached to it.
Export to UWP
Install and run.

@BastiaanOlij
Copy link
Contributor Author

@vnen any ideas?

@BastiaanOlij
Copy link
Contributor Author

Ok, here is the full log:

https://snag.gy/h17IRg.jpg

And as @vnen mentioned on IRC, the real error is likely the byte code parse error. It is finding Main.gdc, but it can't load it. The error about not finding Main.gd is a bit misleading then :)

@bojidar-bg
Copy link
Contributor

bojidar-bg commented Jun 3, 2018

@BastiaanOlij Can you confirm that it works when exported to other platforms?

@kubecz3k kubecz3k added this to the 3.1 milestone Jun 3, 2018
@BastiaanOlij
Copy link
Contributor Author

BastiaanOlij commented Jun 4, 2018

@bojidar-bg just did an export with desktop Windows and that works fine. I'm just doing an extra tools=no build (forgot that switch) to see if that makes a difference. Might be something that isn't included when tools are off, forgot that was automatically on.

edit nah same result, so unless the package has a different content, looks like this is an issue specific on UWP

@KoBeWi
Copy link
Member

KoBeWi commented Dec 10, 2020

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

@Xrayez
Copy link
Contributor

Xrayez commented Mar 12, 2021

Unable to test because UWP export is broken: #30558, not sure how to properly export the project (I receive signing issues):

SignTool Error: SignedCode::Sign returned error: 0x800700C1

And there seems to be no way to test the app otherwise.

@DrewV3
Copy link

DrewV3 commented Mar 29, 2021

I have been able to reproduce this on several test projects on Godot 3.2.3. I got it running by unpacking the appx with 7-zip and sending the loose files to the xbox. I also tested by repacking the appx with makeappx and signing it manually. In both cases the script on the root node was missing.

@akien-mga akien-mga modified the milestones: 4.0, 3.x Feb 22, 2023
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

8 participants