Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Tethys on April 22, 2018, 06:19:09 PM

Title: Python Decompiler (App.py/c)
Post by: Tethys on April 22, 2018, 06:19:09 PM
If this is not allowed I apologize, but I figure we should move forward as far as possible with the tools available to us. So I found a decompiler today for pyc files. Basically any pyc file you can decompile, rename the file extension of the new file *.py and open it to reveal its inner goodies... I went ahead and decompiled the App.pyc file, code in the spoiler. I hope someone can find it useful, I don't know what most of it means...

https://sourceforge.net/projects/easypythondecompiler/

I would be sure to back up the existing App.pyc and store it away in a very safe place before putting this file into scripts directory.

If anyone can think of any *.pyc files missing their *.py counterpart, let me know, I will take requests for the next few days (this will also help me dig deeper into the files, since I do not know which files are missing their twin)

Spoiler: show
https://paste.ee/p/7k3Pl
Title: Re: Python Decompiler (App.py/c)
Post by: Flowrellik on April 22, 2018, 10:54:54 PM
and just like that I found an easy solution to adding some extra damage to some of wickedzombie's weapons :D Thank you!
Title: Re: Python Decompiler (App.py/c)
Post by: Tethys on April 22, 2018, 11:45:49 PM
Cookie? :P
Title: Re: Python Decompiler (App.py/c)
Post by: Defiant on April 23, 2018, 12:50:42 AM
uhm, you do know that the original App.py was released with the SDK?
Title: Re: Python Decompiler (App.py/c)
Post by: Tethys on April 23, 2018, 01:06:49 AM
It's not present in my version ? idk  :idk:
Title: Re: Python Decompiler (App.py/c)
Post by: Defiant on April 23, 2018, 01:12:23 AM
Should be right unter Build/scripts/
Title: Re: Python Decompiler (App.py/c)
Post by: Tethys on April 23, 2018, 02:21:34 AM
I stand corrected. I do see it now. Well, maybe this can still help some people.