I am planning on making some new hardpoint files which are balanced to the ingame ship specs, but to do this I need some kind of reference to the in game ship strengths, which I canrt access as they are all .pyc files, so I have tried to get the info I need through experimenting. So, I wondered if someone could verify this information for me in case it is wrong, and I go making a mess of the files:
A shield rating of 1 (for any side) is equivalent to a value of 500 in a hardpoint file.
A hull rating of 1 is equivalent to a value of 500 in a hardpoint file.
The strength of a Stock Photon torpedo is 500.
The strength of a Stock Quantum torpedo is 1000.
In another forum, I read something about decompyling the .pyc files. All you need is Python v1.5.2.!!! With this version BC was written. A newer version won't!!! work. Try www.python.org for downloading. And the decompyling part, decompyle v0.6.0. After installing both, copy the file which you want to decompyle into the python folder. Then execute the command and change to python folder. The command to decompyle: "python decompyle filename.pyc -o" After some time, you have a file which is named "filename.dis", rename to filename.py and you have the source code of the file. To edit use notepad.
p.s. Sorry for my English, I'm from Germany
Thanks for the info, I have downloaded python, but please could you go into more detail on how to install the decomyle software, and then using it to decompile a file?
...You can download SDK. After you do, there'll be a folder in there somewhere called "Build". It has .py files for all the stock ships and projectiles.
Thanks, you were right about the .py files being in the SDK. Time to get to work on some new hardpoint files :)
Extract the packed file to a temporary folder. Then copy the files from temp into the python folder. That's all. To download the decompyle part goto "http://goebel-consult.de/decompyle/" but be sure to download version 0.6.0. Otherwise it won't work.
You can get a short help if you type "python decompyle -h" into the command input line. Or try using "python decompyle --help". But all you need to know is how to decompyle the .pyc files.
Type into the command input line "python decompyle filename.pyc -o" Before doing this you have to copy the .pyc file into the python folder. "filename" is the name of the file which you want to decomyple.
At the end, you have another file with the same name but the extension ".dis" at the end. Change the extension to ".py" and you have the source code of the .pyc file.