|
Post by tawneyceres on Jun 14, 2020 13:12:31 GMT -5
ALTHOUGH I SOLVED ALL OF MY PROBLEMS I FIGURED I'D LEAVE MY COMMENTS HERE, IN CASE SOMEONE ELSE RUNS INTO THE SAME PROBLEMS AND IS LOOKING FOR HELP
When I try to decompile all, I keep getting th error
File "C:/Users/X/Documents/Mod Creating/Projects/Sims 4 Python Script Workspace/decompile_all.py", line 1, in <module> from Utilities import extract_folder File "C:\Users\X\Documents\Mod Creating\Projects\Sims 4 Python Script Workspace\Utilities\__init__.py", line 6, in <module> from Utilities.unpyc3 import decompile File "C:\Users\X\Documents\Mod Creating\Projects\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
EDIT: Alright, I figured that one out, it was because I was using Python 3.8.3 instead of Python 3.7.0.
However now when I try to decompile all I get is the following and nothing shows up in the sub folders?
"C:\Users\X\AppData\Local\Programs\Python\Python37-32\python.exe" "C:/Users/I T/Documents/Mod Creating/Projects/Sims 4 Python Script Workspace/decompile_all.py"
Process finished with exit code 0
EDIT 2: Figured that one out as well, turns out I didn't need to translate Documents and Program Files into my native language, even though my Computer works in my native language and not in English.
|
|
|
Post by tiramisupie on Jun 23, 2020 21:16:26 GMT -5
Hi everyone! I've followed the tutorial, unfortunately I'm still stuck on step 8 (decompiling). My EA subfolders are still empty and in the log it just said
Process finished with exit code 0
I'm using python 3.7. I'm using a Macbook, letting you know just in case that changes anything. Also, I tried to change the game_folder path to try and fix it because it previously used 'Program files' and Mac doesn't have program files so I changed it to
game_folder = os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4')
And it still hasn't fixed the issue. Am I fixing the wrong thing or am I missing something? Thanks a lot!
|
|
|
Post by MizoreYukii on Jun 23, 2020 21:44:10 GMT -5
Hi everyone! I've followed the tutorial, unfortunately I'm still stuck on step 8 (decompiling). My EA subfolders are still empty and in the log it just said Process finished with exit code 0I'm using python 3.7. I'm using a Macbook, letting you know just in case that changes anything. Also, I tried to change the game_folder path to try and fix it because it previously used 'Program files' and Mac doesn't have program files so I changed it togame_folder = os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4')And it still hasn't fixed the issue. Am I fixing the wrong thing or am I missing something? Thanks a lot! Based on what I can gather from Google, Programs for us is Applications for you. And Sims 4 documents location is definitely not where you want to be since that's just your screenshots, mods, etc. folder.
|
|
|
Post by kellmachine on Jun 25, 2020 23:31:17 GMT -5
Hello everyone! My name is kellmachine and I am new to the site and to modding in general! I took a Python course last year, but I have never created a script in Python before. This is the error message I am receiving after following all the instructions: C:\Users\alexa\AppData\Local\Programs\Python\Python37\python.exe "C:/Program Files (x86)/Origin Games/The Sims 4/Projects/Sims 4 Python Script Workspace/My Script Mods/Example Mod/compile.py" Traceback (most recent call last): File "C:/Program Files (x86)/Origin Games/The Sims 4/Projects/Sims 4 Python Script Workspace/My Script Mods/Example Mod/compile.py", line 5, in <module> compile_module(creator_name, root, mods_folder) File "C:\Program Files (x86)\Origin Games\The Sims 4\Projects\Sims 4 Python Script Workspace\Utilities\__init__.py", line 62, in compile_module shutil.copyfile(ts4script, ts4script_mods) File "C:\Users\alexa\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 121, in copyfile with open(dst, 'wb') as fdst: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\alexa\\Documents\\Electronic Arts\\The Sims 4\\Mods\\Kellmachine_Example Mod.ts4script'
Process finished with exit code 1 I figured there is something wrong with the paths and the folders I have my files saved in, but I can't figure out exactly what's going on. Thanks in advance for your help!
|
|
|
Post by tiramisupie on Jun 29, 2020 21:25:49 GMT -5
Hi everyone! I've followed the tutorial, unfortunately I'm still stuck on step 8 (decompiling). My EA subfolders are still empty and in the log it just said Process finished with exit code 0I'm using python 3.7. I'm using a Macbook, letting you know just in case that changes anything. Also, I tried to change the game_folder path to try and fix it because it previously used 'Program files' and Mac doesn't have program files so I changed it togame_folder = os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4')And it still hasn't fixed the issue. Am I fixing the wrong thing or am I missing something? Thanks a lot! Based on what I can gather from Google, Programs for us is Applications for you. And Sims 4 documents location is definitely not where you want to be since that's just your screenshots, mods, etc. folder. Ah okay, that explains a lot! I've fixed it now and its working. Thank you!
|
|
|
Post by MizoreYukii on Jul 7, 2020 11:00:31 GMT -5
I'm still stuck on create your own script mod step 6 help Explain exactly what the problem is and what you can't get working in detail, then leave it so people can see it instead of deleting it.
|
|
|
Post by shenanigans4sims on Jul 8, 2020 16:07:16 GMT -5
Anyone know how to fix this error? When I compile the script, it's trying to output it to the correct location but is adding extra "\"'s which causes the error. I'm still able to just copy the compiled script to my mods folder so it's not a big deal. But I would be grateful to not have to do that extra step.
|
|
|
Post by hellzgaming on Jul 10, 2020 3:36:55 GMT -5
Each time i type in "myfirstscript" in the cheats section of the game, it isn't working. I'm not sure where i went wrong... edit: I got it working now Im going through the same problem. It tells me “unable to execute command”. But when I start my game my example script shows. Any help would be welcomed. edit: lol nvm got it
|
|
|
Post by sjeff87 on Jul 13, 2020 18:56:00 GMT -5
Great tutorial!
The command mod works no problem. How can I make it so the code keeps repeating throughout the game. I tried using loops like while and until but then the whole game freezes.
Regards, Sjeff
EDIT: I also tried using Automation instead of Live to no avail
command_type=sims4.commands.CommandType.Automation
EDIT2: Got it, you need to use alarms.add_alarm() to create repeating code
|
|
|
Post by muniipanda on Jul 20, 2020 19:18:54 GMT -5
So I'm very new to modding and I'm having a nightmare right now. Literally nothing is working for me and no matter how many hours of searching I do nothing works. I have little experience with Python but I am experienced with coding in general, having taken several java courses in the past.
So... where to start. In example_mod.py there is a red line under import sims4.commands. No module named sims4. There is also a red line under Utilities, compile_module, and settings inside compile.py. I'm just ready to give up because I can't even get the IDE to work.
When I try to install Utilities or settings, I get the message:
"ERROR: Could not find a version that satisfies the requirement Utilities (from versions: none) ERROR: No matching distribution found for Utilities"
I followed the tutorial and I just can't figure anything out... been at it for 3 hours now. Any help would be appreciated.
Pics: imgur.com/a/bEkyWOz
My Discord: 𝓟𝓪𝓷𝓭𝓪#2321
|
|
|
Post by morgana1 on Jul 21, 2020 7:59:18 GMT -5
Great tutorial,
Now I know how create a command script.
I have done a script that activate a trait when a sim have more to 200000 simoleons, and this scipt work perfectly when I write the command "millionary". But I have a problem, I would like that this script is executed when some sim win simoleons or if it's impossible I would like that the script is executed allways at start of the game.
On internet I have only found how execute a script using a command (cntrl+shift+c).
Please, I need help, I'm desperate.
Thanks for all
|
|
|
Post by sjeff87 on Jul 23, 2020 2:49:17 GMT -5
Anybody has an idea on how to get the total followers a sims has on social media / simstagram? Solved: link
So I'm very new to modding and I'm having a nightmare right now. Literally nothing is working for me and no matter how many hours of searching I do nothing works. I have little experience with Python but I am experienced with coding in general, having taken several java courses in the past. So... where to start. In example_mod.py there is a red line under import sims4.commands. No module named sims4. There is also a red line under Utilities, compile_module, and settings inside compile.py. I'm just ready to give up because I can't even get the IDE to work. When I try to install Utilities or settings, I get the message: "ERROR: Could not find a version that satisfies the requirement Utilities (from versions: none) ERROR: No matching distribution found for Utilities" I followed the tutorial and I just can't figure anything out... been at it for 3 hours now. Any help would be appreciated. Pics: imgur.com/a/bEkyWOz My Discord: 𝓟𝓪𝓷𝓭𝓪#2321 It seems to me that you have opened the wrong folder/directory, as in probably a level to high. See link
Great tutorial, Now I know how create a command script. I have done a script that activate a trait when a sim have more to 200000 simoleons, and this scipt work perfectly when I write the command "millionary". But I have a problem, I would like that this script is executed when some sim win simoleons or if it's impossible I would like that the script is executed allways at start of the game. On internet I have only found how execute a script using a command (cntrl+shift+c). Please, I need help, I'm desperate. Thanks for all I think this is done with injection but I'm not 100% sure. Maybe someone else knows more about this or maybe try creating a topic in the "Creators Help" forum. Regards, Sjeff
|
|
|
Post by hellzgaming on Jul 26, 2020 17:11:37 GMT -5
Hello everyone! Is it possible to put the careers in a drop list box?
|
|
|
Post by plzsaysike on Jul 29, 2020 13:47:05 GMT -5
i cant seem to get it saved as a ts4script file, i ran the compile file
|
|
|
Post by senshisun on Jul 31, 2020 16:45:46 GMT -5
I managed to start decompiling, but there wasn't enough space on my hard drive, so I stopped it and moved the whole Sims 4 Python Script Workspace folder to my second drive. This seems to have messed with the file directories in settings.py. The Sims 4 Python Script Workspace is now in D:/Sims 4 Projects. mods_folder = os.path.expanduser( os.path.join('C:', 'Users', 'ThisUser', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('D:', 'SteamLibrary', 'steamapps', 'common', 'The Sims 4') Now it fails to decompile. I wish the decompiler had exceptions so I could figure out which path is incorrect. When I was on the other drive, this worked. mods_folder = os.path.expanduser( os.path.join('~', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('D:', 'SteamLibrary', 'steamapps', 'common', 'The Sims 4') mods_folder = os.path.join('C:', 'Users', 'ThisUser', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods')
mods_folder = os.path.expanduser( os.path.join('C:', os.sep, 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
I am on Windows using Python 3.7.0 EDIT: SOLVED! I put a bit of a debugger in decompile_all.py, based on the EA file hadling.. # replacing the old "if not os.path.exists(ea_folder):" block if not os.path.exists(ea_folder): print("EA folder missing!") os.mkdir(ea_folder) if not os.path.exists(mods_folder): print("Mods path missing!") if not os.path.exists(game_folder): print('Game path missing!')
That told me that the mods_folder was fine and the issue was with the game_folder. This is the setting that worked: mods_folder = os.path.expanduser( os.path.join('C:', 'Users', 'ThisUser', 'Documents', 'Electronic Arts', 'The Sims 4', 'Mods') )
game_folder = os.path.join('D:', os.sep, 'SteamLibrary', 'steamapps', 'common', 'The Sims 4')
|
|