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

HTML5 library #4

Closed
GammaGames opened this issue Aug 9, 2019 · 27 comments
Closed

HTML5 library #4

GammaGames opened this issue Aug 9, 2019 · 27 comments
Labels
enhancement New feature or request

Comments

@GammaGames
Copy link

Would it be possible to update this asset for HTML5 exports?

@GammaGames
Copy link
Author

Oh, is this a gdnative library? If so it looks like web exports don't support gdnative godotengine/godot/issues/12243

@Beliar83
Copy link
Owner

Beliar83 commented Aug 9, 2019

It is gdnative, yes, which means according to that issue that it seems not to be possible to update for html5.

@GammaGames
Copy link
Author

Thank you, you can close this issue if you want and I've subscribed to that thread so I can get updates there.

@Beliar83 Beliar83 added the enhancement New feature or request label Aug 9, 2019
@GammaGames
Copy link
Author

Hmm, looks like the 3.2.4 beta might support this feature: godotengine/godot#44076

@Beliar83
Copy link
Owner

I can take a look at that when I have the time.

@otDan
Copy link

otDan commented Feb 21, 2022

so did you ever take a look?

@Beliar83
Copy link
Owner

Sorry, I think I was waiting for it being in an official release and then forget. I will definitely take a look this week or weekend.

@otDan
Copy link

otDan commented Feb 22, 2022

that's good to hear, would be great to have that working

@Beliar83
Copy link
Owner

Beliar83 commented Feb 26, 2022

This could prove to be a bit more difficult. Godot is being built with exceptions disabled for javascript, by default.
I could find a way to output yaml without using yaml-cpp methods that use exceptions, but for parsing this does not seem to be possible.

I will try to find a way, but it will probably take a bit longer than I hoped.

@otDan
Copy link

otDan commented Feb 26, 2022

hmm I see, I might need to write some hacky parser then for my project if this will take long as it's basically the only thing I am missing. but thanks for looking into this, will be waiting for the release!

@otDan
Copy link

otDan commented Mar 9, 2022

would there be any ETA on this? if you are in general looking into it.

@Beliar83
Copy link
Owner

Beliar83 commented Mar 9, 2022

I can't say. I am looking into using a different library, which I can hopefully make to produce the same results, but I need to rewrite some things.

@Beliar83
Copy link
Owner

Small update, I found a library with customizable error handling and got the basics to work with that. The rest should not take too long, though it depends on how much time I can work on this.

The new library outputs tags a bit differently than the old one (that put tags in a "<>") though, but from what I see this is more like the standard anyway.

@otDan
Copy link

otDan commented Mar 18, 2022

cool update me whenever you get more progress and know an ETA thanks :)

@Beliar83
Copy link
Owner

Sorry, I forgot about the ETA, but I have finished the changes. The files in the asset library are pending approval at this moment, but you should be able to download directly from here, if you want to test it now.

@otDan
Copy link

otDan commented Mar 29, 2022

I will definitely check this out asap. Thanks!

@otDan
Copy link

otDan commented Mar 30, 2022

Hmm I seem to have an issue when exporting the html project still as it says the parser is null

@Beliar83
Copy link
Owner

@otDan Did you get it from the asset library or directly from here? The new version on the asset library apparently was not yet reviewed.
For reference, the version/tag should be 0.9.3

@otDan
Copy link

otDan commented Mar 30, 2022

@Beliaar yeah I got it directly from this repo, gonna try it out more when I have some time, but yeah it seems that the instance is null for some reason

@Beliar83
Copy link
Owner

Beliar83 commented Apr 1, 2022

@otDan Not quite sure what the problem could be. I tried with a new project and the files downloaded from here and it works. What exact message do you get?

@otDan
Copy link

otDan commented Apr 1, 2022

@otDan Not quite sure what the problem could be. I tried with a new project and the files downloaded from here and it works. What exact message do you get?

is there a way I can contact you directly for a simpler support? I can show you off what happens when I export it out, think that would be the fastest way to show what exactly breaks

@otDan
Copy link

otDan commented Apr 2, 2022

image
this is the error though if that's enough for you

@Beliar83
Copy link
Owner

Beliar83 commented Apr 2, 2022

@otDan Not quite sure what I have that would make that easier.

The problem is that you need to export with gdnative support. The message "does not have a library for the current platform." is the main hint.

However there are no HTML export templates for the mono version that have gdnative support, as far as I see.
If you don't need the mono version you should download the normal version of godot and make sure to set "Export Type" to "GDNative". Otherwise you could try to compile the export templates yourself, but I would recommend against trying, as I found that extremely difficult when it involves mono.

grafik

@otDan
Copy link

otDan commented Apr 2, 2022

thank you so much! yeah I did not even realize I was using the mono version, I have versions ranging from 3.0 to 4.0 and sometimes open up the wrong one. everything works fine now, I really appreciate your work on this!

@Beliar83
Copy link
Owner

Beliar83 commented Apr 3, 2022

Good to hear. I am closing this issue then.

@Beliar83 Beliar83 closed this as completed Apr 3, 2022
@Beliar83
Copy link
Owner

Beliar83 commented Apr 3, 2022

Ah, and the version on the asset library has also been approved.

@GammaGames
Copy link
Author

GammaGames commented Apr 4, 2022

Thank you for all your work on this! Gonna play with it during my lunch break, hopefully I can get an export up for a tool I made.

Edit: Worked great! I've got it hosted on gh pages, pretty handy little feature: https://gammagames.github.io/procedural-generation-ruleset/play/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants