Is there a way to write code that would be automatically usable in bas visual editor?

Support
  • Is there way to know how the base64 green string in each action is created(I understand that it is responsible for actions show in visual editor)?

    also how action's ids are assign to actions?
    would any not repeating id work?

    the goal is to be able to write or fix .xml files that the BAS projects are stored in outside of BAS editor mode (in VScode for example)

    section_start("", 312442188)!
    /Dat:eyJzIjoibG9nIiwidiI6MSwiZiI6W10sInV3IjoiMCIsInV0IjoiMCIsInV0byI6IjAiLCJ1bSI6IjAiLCJkIjpbeyJpZCI6IkxvZ1RleHQiLCJ0eXBlIjoiY29uc3RyIiwiZGF0YSI6ImhlbGxvIHdvcmxkIiwiY2xhc3MiOiJzdHJpbmcifV19/
    log("hello world")
    section_end()!
    f6ca2f7f-530e-40fa-9c6a-6c2ffe11592a-image.png

  • any 9 digit Id should work

  • if you just decode it you will see it is json with info about action itself so you can reverseengeneer that
    This is a Base64-encoded JSON string. After decoding, here's the content:
    json
    {
    "s": "log",
    "v": 1,
    "f": [],
    "uw": "0",
    "ut": "0",
    "uto": "0",
    "um": "0",
    "d": [
    {
    "id": "LogText",
    "type": "constr",
    "data": "hello world",
    "class": "string"
    }
    ]
    }

  • thank you

  • 0 Votes
    1 Posts
    754 Views
  • BAS External Browser

    Support
    0 Votes
    2 Posts
    1031 Views
  • Regex crashing BAS

    Support
    0 Votes
    4 Posts
    1263 Views
  • Best way to implement this bot?

    Support
    0 Votes
    4 Posts
    1678 Views
  • 0 Votes
    5 Posts
    2248 Views