Introduction: 2/3 EDIT AND CREATE BLOCK IN ARDUBLOCK 2/3

PART 2/3

EDIT ARDUBLOCK (second way)

THE SERIOUS WAY

drag and drop out Partie_Emetteur.class ( ardublock-beta-20140828.jar\com\ardublock\translator\block\Duinoedu )

Upload the Partie_Emetteur.class on java decompliler http://www.javadecompilers.com

(posssible you can do the same work with jad command .I have not tryied it)

Download the file and extract (take only Partie_Emetteur.java)

Open Partie_Emetteur.java with java editor

Play with the code and save it (it's simple)

Now its intresting

download the SOURCE CODE of ardublock

https://github.com/taweili/ardublock

https://github.com/taweili/openblocks

You must have ardublock-master.zip and openblocks-master.zip

Make TWO folder ONE with the name ardublocktemp on disk C:\ARDUBLOCKTEMP\

and onother C:\ARDUBLOCK

Drag and drop the ardublock-master and openblock-master.zip in ardublocktemp

extract both in C\ARDUBLOCKTEMP\

Copy folder EDU from openblock C:\ARDUBLOCKTEMP\openblocks-master\src\main\java to C:\ARDUBLOCK\

Copy folder COM from ardublock-master C:\ARDUBLOCKTEMP\ardublock-master\src\main\java to C:\ARDUBLOCK\

Copy the Partie_Emetteur.java to C:\ARDUBLOCK\

You must have in folder C:\ARDUBLOCK\ edu , com folder and Partie_Emetteur.java

close all

Open dos command go to C:\ARDUBLOCK and type javac Partie_Emetteur.java . Convert java to class

close dos command and open ce2.23 class editor

Load the new file Partie_Emetteur.class from C:\ARDUBLOCK\Partie_Emetteur.CLASS

Modify on (up and right) button

In square version and under MAGIC NUMBER there is "Major Version 51" CHANGE to "Major Version 49"

In square Property Change "Accept" push button . SAVE and exit.

Push back the new class file to ardublock.jar

Finished the second way (correct way).

Step 1:

THE SIRIOUS WAY
drag and drop out Partie_Emetteur.class ( ardublock-beta-20140828.jar\com\ardublock\translator\block\Duinoedu ) Upload the Partie_Emetteur.class on java decompliler http://www.javadecompilers.com

(posssible you can do the same work with jad command .I dont have try it)

Download the file and extract (take only Partie_Emetteur.java)

Open Partie_Emetteur.java with java editor Play with the code and save it (it's simple)

Step 2:

Now its intresting
download the SOURCE CODE of ardublock https://github.com/taweili/ardublock

https://github.com/taweili/openblocks

You must have ardublock-master.zip and openblocks-master.zip

Make TWO folder ONE with the name ardublocktemp on disk C:\ARDUBLOCKTEMP\ and onother C:\ARDUBLOCK Drag and drop the ardublock-master and openblock-master.zip in ardublocktemp extract both in C\ARDUBLOCKTEMP\

Copy folder EDU from openblock C:\ARDUBLOCKTEMP\openblocks-master\src\main\java to C:\ARDUBLOCK\ Copy folder COM from ardublock-master C:\ARDUBLOCKTEMP\ardublock-master\src\main\java to C:\ARDUBLOCK\ Copy the Partie_Emetteur.java to C:\ARDUBLOCK\ You must have in folder C:\ARDUBLOCK\ edu , com folder and Partie_Emetteur.java

Step 3:

close all
Open dos command go to C:\ARDUBLOCK and type javac Partie_Emetteur.java . Convert java to class

Close dos command and open ce2.23 class editor

Load the new file Partie_Emetteur.class from C:\ARDUBLOCK\Partie_Emetteur.CLASS Modify on (up and right) button

Step 4:

In squere version and under MAGIC NUMBER there is "Major Version 51" CHANGE to "Major Version 49"
In squere Property Change "Accept" push button . SAVE and exit.

Push back the new class file to ardublock.jar

Finished the second way (correct way).