• Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Bablosoft

Docs: RemoteExecuteScript.exe

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 2902 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daemons
    wrote on last edited by daemons
    #1

    These are a bit sloppy notes on what exactly "RemoteExecuteScript.exe" does:

    • Let <CWD> be the RemoteExecuteScript.exe's parent dir.
    • Accepts --silent command line switch which has the effect:
      -- No output at all.
      -- Even no error messages.
      -- Afterwards, silent gets propagated to "FastExecuteScript.exe".
    • Out of current interest:
      -- Also accepts --remote.
      -- And --script, --server, --username, --password for use with --remote.
      -- Script can become "invalid" if it's remote but no script or no server specified.
    • Currently reasons for valid==false can be only related to --remote.
    • For non-remote scripts all generated files are placed into:
      <AppsDir> = <CWD>/appslocal
    • Looks if "<CWD>/project.xml" exists.
    • If not, terminates.
    • Reads "EngineVersion" element from "<CWD>/project.xml".
    • If "EngineVersion" cannot be read then terminates.
    • Generates a SID directory in the format:
      <SidDir> = SID<sha256x>
      where <sha256x> is first 8 characters of SHA256 hash of the entire "project.xml". On Windows the hash can be generated using:
      certutil -hashfile project.xml SHA256
      PowerShell snippet to extract only the hash string and get rid of the rest of the output:
      $(CertUtil -hashfile project.xml SHA256)[1] -replace " ",""
    • Directory for "FastExecuteScript.exe":
      <FullSidDir> = <AppsDir>/<ScriptName>/<SidDir>/engine
      where <ScriptName> is empty for unnamed local scripts.
    • If <FullSidDir> does not exist then proceeds to installation.
    • If it exists then runs "FastExecuteScript.exe" with the CWD set to <FullSidDir>.

    Installation:

    • Checks if this engine distribution package exists:
      <CWD>/engines/<EngineVersion>/engine.zip
    • If not, downloads package from the web server.
    • Deletes recursively entire temporary dir, if any:
      <TmpRootDir> = <AppsDir>/<ScriptName>/temp
    • Temporary directory for engine installation to be:
      <TmpDir> = <TmpRootDir>/engine
    • Unzips either newly downloaded or previously existing engine distro into <TmpDir>.
    • Checks if there is a previous installation which means there's some <SIDxxx> directory in <AppsDir> dir. If there are multiple such dirs, a single random one is taken as the previous installation dir:
      <PrevDir> = <AppsDir>/<ScriptName>/<SIDxxx>
    • Checks if there are any untracked files in the previous installation's subdir:
      <PrevDir>/engine
      Untracked files are those files not registered in:
      <PrevDir>/engine/filelist.txt
    • Copies all untracked files from <CWD> and all of its subdirs into <TmpDir> with directory structure prevented.
    • Saves all file names from the engine distro (obtained as file list from the archiver) to "filelist.txt" and:
      -- Adds file list file itself ("filelist.txt").
      -- Addes "project.xml".
      -- ! Does not add any untracked files, i.e. they remain untracked.
    • Copies "project.xml" from <CWD> to <TmpDir>.
    • Renames <TmpDir> dir to <SidDir>.
    • Deletes <PrevDir>.
    • In the end, runs "FastExecuteScript.exe" from the new <SidDir> dir with the CWD set to <FullSidDir>.

    I'll try to keep this up to date and in line with my current knowledge.

    Everything can be done. Expect wonders.

    X 1 Reply Last reply
    8
  • X Offline
    X Offline
    xtangliang
    wrote on last edited by
    #2

    hi there,
    How to use these options -remote with --script, --server, --username, --password?
    Can I use my server ? or must be the BAS official server?
    How to specific the script file path?
    Could u throw me some example?

    FoxF 1 Reply Last reply
    0
  • FoxF Offline
    FoxF Offline
    Fox Bablosoft Team
    replied to xtangliang on last edited by
    #3

    @xtangliang said in Docs: RemoteExecuteScript.exe:

    hi there,
    How to use these options -remote with --script, --server, --username, --password?
    Can I use my server ? or must be the BAS official server?
    How to specific the script file path?
    Could u throw me some example?

    I already gave you the answer, BAS does not support setting startup parameters via the command line.

    X 1 Reply Last reply
    0
  • X Offline
    X Offline
    xtangliang
    replied to daemons on last edited by
    #4
    This post is deleted!
    1 Reply Last reply
    0
  • X Offline
    X Offline
    xtangliang
    replied to Fox on last edited by xtangliang
    #5

    @daemons said in Docs: RemoteExecuteScript.exe:

    • Out of current interest:
      -- Also accepts --remote.
      -- And --script, --server, --username, --password for use with --remote.
      -- Script can become "invalid" if it's remote but no script or no server specified.
    • Currently reasons for valid==false can be only related to --remote.
    • For non-remote scripts all generated files are placed into:

    @Fox @daemons
    I am asking about RemoteExecuteScript.exe options according above.

    FoxF 1 Reply Last reply
    -1
  • FoxF Offline
    FoxF Offline
    Fox Bablosoft Team
    replied to xtangliang on last edited by
    #6

    @xtangliang said in Docs: RemoteExecuteScript.exe:

    @Fox @daemons
    I am asking about RemoteExecuteScript.exe options according above.

    I'm tired of explaining, you just ignore the answer that does not suit you.

    1 Reply Last reply
    0

  • M

    Scheduling BAS scripts and compiled exe

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    503 Views
    No one has replied
  • H

    who can fix ttvdropbot.exe i want buy it

    Scheduled Pinned Locked Moved Support twitch drop bot
    0 Votes
    1 Posts
    526 Views
    No one has replied
  • K

    BAS detects CSS Element in BAS browser and works fine, doesn't detect it when I run it from app.exe

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    657 Views
    No one has replied
  • M

    Get Process ID of currently used worker.exe

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    590 Views
    No one has replied
  • M

    fastexecutescript.exe opens instead of bot itself

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    1363 Views
    No one has replied
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
  • Login

  • Don't have an account? Register

  • Login or register to search.