first : many thanks to try to help me, you're awsome !
but there a probleme with your javascript i think, the input log converted make a error in bizhawk when i loaded it....
your code is very nice but im a noob on java (i hate it.....)
if you have the same program on c# i have Vstudio for rewrite it :)
for convert a BK2 to a Tasproj its easy :)
many thanks dude ! :)
--------EDIT---------
for comparason with the two type of files :
an original input log (random input)
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,..........l......|
| 1,...| 128, 128, 128, 128,U................|
| 1,...| 128, 128, 128, 128,U................|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,...........r.....|
| 1,...| 128, 128, 128, 128,...........r.....|
| 1,...| 128, 128, 128, 128,...R.............|
| 1,...| 128, 128, 128, 128,...R.............|
| 1,...| 128, 128, 128, 128,...R.............|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,.D...............|
| 1,...| 128, 128, 128, 128,...R.............|
| 1,...| 128, 128, 128, 128,...R.............|
| 1,...| 128, 128, 128, 128,.........X.......|
| 1,...| 128, 128, 128, 128,.........X.......|
| 1,...| 128, 128, 128, 128,......Q..........|
| 1,...| 128, 128, 128, 128,......Q..........|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,........O........|
| 1,...| 128, 128, 128, 128,........O........|
| 1,...| 128, 128, 128, 128,.......T.........|
| 1,...| 128, 128, 128, 128,.......T.........|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,.................|
| 1,...| 128, 128, 128, 128,.............R...|
| 1,...| 128, 128, 128, 128,.............R...|
and the input converted from a pjm
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|..............|..............|
| 1,...|U.............|..............|
| 1,...|U.............|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.........X....|..............|
| 1,...|.........X....|..............|
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|..............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............|
| 1,...|.D............|..............||