Forum Discussion

SimGuruModSquad's avatar
7 years ago

Python Upgrade Coming Soon

Hi everyone,

I want to give you a heads up that in an upcoming release, we will be upgrading the version of Python used by the game. We currently use Python 3.3.5 and will be moving to Python 3.7.0. Once this change is released, all compiled script mods will completely stop working. Note that in this new version of Python, the .pyo extension is replaced by .pyc, see https://www.python.org/dev/peps/pep-0488/

We know this will have impact on your script mod authoring pipelines so wanted to provide notice in advance so you can be ready for the change when it arrives. To assist, I’ve attached the Python scripts from the currently released version of the game (v1.46.18) recompiled under Python 3.7.0.

If all goes as planned, this change should arrive in November.

Note that there will not be any fundamental changes to tuning data, other than the typical types of changes we make to tuning for patches.

Thanks!
SGMS

34 Replies

Replies have been turned off for this discussion
  • Hi all,

    CC will not be affected. Only mods that contain files with the .ts4script extension are affected. CC typically only contain .package files.

    I am going to close this thread as it has served its purpose. We have a month to get this sorted out, so recommend that everyone hold tight and let the technical folks work through it. If you are interested in the nitty gritty then check out the the Deaderpool discord, where some promising discussions are happening.

    I will post updates to this thread as things develop, along with updates about timing of the patch. So keep an eye out here for further announcements.

    Thanks,
    SGMS

  • Hi all,

    Heads up that this Python upgrade will be included as part of the Base Game patch for Get Famous. That pack is released on November 16, as many of you know the Base Game patches usually arrive a few days prior to the pack release. So expect the patch to arrive around that time.

    -SGMS
  • Hi all,

    Update. There are two Python 3.7 decompilation efforts underway:

    @_A_ has published unpyc37 which is based on unpyc3 and is available here along with updated instructions, here.

    @Fogity is working on a new decomoplier, which is available here.

    Both efforts have made great progress and at this point it looks like decompilation will be as good or maybe even better than with Python 3.3.5. And they continue to be worked on, so will only improve. Great news.

    Huge thanks to everyone involved in these projects!

    -SGMS
  • Follow up: The update containing the Python update has been out for a week now and script modders were able to update their mods quickly, resulting in minimal disruption.

    This is all due to the hard work from people in the community that ensured the tools were ready when the update was released. Thanks all!

    -SGMS

About The Sims 4 Technical Issues - PC

PC players get help with their technical issues in The Sims 4 here.50,205 PostsLatest Activity: 4 months ago