Quasar
Moderator

Posts: 4484
Registered: 08-00 |
DaniJ said:
I should explain that I'm not actually interested in creating another BEHAVIOR decompiler.
The idea for this project is to convert BEHAVIOR bytecode directly into Doomsday script source file(s), not an ACS script source file. The plan is to drop the BEHAVIOR bytecode interpreter in jHexen completely, converting scripts into our core scripting language at load time (and subsequently parsed along with the rest of the scripts).
It will certainly be an interesting project as ACS script is not directly convertible to Doomsday script. For example, the different flow statement logics in loops and switch case expression evaluation.
So not only do I need to "decompile" and output a different syntax I'll also need to modify the scripts in the process.
Not a bad idea. I thought of this myself earlier back when Small still looked like a sure thing. I figured that ACS bytecode was simple enough to convert into Small bytecode. There ended up being too many issues involved for my liking in that particular instance, though. And now Small is out anyway so it's actually good that ACS doesn't depend on it ;)
|