Forum Discussion
- I'm not a simguru, but a 10 second google got me these links:
http://stackoverflow.com/questions/5287253/is-it-possible-to-decompile-a-compiled-pyc-file-into-a-py-file
and
http://stackoverflow.com/questions/2438578/how-to-recovery-source-python-code-py-from-pyo-file
More time with google should get you more details if that isn't sufficient. - Don't forget to add " @SimGuruModSquad "! He has a lot of forums to look at now ;)
- This is one of the first threads in our brand new categorized forum and already there is someone doing the rude "google that and don't be a bother" thing. :( Can't you play nice?
"_A_;12520644" wrote:
@granthes If you had actually read the links you just posted and/or tried to decompile the pyo's then you'd know that they are in python 3.3. Only one of the tools mentioned in the links you posted even claims to work for that and it won't decompile the ones in this game. Your links aren't helping and your nasty attitude isn't either.
I'm sorry you seem to think I have a nasty attitude. But the original post showed no evidence of having looked for themselves. That in turn made the post seem quite rude and unproductive to me. Of course, that is just my opinion."Jordwal;12520659" wrote:
This is one of the first threads in our brand new categorized forum and already there is someone doing the rude "google that and don't be a bother" thing. :( Can't you play nice?
It is a programmer thing. Also known as RTFM. Why should a busy SimGuru help us if we don't show any evidence of having helped ourselves? To a programmer, the original post looked rude to me.
I guess as a professional software developer I have a different expectation to what should be done before asking for help.- @granthes - It doesn't really matter what you do for a living. There are ways to respond to people that are helpful and polite vs rude and dismissive. I guess they don't teach that at college. I certainly hope you don't talk to people this way at work because I don't think it would win you any promotions.
- Hey all, let's keep this civil... this is a place for programmers and remember it's us against the world.
One of the reasons we chose python is because it's pretty much an open book. Unfortunately we cannot release our raw source code. So pyo->py is an exercise for the reader, we know how clever you guys are. As I have mentioned previously, we have documentation coming but it will not cover this topic. As you guys figure things out more and have specific questions on the python side of things I will do my best to give you the info you need. - I am just trying to be forthright with you guys, releasing source is not something we are prepared to do. I hope you can appreciate that we are doing work to help support modding via features in the game, documentation and these forums. But releasing source is not something that game makers typically do and I apologize if there was any implication that we planned to do so. Python is a well known open source scripting language, which should give you options for reverse engineering the information you need.
We will provide more detailed information on the tuning system, which will allow a lot of modifications that historically would have been done via script on previous Sims games. "granthes;12520571" wrote:
I'm not a simguru, but a 10 second google got me these links:
http://stackoverflow.com/questions/5287253/is-it-possible-to-decompile-a-compiled-pyc-file-into-a-py-file
and
http://stackoverflow.com/questions/2438578/how-to-recovery-source-python-code-py-from-pyo-file
More time with google should get you more details if that isn't sufficient.
And it's obvious you spent about 10 seconds on your google search. I spent over an hour 'googling' how to disassemble pyo files to py files, that can then be read in the python 3 shell with the 'dis' command. I'm not finding anything that supports python 3 or runs in windows instead of Linux."SimGuruModSquad;12520975" wrote:
Hey all, let's keep this civil... this is a place for programmers and remember it's us against the world.
One of the reasons we chose python is because it's pretty much an open book. Unfortunately we cannot release our raw source code. So pyo->py is an exercise for the reader, we know how clever you guys are. As I have mentioned previously, we have documentation coming but it will not cover this topic. As you guys figure things out more and have specific questions on the python side of things I will do my best to give you the info you need.
I didn't ask you for the source code. And I have no plans of converting the pyo to py, changing it, then reoptimizing to pyo and thus replacing game code. I just want to be able to read the python. It appears to me that many pyo files have 'tuning' in their names.
It's unfortunate that you perceive us as 'clever', and need to always do things with this attitude. But we are clever, and we will figure it out without your help.
I didn't ask for your source, I asked a 'specific question on the python side of things', as you state in your response. So please do your best to give me the info that I need. What is your recommended solution for disassembling a pyo file?"granthes;12520748" wrote:
I'm sorry you seem to think I have a nasty attitude. But the original post showed no evidence of having looked for themselves. That in turn made the post seem quite rude and unproductive to me. Of course, that is just my opinion.
And your opinion is wrong. The evidence is in the very fact that I've resorted to the forum to ask the question.
Now at some point, we'll need a solution to this. I'll try Easy Python Decompiler but I suspect it won't work. And I'll keep looking.
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.
4,839 PostsLatest Activity: 6 hours agoRelated Posts
Recent Discussions
- 6 hours ago
- 2 days ago
- 2 days ago