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

Wallpaper Engine #28

Open
Shelkey opened this issue Feb 10, 2017 · 12 comments
Open

Wallpaper Engine #28

Shelkey opened this issue Feb 10, 2017 · 12 comments

Comments

@Shelkey
Copy link

Shelkey commented Feb 10, 2017

Hiya,

I'm trying to get your version of 0x40 hues to work with Wallpaper Engine: http://steamcommunity.com/app/431960

It has a feature that lets you set a webpage to your desktop. The problem is that it errors when trying to fetch the respacks with error 0. I tried calling the page from another html file so that I could invoke query strings, but ran into the same issue. What does seem to work is adding respacks through the built in options menu, as long as you call none at the start.

Is there any easy way to call the function that imports local zips from the option menu? If so, would I be able to just call that function on load to fetch after the page is initialized automatically?

Thanks,
James

@mon
Copy link
Owner

mon commented Feb 10, 2017

Can I get a screenshot of the exact error? I have a hunch about the way they're implementing the web view, if it's correct then it will be very difficult to make it work.

@Shelkey
Copy link
Author

Shelkey commented Feb 10, 2017

capture

@Shelkey
Copy link
Author

Shelkey commented Feb 10, 2017

I tried calling it from the absolute path too, but ran into the same issue.

@mon
Copy link
Owner

mon commented Feb 10, 2017

I'm reading the communities and it says when you create the wallpaper package you need to select ALL files required, definitely grabbing the respacks folder as well as DefaultsHQ.zip ?

@Shelkey
Copy link
Author

Shelkey commented Feb 10, 2017

I was just pointing at the index.html file before. I figured it could see the other files since there were no other errors and my added css was working.

I made a new project this time instead of just pointing at a file.
capture

When I create the project, it doesn't keep the respacks directory imported:
capture3

I tried including the repacks in the root folder and the application saw them, but still gave the same error when I called them. After testing, I found out that if I include a blank html file in the respacks directory, it will import the respack zips. Still gives the same error though.
capture4

Thanks for helping me with this!
James

@mon
Copy link
Owner

mon commented Feb 10, 2017

To me it looks like it's still having issues actually finding the files, and the fact they were silently excluded when there was no html file is dodgy.

If you'd like, you can try to do a dirty hack... Change the extension from .zip to .png, and edit index.html to reference the respacks by that new extension. Try not to accidentally open the png, as that obviously won't work ;) Perhaps the "accepted" extension could convince it to bundle the files properly.

@Shelkey
Copy link
Author

Shelkey commented Feb 10, 2017

Yeah, I found it weird that it silently excluded the whole directory when it only had .zip files too.

I tried renaming DefaultsHQ.zip to a png and it worked in Firefox, but not Wallpaper Engine :/

capture

@mon
Copy link
Owner

mon commented Feb 11, 2017

It could be a CORS issue - I know that Chrome can't just open the HTML, you need to be running a web server for it to pass origin checks when loading the zips.

Is there any way to get a console? I'd like to see if there's anything showing up there that I'm not displaying.

You may need to move this to the dev of Wallpaper Engine - he knows more about his system than me ;)

@mon
Copy link
Owner

mon commented Nov 30, 2017

Long time, I know... Did you manage to work this out?

@Shelkey
Copy link
Author

Shelkey commented Nov 30, 2017

Hi mon,

Sorry for not following up, I didn't manage to fix the problem.

I only occasionally 0x40 hues as a wallpaper, so the work around by loading character and audio packs through the settings is my go to. Auto running would be nice still though if you managed to figure it out.

Thanks for your help before!

James

@mon
Copy link
Owner

mon commented Dec 2, 2017

No worries, I'll keep the issue open if anyone ever works it out 👍

It could potentially be fixed by embedding the respack as a base64 string, but it would be pretty filthy.

@scillidan
Copy link

I don't know how to describe the principle, but you need to run serve in the folder.
In folder of 0x40-web, npm i -g serve, then serve ., then open address that should be localhost:xxxx. The index.html should start to work.
Or use miniserve or dufs.

Thanks mon 🍻, he solved the thorny problem of CROS. Then, all you have to do is click Settings, click Resources and
download the remote respacks.

Finally, I secretly 👻 uploaded 0x40-web to Wallpaper Engine. Here is https://steamcommunity.com/sharedfiles/filedetails/?id=2888591333

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

No branches or pull requests

3 participants