We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Puzzles not applying to published file

Home Forums Puzzles Puzzles not applying to published file

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #82918
    avi3
    Participant

    Hi! I’ve made a puzzle that works great in the editor.
    But when i open the html file or publish it. The puzzle stops working. No puzzle i add works?
    Is there something i need to so except save the puzzle?

    #82920

    Hi,
    Please check the browser console for possible issue printed here.

    Also, it maybe a browser cache, or offline mode activated for your app.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82924
    avi3
    Participant

    Hmm i seem to get a “WebSocket connection to ‘ws://localhost:5500/ws’ failed”

    #82926

    Very strange! Perhaps there is some browser plugin doing this?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82934
    bigmike814
    Customer

    if you’re publishing it and its trying to find something at a localhost its not going work. You have to set the URL of the site you’re publishing to as your directory location.

    #82946
    avi3
    Participant

    Hi!
    So the error was cause by my live server plugin. I removed that and get no errors in the console.
    But still, the logic from puzzles does not work.
    If i open the .html file after a saved puzzle no logic works. I cant change color of my object as i can in the puzzle editor.

    #82947

    That’s a very unusual situation! Please follow these steps to debug:

    1. Open visual_logic.js in your favorite text editor and check that it actually contains the logic you implemented with Puzzles.
    2. Check that this file is actually loaded in the Network tab of the browser console.
    3. If it does, open it in the browser and compare its content with the content retrieved at step 1.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82954
    avi3
    Participant

    Yeah i cant find the file in the network tab of the browser console. How do i fix this?

    #83143
    jelteh
    Participant

    Did you export with compression? I did that yesterday, and every change I made in Puzzles after that did not apply to my project.

    #83145

    Yeah i cant find the file in the network tab of the browser console. How do i fix this?

    You might check the main HTML/JS files of your application. Perhaps you accidentally edited them or replaced by something else. It appears that the only thing that can really help in your case is recreating the app from scratch.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #83147

    Did you export with compression? I did that yesterday, and every change I made in Puzzles after that did not apply to my project.

    Appears to be the infamous compression gotcha.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #83244
    avi3
    Participant

    The only thing i changed was the html file and added <!–- __V3D_PUZZLES__ – enable Puzzles button in the App Manager -–> otherwise the puzzle was greyed out… Tried creating a new project with same result. Tried reinstalling verge3d :/ No luck sadly

    #83245

    The only thing i changed was the html file and added <!–- __V3D_PUZZLES__ – enable Puzzles button in the App Manager -–> otherwise the puzzle was greyed out… Tried creating a new project with same result. Tried reinstalling verge3d :/ No luck sadly

    This comment should be present in the app initially. If you’re just adding support for puzzles to some custom HTML/JS app, this won’t work. Please check out how the puzzles are prepared by looking to a basic Cube app (e.g. my_awesome_app).

    Soft8Soft Tech Chief
    X | FB | LinkedIn

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.