[X] This is a bug, not a question or a configuration issue; Please visit our forum first to troubleshoot with volunteers, before creating a report. The links can be found here.
[X] This issue is not already reported on GitHub(I've searched it).
[X] I'm using an up to date version of OpenBullet2. We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
[X] This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.
Description of the bug
The Execute method on the Jint Engine, which was working in version 0.2.5, is no longer functioning in version 0.3.0 and above. When attempting to use this method, a MissingMethodException is thrown, indicating that the method cannot be found.
Reproduction steps
Example Loliscript:
BEGIN SCRIPT
function generateRandomUsername() { const length = Math.floor(Math.random() (11 - 7 + 1)) + 7; const charsLowercase = 'abcdefghijklmnopqrstuvwxyz'; const vowels = 'aiueo'; const numbers = '0123456789'; let username = charsLowercase.charAt(Math.floor(Math.random() charsLowercase.length)); let consecutiveWithoutVowel = (vowels.includes(username[0])) ? 0 : 1; for (let i = 1; i < length; i++) { let nextChar = charsLowercase.charAt(Math.floor(Math.random() charsLowercase.length)); if (consecutiveWithoutVowel >= 2 && !vowels.includes(nextChar)) { nextChar = vowels.charAt(Math.floor(Math.random() vowels.length)); consecutiveWithoutVowel = 0; } consecutiveWithoutVowel = vowels.includes(nextChar) ? 0 : consecutiveWithoutVowel + 1; username += nextChar; } if (!vowels.includes(username[username.length - 1]) && Math.random() < 0.5) { username = username.slice(0, -1) + numbers.charAt(Math.floor(Math.random() * numbers.length)); } return username;}return generated = generateRandomUsername()
END SCRIPT
OUTPUT String @generated
ENDBLOCK
Come with error;
[Executing block Random username] MissingMethodException: Method not found: 'Jint.Engine Jint.Engine.Execute(System.String)'.
What is the current bug behavior?
[Executing block Random username] MissingMethodException: Method not found: 'Jint.Engine Jint.Engine.Execute(System.String)'.
What is the expected correct behavior?
come desired output
Version of the client
0.3.1
Type of client
Native client
Environment
Environment
version: 0.3.1 (not working)
Last known working version: 0.2.5
Operating System: windows 10 and windows 11
This issue respects the following points:
Description of the bug
The Execute method on the Jint Engine, which was working in version 0.2.5, is no longer functioning in version 0.3.0 and above. When attempting to use this method, a MissingMethodException is thrown, indicating that the method cannot be found.
Reproduction steps
Example Loliscript: BEGIN SCRIPT function generateRandomUsername() { const length = Math.floor(Math.random() (11 - 7 + 1)) + 7; const charsLowercase = 'abcdefghijklmnopqrstuvwxyz'; const vowels = 'aiueo'; const numbers = '0123456789'; let username = charsLowercase.charAt(Math.floor(Math.random() charsLowercase.length)); let consecutiveWithoutVowel = (vowels.includes(username[0])) ? 0 : 1; for (let i = 1; i < length; i++) { let nextChar = charsLowercase.charAt(Math.floor(Math.random() charsLowercase.length)); if (consecutiveWithoutVowel >= 2 && !vowels.includes(nextChar)) { nextChar = vowels.charAt(Math.floor(Math.random() vowels.length)); consecutiveWithoutVowel = 0; } consecutiveWithoutVowel = vowels.includes(nextChar) ? 0 : consecutiveWithoutVowel + 1; username += nextChar; } if (!vowels.includes(username[username.length - 1]) && Math.random() < 0.5) { username = username.slice(0, -1) + numbers.charAt(Math.floor(Math.random() * numbers.length)); } return username;}return generated = generateRandomUsername() END SCRIPT OUTPUT String @generated ENDBLOCK
Come with error; [Executing block Random username] MissingMethodException: Method not found: 'Jint.Engine Jint.Engine.Execute(System.String)'.
What is the current bug behavior?
[Executing block Random username] MissingMethodException: Method not found: 'Jint.Engine Jint.Engine.Execute(System.String)'.
What is the expected correct behavior?
come desired output
Version of the client
0.3.1
Type of client
Native client
Environment
OpenBullet2 logs
No response
Client / Browser logs
No response
Relevant screenshots or videos
No response
Relevant LoliCode if needed
Additional information
No response