NYX conversion of empty image references

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
User avatar
FrozenWolf
Explorer At Heart
Explorer At Heart
Posts: 350
Joined: Tue Oct 30, 2018 7:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Dom/me(s): None
Sub/Slave(s): None
Location: UK

NYX conversion of empty image references

Post by FrozenWolf »

As pointed out by SleeplessSub, viewtopic.php?p=369364#p369364, the following tease gets stuck on "Loading media".

Tease    #20497   Title  
'It Aint Easy..'
Author   @30463   Name   
'switchoracle'
Type        nyx   Date   
2013-03-13

The EOS conversion contains the following with a suspicious media reference:

  "start" : [
     {
        "nyx.page" : {
           "action" : {
              "nyx.buttons" : [
                 {
                    "commands" : [
                       {
                          "goto" : {
                             "target" : "home"
                          }
                       }
                    ],
                    "label" : "Continue"
                 }
              ]
           },
           "media" : {
              "nyx.image" : "file:"
           },
           "text" : "...
        }
     }
  ]


The original NYX script contains this:

start#page(
    text: ...
    media:pic(id:""),
    action:go(target:home#)
)


The console error is the following, but it's a bit tricky to interpret the minified JavaScript, so I'm guessing about the cause of the problem.

Code: Select all

script error: TypeError: Expected pattern to be a non-empty string
    _e https://eosscript.com/assets/index-6f90e65e.js:23
    G1 https://eosscript.com/assets/index-6f90e65e.js:23
    resolveLocator https://eosscript.com/assets/index-6f90e65e.js:23
    F https://eosscript.com/assets/index-86640c88.js:1
    a https://eosscript.com/assets/index-6f90e65e.js:175
    en https://eosscript.com/assets/index-86640c88.js:1
    a https://eosscript.com/assets/index-6f90e65e.js:175
    h https://eosscript.com/assets/index-6f90e65e.js:175
    getPage https://eosscript.com/assets/index-6f90e65e.js:175
    preloadPage https://eosscript.com/assets/index-6f90e65e.js:175
    load https://eosscript.com/assets/index-6f90e65e.js:175
    load https://eosscript.com/assets/index-6f90e65e.js:175
    <anonymous> https://eosscript.com/assets/index-6f90e65e.js:175
index-6f90e65e.js:175:27808
    load https://eosscript.com/assets/index-6f90e65e.js:175
    (Async: promise callback)
    load https://eosscript.com/assets/index-6f90e65e.js:175
    <anonymous> https://eosscript.com/assets/index-6f90e65e.js:175
I'm not sure whether this is a problem with the NYX -> EOS conversion, or a change to the EOS player itself, but it looks like something is now less tolerant of empty image references.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest