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.

Dictionaries/Variables/Logic confusion

Home Forums Puzzles Dictionaries/Variables/Logic confusion

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #78360
    peet
    Customer

    Hi Everyone!

    I’m having trouble with my test configurator. The ‘puzzle-01’ option works perfectly, but ‘puzzle-02’ doesn’t respond, and I can’t figure out why. I’ve tried renaming and double-checked everything, but nothing seems wrong. Any ideas on why ‘puzzle-02’ isn’t working would be appreciated!

    Best regards,
    Peter

    Attachments:
    You must be logged in to view attached files.
    #78388

    Hi, you might use the print to console puzzle to print the values of all your variables to find out what’s wrong.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #78397
    peet
    Customer

    Hi,

    I have a print console at the bottom of the puzzles, and while it shows changes in the console as expected, there’s no visible effect on the model. This is strange because I used identical settings (replace texture) for another component, where everything worked perfectly. See attached image.

    test app: https://3dkonfigurator.hu/?product=test-konfigurator-copy#fahaz

    Attachments:
    You must be logged in to view attached files.
    #78404
    kdv
    Participant

    the problem is in your logic. the variable Szinek is undefined initially and it’s never defined afterwards. you set value for roofszin but for some unknown reason you use undefined Szinek (instead of roofszin) to get corresponding texture name from the dictionary. the result will be undefined and nothing will happen.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #78407
    peet
    Customer

    Thank you so much, kdv! That really clears things up for me and explains why it wasn’t working.

    #78418

    Nice catch :good:

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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