Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

  • Topic Author
  • Posted (edited)

    The OPENSSL paths should be something like

    Please login or register to see this code.

    Please login or register to see this code.

     

    for the 

    Please login or register to see this code.

    command

    Edited by jgab
    Posted
    5 hours ago, jgab said:

    Please login or register to see this code.

    Using your inputs, no more error when installing luasec; when launching a QA using hc3emu, i do not have the socket.core error but a new one:

    Process started
    C:\Users\ASUS\scoop\apps\lua\current\bin\lua.exe: cannot open C:\Users\ASUS\.vscode.lua: No such file or directory
    Process exit with code: 1 signal: null
    Process on close code: 1 args: null

    I have a directory .vscode in that location but not '.vscode.lua'

    Making progress but not yet there...

    In which process this file is created in c:\USERS\ASUS ?

  • Topic Author
  • Posted

    So vscode.lua is used when you run tasks. You need to copy it from my repo hc3emu/tools/vscode.lua

    Please login or register to see this link.


    and place it in your home directory as C:\Users\ASUS\.vscode.lua
    Note the '.' prefix for the file.

     

    I'm in the process of coming up with a way to auto install it, but I'm not there yet.

    • Like 1
    Posted
    17 hours ago, Brors94 said:

    Can you share what the command print in console?

    here it is:

    PS C:\WINDOWS\system32> luarocks path --bin
    SET "LUA_PATH=C:\Users\ASUS\scoop\apps\luarocks\current\lua\?.lua;C:\Users\ASUS\scoop\apps\luarocks\current\lua\?\init.lua;C:\Users\ASUS\scoop\apps\luarocks\current\?.lua;C:\Users\ASUS\scoop\apps\luarocks\current\?\init.lua;C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\?.lua;C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\?\init.lua;.\?.lua;.\?\init.lua;C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\?.lua;C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\?\init.lua"
    SET "LUA_CPATH=C:\Users\ASUS\scoop\apps\lua\current\bin;C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\?.dll"
    SET "PATH=C:\Users\ASUS\scoop\apps\luarocks\current\rocks\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Google\Google Apps Sync\;C:\Program Files (x86)\Google\Google Apps Migration\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\Users\ASUS\scoop\apps\mingw-winlibs\current\bin;C:\Users\ASUS\scoop\apps\openssl\current\bin;C:\Users\ASUS\scoop\shims;C:\Users\ASUS\AppData\Local\Programs\Python;C:\Users\ASUS\AppData\Local\Programs\Python\Python311;C:\Users\ASUS\AppData\Local\Programs\Python\Python311\Lib;C:\Users\ASUS\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\ASUS\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ASUS\AppData\Local\Programs\Python\Python311\Lib\venv"

    I had a look to your settings for environmental variables and at minimum, all yours are there.

    Posted
    4 hours ago, jgab said:

    and place it in your home directory as C:\Users\ASUS\.vscode.lua
    Note the '.' prefix for the file.

    I just added it but now I have again another module missing with error:

    Process started
    C:\Users\ASUS\scoop\apps\lua\current\bin\lua.exe: ...coop\apps\luarocks\current\rocks\share\lua\5.4\copas.lua:1376: module 'timerwheel' not found:
        no field package.preload['timerwheel']
        no file 'c:\Users\ASUS\.vscode\extensions\alexeymelnichuk.lua-mobdebug-0.0.5\lua\timerwheel.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\timerwheel.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\timerwheel\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\timerwheel.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\timerwheel\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\timerwheel.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\timerwheel\init.lua'
        no file '.\timerwheel.lua'
        no file '.\timerwheel\init.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\timerwheel.lua'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
        no file ''
        no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\5.4\mime'
        no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\5.4\socket'
        no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\socket'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\timerwheel.dll'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
        no file '"C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\timerwheel.dll"'
        no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
        no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
        no file ''
    stack traceback:
        [C]: in function 'require'
        ...coop\apps\luarocks\current\rocks\share\lua\5.4\copas.lua:1376: in main chunk
        [C]: in function 'require'
        ...apps\luarocks\current\rocks\share\lua\5.4\hc3emu\emu.lua:34: in main chunk
        [C]: in function 'require'
        ...oop\apps\luarocks\current\rocks\share\lua\5.4\hc3emu.lua:45: in main chunk
        [C]: in function 'require'
        C:\Users\ASUS\.vscode.lua:2: in main chunk
        [C]: in ?

    Process exit with code: 1 signal: null
    Process on close code: 1 args: null

    I have the feeling that again something when wrong during a luarocks installation but I do not understand which one is the problem;

    about 'timewheel' I have:

    PS C:\WINDOWS\system32> luarocks install timerwheel
    Installing

    Please login or register to see this link.


    timerwheel 1.0.2-1 is already installed in C:/Users/ASUS/scoop/apps/luarocks/current/rocks
    Use --force to reinstall.
    PS C:\WINDOWS\system32> luarocks install timerwheel --force
    Installing

    Please login or register to see this link.

    timerwheel 1.0.2-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
    timerwheel 1.0.2-1 depends on coxpcall (1.17.0-1 installed: success)
    timerwheel 1.0.2-1 is now installed in C:/Users/ASUS/scoop/apps/luarocks/current/rocks (license: MIT)

  • Topic Author
  • Posted (edited)

    Pushed v1.0.73-1

    Please login or register to see this code.

    • Breaking changes - new config file format
    • Better offline UI support

    So there is a new format for configuration file - where to store HC3 credentials etc.

    Create a simple QA file with the following content

    Please login or register to see this code.

    Run the QA in the emulator and it will create a directory emu/

    Please login or register to see this code.

    in the workspace directory. If the directory already exists it will do nothing. To reinstall the files remove the directory and re-run a QA.

    While the QA is running (emulator) open the _setup.html inside vscode using the extension "Live server". When the extension is installed you can right click on the file and select "Open with Live Server".

    Please login or register to see this attachment.

    Then you will be presented a menu with installation options

    At the bottom there is the option to install a workspace specific configuration file and a global configuration file.

    The global file is store in your home directory as ".hc3emu.json", the prefix dot usually makes the file invisible in directory listings...

     

    When the emulator starts it reads the global config, overrides it wit the values in the workspace config (if it exists) and finally overrides it with eventual 

    directives in your QA file (--%%directive=... )

    I would strongly suggest to only have credentials , like user and passwords, set in the global config file. Otherwise it's easy to by mistake upload you workspace config file to GitHub or wherever with your secret credentials. In my global config file I have the credentials to all services I access.

    The config file allows for user defined items to be appended...

     

    The 2 top options launches an editor to edit the configurations files.

    The format is so that if the value is a string and starts with "<" the value is considered being a template value and is ignored.

     

    The 3rd option installs .vscode.lua in your home directory to run vscode tasks.

     

    The fourth option re-installs some emu/ files

     

    While the emulator is running one can in a similar way open the _emu.html file to get some stats on the running emulator and a link to the running QAs.

    QAs with the directive

    Please login or register to see this code.


    will generate a web interface in emu/ that can be viewed with live server too.

     

     

    Edited by jgab
    • Like 2
  • Topic Author
  • Posted

    There seems to be some issues for windows user and the latest v1.0.71 version.

    It will complain it can't find file stdStructs.json

    The problem is that scoop don't install a complete luarocks with all of the luarocks helper modules.... 

    I'm working on a way to code around it with a hack..

    • Like 1
    • Thanks 1
  • Topic Author
  • Posted (edited)

    I’ve just made an update to the last post. It’s now version 1.0.73, after I fixed a few bugs.

     

    The issue is that the emulator is packaged as a file that’s installed in the luarocks filesystem tree. But some of the files in that package, like the web UI templates, need to be in the workspace directory. (It’s really tricky to open pages outside the workspace (root) of the live server.)

    So, the emulator needs to figure out where the package resources are installed. For some reason, the luarocks that’s installed with scoop on Windows doesn’t provide that extra functionality.

    So, the emulator makes an educated guess and thinks it’s installed in the User’s scoop/apps directory.

     

    As a last resort, you can set the Windows environment variable “EMU_RSRCS” to the root of the hc3emu lib directory that’s installed by luarocks.

    For example, if you’re using scoop, it would be:

    Please login or register to see this code.

     

    For a local scoop setup, the emulator can figure it out on its own. If not, just set the environment variable.

    Edited by jgab
    • Like 1
  • Topic Author
  • Posted

    The new "workflow" with v1.0.74

     

     

    • Like 1
    Posted
    3 hours ago, jgab said:

    As a last resort, you can set the Windows environment variable “EMU_RSRCS” to the root of the hc3emu lib directory that’s installed by luarocks.

    For example, if you’re using scoop, it would be:

    Please login or register to see this code.

     

    I am a little desperated☹️: I have added the EMU-RSRCS variable, reboot Windows and install last version" hc3emu-1.0.74-1.src.rock"

    Still the error of missing module 'timerwheel'

    In my PC I can find some timerwheel files but not any "timerwheel.lua" file

     

    I have tried luarocks install timerwheel which seems to be already installed. Forcing reinstallation does not change anything:

    PS C:\WINDOWS\system32> luarocks install timerwheel --force
    Installing https://luarocks.org/timerwheel-1.0.2-1.src.rock

    timerwheel 1.0.2-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM: success)
    timerwheel 1.0.2-1 depends on coxpcall (1.17.0-1 installed: success)
    timerwheel 1.0.2-1 is now installed in C:/Users/ASUS/scoop/apps/luarocks/current/rocks (license: MIT)

    Checking stability of dependencies in the absence of
    timerwheel scm-1...

    Removing timerwheel scm-1...
    Removal successful.

     

  • Topic Author
  • Posted

    The problem you have makes me think you have installed stuff in different places... Did you have a lua installed before you started to install lua with scoop?

     

    So, first do

    Please login or register to see this code.

    It will show you all installed packages. Is both cops, timer wheel, and hc3emu there? (there should be more packages too)

    Take notice in what directory they are installed - should be the same.... and in your scoop directory....
     

    The do just

    >luarocks

    To see what Lua version it install packages for, and what lua it uses - that lua should also be from the scoop directory...

     

    Then do 

    Please login or register to see this code.

    to see what you lua you get when you start it from the command line...

     

    If they seem to be the same (all from the scoop installation directory)

    you should be able to inside lua, type 

    require("copas")

    require("hc3emu")

    etc, and it will return something - not throw an error...

     

  • Topic Author
  • Posted

    copas depends on timerwheel, so if copas is successfully installed timerwheel should also have been installed.

    Posted (edited)

     

    15 hours ago, jgab said:

    So, first do

    Please login or register to see this code.

    Result below:

    Windows PowerShell
    Copyright (C) Microsoft Corporation. Tous droits réservés.

    Testez le nouveau système multiplateforme PowerShell

    Please login or register to see this link.

    PS C:\WINDOWS\system32> luarocks list

    Rocks installed for Lua 5.4
    ---------------------------

    argparse
       0.7.1-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    binaryheap
       0.4-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    bit32
       5.3.5.1-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    copas
       4.8.0-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    coxpcall
       1.17.0-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    datafile
       0.10-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    hc3emu
       1.0.74-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    lua-json
       1.0.0-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    lua-websockets-bit32
       2.0.1-8 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    luafilesystem
       1.8.0-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    luamqttt
       1.0.2-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    luasec
       1.3.2-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    luasocket
       3.0rc1-2 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    mobdebug
       0.80-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    timerwheel
       1.0.2-1 (installed) - C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\luarocks\rocks-5.4

    PS C:\WINDOWS\system32>

    They seem to be installed all in the same directory (not cops but copas yes).

     

    15 hours ago, jgab said:

    Then do 

    Please login or register to see this code.

    Result:
    PS C:\WINDOWS\system32> lua -v
    Lua 5.4.7  Copyright (C) 1994-2024 Lua.org, PUC-Rio
    PS C:\WINDOWS\system32>

     

    15 hours ago, jgab said:

    ou should be able to inside lua, type 

    require("copas")

    require("hc3emu")

    Result in same type of error about 'timerwheel':

     require ("copas")
    ...coop\apps\luarocks\current\rocks\share\lua\5.4\copas.lua:1376: module 'timerwheel' not found:
            no field package.preload['timerwheel']
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\timerwheel.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\lua\timerwheel\init.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\timerwheel.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\timerwheel\init.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\timerwheel.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\..\share\lua\5.4\timerwheel\init.lua'
            no file '.\timerwheel.lua'
            no file '.\timerwheel\init.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\share\lua\5.4\timerwheel.lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
            no file 'c:\Users\ASUS\scoop'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\share\lua\5.4\timerwheel'
            no file ''
            no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\5.4\mime'
            no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\5.4\socket'
            no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua\socket'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\timerwheel.dll'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\3.11.1\rocks\lib\lua\socket'
            no file '"C:\Users\ASUS\scoop\apps\lua\current\bin'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks\lib\lua\5.4\timerwheel.dll"'
            no file 'C:\Users\ASUS\scoop\apps\lua\current\bin'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
            no file 'C:\Users\ASUS\scoop\persist\luarocks\rocks\lib\lua'
            no file 'C:\Users\ASUS\scoop\apps\luarocks\current\rocks'
            no file ''
    stack traceback:
            [C]: in function 'require'
            ...coop\apps\luarocks\current\rocks\share\lua\5.4\copas.lua:1376: in main chunk
            [C]: in function 'require'
            stdin:1: in main chunk
            [C]: in ?
    >

    And for hc3emu:

    > require ("hc3emu")
    ...oop\apps\luarocks\current\rocks\share\lua\5.4\hc3emu.lua:23: Cannot find main lua file
    stack traceback:
            [C]: in function 'assert'
            ...oop\apps\luarocks\current\rocks\share\lua\5.4\hc3emu.lua:23: in main chunk
            [C]: in function 'require'
            stdin:1: in main chunk
            [C]: in ?
    >

     

    What is strange is that require("copas") is searching files in directories which are not those used by installation of corresponding modules!

    below, list of installed modules by scoop:

    PS C:\WINDOWS\system32> scoop list
    Installed apps:

    Name              Version                    Source  Updated                                Info
    ----                  -------                     ------    -------                                   ----
    7zip                  24.09                         main   2025-03-26 20:56:24
    innounp            2.64.3                       main   2025-03-26 20:39:15
    lua                     5.4.7-2                      main   2025-03-29 21:14:16
    luarocks            3.11.1                          main   2025-03-29 21:14:47
    mingw-winlibs 14.2.0-12.0.0-r2        main   2025-03-26 20:58:52
    openssl             3.4.1                           main   2025-03-26 20:56:05

     

    Edited by Christb
  • Topic Author
  • Posted (edited)

    So, it seems like you miss 

    Please login or register to see this code.

    in your LUA_PATH environment variable

    Edited by jgab
    Posted
    4 hours ago, jgab said:

    So, it seems like you miss 

    Please login or register to see this code.

    in your LUA_PATH environment variable

    I Was thinking it was in my LUA-PATH setting but strangely ythe string '\rocks\' was in fact '\..\'; may be a copy paste from vsconde DEBUG console

    Change it, reboot and now I have a new error in blue that confirms me that we are on the right track:

    Process started
    [04.04.2025][14:32:12][SYSERR]    Event handler error: ...apps\luarocks\current\rocks\share\lua\5.4\hc3emu\emu.lua:452: Missing hc3emu.URL - Please set url to HC3 in config file
    HC3 Tool
    Error: Unknown command: _runQA

    Process exit with code: 4294967295 signal: null
    Process on close code: 4294967295 args: null

     

    I think I have correctly configured the 2 configuration files:

    • hc3emu_cfg.lua which is located at "C:\Users\ASUS\Documents\hc3emu-main" (strange: the password is not included in this file)
    • .hc3emu.lua which is located in 3 directories (just in case):
      • "C:\Users\ASUS\Documents\hc3emu-main"
      • "C:\Users\ASUS\Documents"
      • "C:\Users\ASUS"

    Also when using "QA_example.lua" and changing 'fibaro.USER', fibaro.PASSXWORD' and fibaro.URL with my settings,  I am getting the same error...

  • Topic Author
  • Posted

    You can't set the password in the QA file anymore. Need to set it in a config file.
    There is no hc3emu_cfg.lua anymore.

    Just 
    hc3emu.json in the vwcode workspace you are running your QA.

    or
    C:\Users\ASUS\.hc3emu.json

    Note the prefix '.' in the last name.

     

    They are json files.

     

    You can create and edit them by following the instructions here

     

    To view the _setup.html in vscode you install either "Live preview" plugin by Microsoft or "Live server" (by someone else...)
    I would recommend the latter...

    Then you can right-click on the html file in vscode directory and do a preview...

     

    Just now, jgab said:

    You can't set the password in the QA file anymore. Need to set it in a config file.
    There is no hc3emu_cfg.lua anymore.

    Just 
    hc3emu.json in the vwcode workspace you are running your QA.

    or
    C:\Users\ASUS\.hc3emu.json

    Note the prefix '.' in the last name.

     

    They are json files.

     

    You can create and edit them by following the instructions here

     

    To view the _setup.html in vscode you install either "Live preview" plugin by Microsoft or "Live server" (by someone else...)
    I would recommend the latter...

    Then you can right-click on the html file in vscode directory and do a preview...

     

     

     

    If you set

    --%%offline=true
    it will not complain about the password as it will not try to connect to the hc3...

    • Like 1
  • Topic Author
  • Posted (edited)

    There is an "HC3Emu helper" extension available in vscode to install.

    It will give some fibaro api completions and some "snippets".

    Ex. start to type "com" and a popup will give you different com.fibaro.xyz lua templates to insert in the editor.

    "QuickAppChild", will insert a Child template, and "HTTPClient", an net.HTTPClient():request template...

    They snippets and completions will be improved...

     

    Edited by jgab
    • Like 2
    Posted
    3 hours ago, jgab said:

    To view the _setup.html in vscode you install either "Live preview" plugin by Microsoft or "Live server" (by someone else...)
    I would recommend the latter...

    Then you can right-click on the html file in vscode directory and do a preview...

     

    I have installed the Microsof Live Preview plugin and I can vew the _setup.html page😄:

    Please login or register to see this image.

    /monthly_2025_04/image.png.82013fbf58813fd7adba963e6b6af539.png" />

    I have clicked on the "Install global config file" which goes grey then Red and after a while green again☹️

    Same behavior for the "Install project confi file" and I cannot see these files in the corresponding directory. ☹️

     

    😈 is on me...

    Could you give me the structure of '.hc3emu.json' files? I will try to create them manualy.

  • Topic Author
  • Posted

    The emulator needs to be running (a QA) for the _setup.html to work - the page calls back to the running emulator to do the work….

    Posted
    1 hour ago, jgab said:

    The emulator needs to be running (a QA) for the _setup.html to work - the page calls back to the running emulator to do the work….

    The issue is that the emulator is never running as, soon as I am pressing F5, I am getting the error and emulator stops even if directive '--%%offline=true' is included as below using New_QA.lua:

    if require and not QuickApp then require("hc3emu") end

    -- A basic QuickApp example
    -- This QuickApp demonstrates basic structure and functionality
    --%%speed=72
    --%%silent=true
    --%%offline=true

    local version = "0.1"

    ...

    the error is :

    Process started
    [04.04.2025][20:44:42][SYSERR]    Missing hc3emu.URL - Please set url to HC3 in config file
    Process exit with code: 1 signal: null
    Process on close code: 1 args: null

     

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...