My First extension - Binary converter

Update 2.0

  • Added ability to convert text to binary & back again.

Thanks to @Italo for encouraging me, I didn't want to do it as it was a little difficult.


His encouragement helped :slightly_smiling_face:


component_method (11)

  • Convert Text to binary code.

component_event (3)

  • Triggered when conversion is completed.


component_method (12)

  • Converts back Binary to regular text.

component_event (4)

  • Triggered when conversion is completed into text.


Google Drive - ZIP file

Direct download - BinaryTool (6.8 KB)

Binary Tool AI2 Extension by Xoma (Kumaraswamy) is licensed under CC BY-ND 4.0

(My friend will scold me if the dint't provide link to license. :grimacing:)

Any suggestions or improvements are appreciated!

Thanks :slightly_smiling_face:


Suggestion: Add a when Error occurred event. It is better than throwing a YailRuntimeError for that.

1 Like

Hey, thanks for the suggestion, but do you know how to do it? I am still learning..
Also why you got that error?

For fast operations like this with one input and one output,
it would be more convenient to offer a block with input and output ports,
like a math block.

Also, offer sample input annd output examples in your tool tip docs.

1 Like

I didn't understand these lines..?

What @ABG mean is you shouldn't use void, instead you should return something directly.

I don't have any error. I am just suggesting. Use a try-catch statement to catch the exception error, and use an event block to handle it.


@SimpleEvent(description = "Raises when error occurred.")
    public void ErrorOccurred(String error) {
        EventDispatcher.dispatchEvent(this, "ErrorOccurred", error);

@SimpleFunction(description = "Integer addition")
    public int Addition(int a, int b){
        try {
              return a + b;
        } catch (Exception e) {
              return 0;
1 Like

Its throws and error that "catch" without "try"... But the code is all correct

it means you did not used try statement

1 Like

No! I am used it...

Ok, lets not go offtopic here... I will learn it later.

this maybe help you Java Exceptions (Try...Catch)

as you wish :upside_down_face:

1 Like

This extension is discontinued :