|
Post by ssbflare on Aug 3, 2020 18:52:58 GMT -5
I'm trying to compile, but it keeps telling me that there's no module called sims4. I tried a quick fix but it made it worse. This si my first time using PyCharm, so I'm really at a loss of what to do here.
|
|
|
Post by MizoreYukii on Aug 3, 2020 23:18:26 GMT -5
I'm trying to compile, but it keeps telling me that there's no module called sims4. I tried a quick fix but it made it worse. This si my first time using PyCharm, so I'm really at a loss of what to do here. Did you extract the Sims 4 files or did you skip that part? The module it is referring to is from the game files, you must extract for the system to understand what you're referencing.
|
|
|
Post by yourenigma on Aug 4, 2020 3:00:52 GMT -5
Can anybody help me? I have two questions, and I'm on Mac.
First question: Is it usr/local/bin/python3 or usr/local/bin/python3.7? Besides 2.x's, usr/local/bin/python3 is the only one I see in the drop down menu of System Interpreter. I looked in the usr/local/bin/, and I see python 3.7. Should choose that one? (I did choose it, but just want to confirm.)
Second question: The decompile doesn't work for me. I only get Process finished with exit code 0.
This is what my settings.py looks like
mods_folder = os.path.expanduser( os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('/', 'Applications', 'The Sims 4.app', 'Contents')
My decompile_all.py
ea_folder = 'EA' if not os.path.exists(ea_folder): os.mkdir(ea_folder)
gameplay_folder_data = os.path.join(game_folder, 'Data', 'Simulation', 'Gameplay') gameplay_folder_game = os.path.join(game_folder, 'Python')
extract_folder(ea_folder, gameplay_folder_data) extract_folder(ea_folder, gameplay_folder_game)
|
|
|
Post by tennek78 on Aug 4, 2020 3:49:09 GMT -5
Hello,
I want to get started with this. I see this python version is not the latest one. Do I stick with 3.7 or can I should I go with the last one 3.8?
TY!
|
|
|
Post by MizoreYukii on Aug 4, 2020 9:32:58 GMT -5
yourenigma I imagine that's the correct one based on the picture he used. Also, "Process finished with exit code 0" is normal, do you mean that it only shows that and nothing else? You seem to have a Mac and I'm not sure if it's supposed to be in Contents or not, but I'd guess no. tennek78 Stick with 3.7 like in the tutorial, Sims 4 does not use 3.8.
|
|
|
Post by plzsaysike on Aug 8, 2020 12:37:30 GMT -5
i finally got it working and i updated an abandoned script mod from mts. is there a tutorial that shows how to make an "always enabled" mod?
|
|
|
Post by SrslySims on Sept 5, 2020 4:13:52 GMT -5
yourenigma I imagine that's the correct one based on the picture he used. Also, "Process finished with exit code 0" is normal, do you mean that it only shows that and nothing else? You seem to have a Mac and I'm not sure if it's supposed to be in Contents or not, but I'd guess no. I am also getting "finished with error code 0" on PC since the last patch. As the decompile_all command usually shows everything that is being decompiled, then finishes with error code 0 to say all is well. But nothing is actually decompiled. When you check the "EA" folder it is empty.
|
|
|
Post by MizoreYukii on Sept 5, 2020 9:10:49 GMT -5
yourenigma I imagine that's the correct one based on the picture he used. Also, "Process finished with exit code 0" is normal, do you mean that it only shows that and nothing else? You seem to have a Mac and I'm not sure if it's supposed to be in Contents or not, but I'd guess no. I am also getting "finished with error code 0" on PC since the last patch. As the decompile_all command usually shows everything that is being decompiled, then finishes with error code 0 to say all is well. But nothing is actually decompiled. When you check the "EA" folder it is empty. You're getting error code 0, the person before was getting exit code 0 which is normal (that day I had opened the program to check as like most I ignore the window 99% of the time), but error is not, but I'm not sure what could be causing the error. But it decompiled just fine for me this patch, so maybe try repairing the game? Check the install locations? I'm not sure what else could be useful for fixing it. I can also send over the decompiled scripts if you can't get it working.
|
|
|
Post by ceviesims on Nov 15, 2020 10:53:42 GMT -5
Can anybody help me? I have two questions, and I'm on Mac. First question: Is it usr/local/bin/python3 or usr/local/bin/python3.7? Besides 2.x's, usr/local/bin/python3 is the only one I see in the drop down menu of System Interpreter. I looked in the usr/local/bin/, and I see python 3.7. Should choose that one? (I did choose it, but just want to confirm.) Second question: The decompile doesn't work for me. I only get Process finished with exit code 0. This is what my settings.py looks like mods_folder = os.path.expanduser( os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('/', 'Applications', 'The Sims 4.app', 'Contents') My decompile_all.py ea_folder = 'EA' if not os.path.exists(ea_folder): os.mkdir(ea_folder)
gameplay_folder_data = os.path.join(game_folder, 'Data', 'Simulation', 'Gameplay') gameplay_folder_game = os.path.join(game_folder, 'Python')
extract_folder(ea_folder, gameplay_folder_data) extract_folder(ea_folder, gameplay_folder_game) I'm also having this issue on mac, same code. It "runs" with exit code 0 but doesn't seem to do anything at all. Am I supposed to store the Script Workplace in a specific place?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 22, 2020 14:00:09 GMT -5
Can anybody help me? I have two questions, and I'm on Mac. First question: Is it usr/local/bin/python3 or usr/local/bin/python3.7? Besides 2.x's, usr/local/bin/python3 is the only one I see in the drop down menu of System Interpreter. I looked in the usr/local/bin/, and I see python 3.7. Should choose that one? (I did choose it, but just want to confirm.) Second question: The decompile doesn't work for me. I only get Process finished with exit code 0. This is what my settings.py looks like mods_folder = os.path.expanduser( os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('/', 'Applications', 'The Sims 4.app', 'Contents') My decompile_all.py ea_folder = 'EA' if not os.path.exists(ea_folder): os.mkdir(ea_folder)
gameplay_folder_data = os.path.join(game_folder, 'Data', 'Simulation', 'Gameplay') gameplay_folder_game = os.path.join(game_folder, 'Python')
extract_folder(ea_folder, gameplay_folder_data) extract_folder(ea_folder, gameplay_folder_game) I'm also having this issue on mac, same code. It "runs" with exit code 0 but doesn't seem to do anything at all. Am I supposed to store the Script Workplace in a specific place? Thanks for this, I'm also on Mac. One of the problems I ran into was the Sims 4 app is not in the traditional Applications location. It was located in /Users/myusername/Applications/. If your app location is the same you can try changing in your settings.py: path = '/Users/yourusername/Applications/' game_folder = os.path.join(path, 'The Sims 4.app', 'Contents) Then run your decompile script
|
|
raynam
New Member
hey
Posts: 9
|
Post by raynam on Nov 22, 2020 19:58:50 GMT -5
hi, guys, i was wondering if i could get some help. I'm trying everything but nothing is working. I'm on a Mac
settings.py:
import os
creator_name = 'Rayna' mods_folder = os.path.expanduser( os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
path = '/Users/*myname*/Applications/' game_folder = os.path.join('path', 'The Sims 4.app', 'Contents')
My decompile_all.py
from Utilities import extract_folder from settings import *
ea_folder = 'EA' if not os.path.exists(ea_folder): os.mkdir(ea_folder)
gameplay_folder_data = os.path.join(game_folder, 'Data', 'Simulation', 'Gameplay') gameplay_folder_game = os.path.join(game_folder, 'Game', 'Bin', 'Python')
extract_folder(ea_folder, gameplay_folder_data) extract_folder(ea_folder, gameplay_folder_game)
I keep on getting this error message
/usr/local/bin/python3.9 "/Users/*myname*/Downloads/Sims 4 Python Script Workspace/decompile_all.py" Traceback (most recent call last): File "/Users/*myname*/Downloads/Sims 4 Python Script Workspace/decompile_all.py", line 1, in <module> from Utilities import extract_folder File "/Users/*myname*/Downloads/Sims 4 Python Script Workspace/Utilities/__init__.py", line 6, in <module> from Utilities.unpyc3 import decompile File "/Users/*myname*/Downloads/Sims 4 Python Script Workspace/Utilities/unpyc3.py", line 77, in <module> SETUP_LOOP, BREAK_LOOP, CONTINUE_LOOP, NameError: name 'SETUP_LOOP' is not defined
Process finished with exit code 1
I was wondering if anyone can help, please?
|
|
|
Post by andrew on Nov 22, 2020 20:14:50 GMT -5
Hey raynam , the error message shows that you are using the wrong version of Python. Make sure that you download 3.7, and repeat step 6 to make sure that PyCharm is using 3.7 instead of 3.9. Also, in the line where you have set your game folder in settings.py, you should not have quotes around path since it is a variable name. game_folder = os.path.join( 'path ', 'The Sims 4.app', 'Contents')
|
|
raynam
New Member
hey
Posts: 9
|
Post by raynam on Nov 22, 2020 20:29:21 GMT -5
Hey raynam , the error message shows that you are using the wrong version of Python. Make sure that you download 3.7, and repeat step 6 to make sure that PyCharm is using 3.7 instead of 3.9. Also, in the line where you have set your game folder in settings.py, you should not have quotes around path since it is a variable name. game_folder = os.path.join( 'path ', 'The Sims 4.app', 'Contents') thank you so much i will try this
|
|
raynam
New Member
hey
Posts: 9
|
Post by raynam on Nov 22, 2020 21:19:13 GMT -5
im having trouble opening script files on the software. how do i do that?
|
|
|
Post by andrew on Nov 23, 2020 2:02:28 GMT -5
raynam I'm not sure that I understand the question. Which script files in which software? Are you getting an error message?
|
|