Recover script from EXE?

Find quick help here to get you started with Hollywood
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Recover script from EXE?

Post by Tuxedo »

Hi all,
I dont remember if that question was already made...
But...thre was a weay to recover the source txt(maybe exactly as it was created like with comments and all other stuffs...) from and Hollywood exe?
I lost latest the LoView source codes and since I want to made a final version compiled with the latest Hollywood and have to resolve some bugs I like to can recover my scripts in some way...
I dunno(and dont remember) how hollywood links scripts and player in exes...

Thank you!
Simone"Tuxedo"Monsignori, Perugia, ITALY.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Recover script from EXE?

Post by plouf »

this is called decompiler
afaik there is no

if there is i would like to know :)
Christos
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Re: Recover script from EXE?

Post by Tuxedo »

Well...since Holywood was an interpreted language I thought that maybe the compiler takes simply the source code and attach it to the player or something similar...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Recover script from EXE?

Post by SamuraiCrow »

The interpreter is tacked onto bytecode. Not source, bytecode.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Recover script from EXE?

Post by airsoftsoftwair »

Tuxedo wrote: Tue May 23, 2023 10:27 pm Well...since Holywood was an interpreted language I thought that maybe the compiler takes simply the source code and attach it to the player or something similar...
Nope it's compiled into a special bytecode. It's impossible to get the exact script back. But it would be possible to write a decompiler that recovers something readable because in comparison to machine code all names (variables, functions...) are preserved in Hollywood bytecode.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Recover script from EXE?

Post by plouf »

This is good amd also bad.. since no real compiling takes place
Both in code protection scheme and execution speed

A more "compiler" maybe be for future holywood?!
Christos
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Re: Recover script from EXE?

Post by Tuxedo »

OK,
thank you for Replyes!
So unfortunately cant make the so wanted final version...btw...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Recover script from EXE?

Post by airsoftsoftwair »

plouf wrote: Wed May 24, 2023 10:29 pm This is good amd also bad.. since no real compiling takes place
Both in code protection scheme and execution speed
A more "compiler" maybe be for future holywood?!
Sorry, won't come. Machine-code compiling would require writing different backends for 68k, ppc, x86, x64, arm, arm64 etc. That's definitely way beyond what my time permits. If you really need to do high performance operations in Hollywood, just put that code in a plugin and call it from the script.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Recover script from EXE?

Post by plouf »

airsoftsoftwair wrote: Sun May 28, 2023 8:53 pm
Sorry, won't come. Machine-code compiling would require writing different backends for 68k, ppc, x86, x64, arm, arm64 etc. That's definitely way beyond what my time permits. If you really need to do high performance operations in Hollywood, just put that code in a plugin and call it from the script.
Dont speak for machine code
Speaking about more bytes in byte code

The fact that functions remain as is. Is a one fact that can optimized
Since pure byte are shoerter (minimun space achieved) bit also less bytes to interpret..
Christos
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Recover script from EXE?

Post by airsoftsoftwair »

I don't think there is much room for optimization since Hollywood bytecode is basically Lua bytecode with some tweaks and Lua is highly optimized. What I do plan to add though is some sort of obfuscation mode that changes all variable and function names into a random combination of characters to make it more difficult to reverse engineer code but that won't have any effect on performance.
Post Reply