Furikiri icon indicating copy to clipboard operation
Furikiri copied to clipboard

TjsAssembler

Open UlyssesWu opened this issue 5 years ago • 7 comments

Implement something like https://github.com/CoffeeFlux/krkrz-assembler . May use: https://github.com/datalust/superpower https://github.com/sprache/Sprache

UlyssesWu avatar May 27 '19 12:05 UlyssesWu

Hello, @UlyssesWu ! Any news about TjsAssembler ?

imKota avatar Nov 28 '19 16:11 imKota

It's something I might consider when I accomplished the prototype of Furikiri.Echo decompiler engine - when the Initialize.tjs can be decompiled without syntax error. Currently the progress is about 70% I guess. Their are some codes which could be useful for assembler (Furikiri.Emit), but I think the assembler is not really helpful for most users so I put it in low priority.

UlyssesWu avatar Nov 28 '19 17:11 UlyssesWu

Your task is actually simple. Just use https://github.com/marcussacana/KrKrZSceneManager .

Eventually Furikiri assembler will be able to do this job too, but Furikiri should be more useful (and probably the only tool) to change the code logic, rather than just texts.

UlyssesWu avatar Nov 28 '19 17:11 UlyssesWu

It seems that KrKrZSceneManager only makes the strings section editable but actually it's basically same for any other immediate sections (byte, short, int, long, double, octet). If marcussacana would like to support other sections, you can change those numbers to resize buttons. (If he doesn't have time to do this, you can try yourself with his code or find another programmer, it's not very hard.) Or you might have to find those number with a hex editor and the dissasmble result from Furikiri and change those numbers manually.

The more complex code changes require tjs byte code editing, so you have to wait for Furikiri, or learn those byte codes...

UlyssesWu avatar Nov 28 '19 18:11 UlyssesWu

I wonder if there's a tool available to edit the code in tjs2 directly just like tjs?

Refrain69 avatar Jan 21 '23 05:01 Refrain69

@Refrain69 Do you understand the goal of this project? This project should be closed if there is a tool like you said 🤔

UlyssesWu avatar Jan 21 '23 09:01 UlyssesWu

Alright.

Refrain69 avatar Jan 21 '23 10:01 Refrain69