OpenBullet2 icon indicating copy to clipboard operation
OpenBullet2 copied to clipboard

[Bug]: js of Jint block not dropped on compiled config

Open meinname opened this issue 3 years ago • 2 comments

Version of the software

0.2.4

Operating system

Windows 2019

Browser / Native

native

What happened?

image

Relevant LoliCode if needed

No response

meinname avatar May 05 '22 20:05 meinname

The file was not found, thats why it couldn't compile anything!

ghost avatar May 19 '22 20:05 ghost

? Explanation for you (@openbullet can skip it as he already knows the problem and the issue is only as a reminder): The problem is that a normal config that includes for example

BLOCK:Script
INTERPRETER:Jint
INPUT LONGHEX
BEGIN SCRIPT
function cfDecodeEmail(encodedString) {
    var email = "", r = parseInt(encodedString.substr(0, 2), 16), n, i;
    for (n = 2; encodedString.length - n; n += 2){
    	i = parseInt(encodedString.substr(n, 2), 16) ^ r;
		email += String.fromCharCode(i);
    }
    return email;
}
var MAIL = cfDecodeEmail(LONGHEX);
END SCRIPT

drops a js to Scripts folder. But on a compiled config compiled to a .dll with the DiscordBot is not dropping that file. And so it throws an error (which you usually can't see on compiled configs - only with some "magic")

meinname avatar May 19 '22 20:05 meinname