Home | Download | Discussion | Help | Site Map | New Posts | Sign in
MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Picked upload! [Script Mod] enable advanced debug/cheat interactions

by clown Posted 13th Sep 2014 at 9:19 PM - Updated 14th Sep 2014 at 12:53 AM by leefish
827 Comments / replies (Who?) - 17 Feedback Posts, 8 Thanks Posts
Picked Upload! This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
This mod is a small script that patches a function in the maxis game code to enable additional debug cheats. It also always enable cheats without needing to use the testingcheats command.
The python source is included as it provides an example of how to replace methods and functions in the maxis code.
I do not guarantee that the mod won't break with future updates of the game or that I'll be able to be arsed to fix it. But hey, you have the source :p

Unlike the original less than subtle method of modifying python33.dll to force the __debug__ variable to true, this one doesn't seem to be suffering from any game breaking side effect (at least it didn't during my extremely thorough 20 seconds test of getting a sim to fish and then successfully cancelling it).

Installation: put the zip file in your Mods directory. The zip also contains the .py source.
Make sure that script mods are enabled in game options.

Update: Now doesn't require to use the testingcheats console command.

Below is the original post describing the original less than satisfactory python dll editing method, in case someone is interested for some reason:



So I was looking into the decompiled python code and I noticed that a lot of interesting things are enabled when the global __debug__ variable is set to true.

It turns out that it is a builtin python variable normally set by python when run in non-optimized mode. Sims 4 helpfully ships python as a separate DLL from the main binary, so we can easily do some good ole hex editing of the code in that dll to force this variable to be set.

Steps:
1. Get HxD (http://mh-nexus.de/en/hxd/).
1. Locate your sims 4 directory, which should be something something Origin Games/The Sims 4
2. Go into the Game/Bin directory.
3. Make a backup copy of Python33.dll
4. Launch HxD
5. Drag and drop Python33.dll into HxD
6. Press ctrl+f to bring up the search dialog
7. In "datatypes", select "hex-values"
8. In "search for", enter "0f45fd57"
9. The four bytes "0F 45 FD 57" will be highlighted. Click on the "45".
10. type "44", so that those bytes now read "0F 44 FD 57"
11. Save

Restart the game.

In the game a bunch of new debug interactions should now be available by shift clicking on sims, objects or directly on the lot, allowing to manipulate traits, emotions, spawn sims, break things, start fires etc.
They are always available without having to enter testingcheats true in the console, until you restore the original Python33.dll file.

Doing this is also probably a useful step towards enabling the commands to reload scripts on the fly. There are lots of console commands that are flagged as debug only, but even after doing the above they don't seem to work. This will need more investigation.
Type: Other

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 4
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
EnableDebugCheats.zip 2.6 KB 172,642 13th Sep 2014
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:
1. Download: Click the File tab to see the download link. Click the link to save the .rar or .zip file(s) to your computer.
Read the upload description for installation instructions. If nothing else is specified, do the following:
2. Extract: Use WinRAR (Windows) to extract the .package file(s) (if included, ts4script as well) from the .rar or .zip file(s).
3. Cut and paste the .package file(s) (if included, ts4script as well) into your Mods folder
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\Electronic Arts\The Sims 4\Mods\
  • Windows Vista/7/8/8.1: Users\(Current User Account)\Documents\Electronic Arts\The Sims 4\Mods\

Need more information?
  • Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
  • If you don't have a Mods folder, just make one.
  • Mod still not working? Make sure you have script mods enabled
 
Page 33 of 34
827 Comments / Replies (Who?) - 532 Feedback Posts, 262 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Field Researcher
#801 Old 27th Jun 2018 at 6:00 PM
Quote:
Originally Posted by spivoski
Will this mod clash with the UI Cheat Extension mod, or can they be used together?

I'm not sure. I have yet to reinstall UI Cheats Extension since the patch. I'll ask.
Test Subject
#802 Old 8th Jul 2018 at 12:16 AM
Default Gnome Interactions doesn't work - The Sims 4 Seasons
Hi, when I click on a Gnome to complete a tradition, the option "Appease the Gnome", do not show up in the game, I only see "View" and "Give name", please help me, because I need this mod so bad. Thank you so much!
Field Researcher
#803 Old 8th Jul 2018 at 1:04 AM
Quote:
Originally Posted by yasminaj
Hi, when I click on a Gnome to complete a tradition, the option "Appease the Gnome", do not show up in the game, I only see "View" and "Give name", please help me, because I need this mod so bad. Thank you so much!

I don't know if this Mod can issues like that. All this Mod does is unhide hidden debug interactions; it does not hide any existing interactions. Did you make sure to download the version on page 30? http://linna.modthesims.info/downlo...244#post5215244
Lab Assistant
THANKS POST
#804 Old 8th Jul 2018 at 3:19 PM
Thank you, and for the other info to! :)
Test Subject
THANKS POST
#805 Old 17th Jul 2018 at 7:13 PM
Hello, i have an issue with this mod. It appears to break all interactions for me - no matter what sim or household i select, i can't interact with anything (even shift interactions after enabling cheats don't work). Is there something i could do to fix this?
Field Researcher
THANKS POST
#806 Old 25th Jul 2018 at 9:15 AM
@weerbesu, could you update this mod? Interaction "Delete objects" not working after seasons patch :<
Test Subject
THANKS POST
#807 Old 5th Aug 2018 at 10:17 AM
@weerbesu, the link on page 30 does not work. Could you please put another link to your updated EnableDebugCheats up again? You are fantastic!
Field Researcher
#808 Old 7th Aug 2018 at 11:38 PM
Quote:
Originally Posted by Forgetful2much
@weerbesu, the link on page 30 does not work. Could you please put another link to your updated EnableDebugCheats up again? You are fantastic!


The link works for me - I just downloaded it. Try it again. I'm using FireFox.
Lab Assistant
THANKS POST
#809 Old 17th Aug 2018 at 9:17 PM
Does anybody want update of dll patch for debug mode?
I am working on it.
Field Researcher
#810 Old 18th Aug 2018 at 4:05 AM
I do if you don't mind sharing it.
Lab Assistant
THANKS POST
#811 Old 18th Aug 2018 at 10:51 PM
I can't post any tutorial on MTS, because evil MTS admins blocked me any functional to Upload and Share tutorials to MTS, so, I published it on my site - https://artfun.pw/post/109.html . I hope, that MTS admin will not block me again for sharing info on my site and for share link to my site on MTS .

For admins: Really, man, don't block me just only for info sharing )))))))))))))))))))))) I do it only as my hobby.
Test Subject
THANKS POST
#812 Old 11th Sep 2018 at 10:04 PM
Could you please update this? It causes some last exception error.
Lab Assistant
#813 Old 26th Oct 2018 at 1:00 AM
Quote:
Originally Posted by ArtUrlWWW
I can't post any tutorial on MTS, because evil MTS admins blocked me any functional to Upload and Share tutorials to MTS, so, I published it on my site - https://artfun.pw/post/109.html . I hope, that MTS admin will not block me again for sharing info on my site and for share link to my site on MTS .

For admins: Really, man, don't block me just only for info sharing )))))))))))))))))))))) I do it only as my hobby.


Hi Art! Could you upload the modified python file already created somewhere in your tutorial?
Theorist
#814 Old 13th Nov 2018 at 9:01 PM
A quick update for today's game patch (Nov 13, 2018)
Download - please read all instructions before downloading any files!
File Type: zip EnableDebugCheats.zip (1.8 KB, 1062 downloads)
Test Subject
#815 Old 14th Nov 2018 at 3:13 PM
Quote:
Originally Posted by scumbumbo
A quick update for today's game patch (Nov 13, 2018)
why the destroy objects does not work?
Test Subject
#816 Old 14th Nov 2018 at 3:34 PM
Quote:
Originally Posted by potmagi
why the destroy objects does not work?


To use cheats disabled by EA again, you will need to use this mod, already upgraded to patch 1.47.
https://www.patreon.com/posts/cheat-fix-for-22697405

Hello!
My tumblr and blogspot where I also tell the story of my sims. Come visit me!
Test Subject
#817 Old 15th Nov 2018 at 5:45 AM
Quote:
Originally Posted by scumbumbo
A quick update for today's game patch (Nov 13, 2018)


THX A LOT!
Test Subject
#818 Old 16th Nov 2018 at 7:37 AM
Awesome!! Love this mod, thanks scumbumbo
Test Subject
#819 Old 16th Nov 2018 at 2:37 PM
Thanks for your hard work scumbumbo ... but i have a problem .. i can not find the buttons Sorry my english is bad and i hope you understand me
Field Researcher
#820 Old 17th Nov 2018 at 1:26 AM
Quote:
Originally Posted by Angie227
Thanks for your hard work scumbumbo ... but i have a problem .. i can not find the buttons Sorry my english is bad and i hope you understand me

Make sure Script Mods are enabled in the game options. In game, you need to shift-click on the ground, on Sims, or on objects to get the options.
Test Subject
#821 Old 17th Nov 2018 at 1:38 PM
Im experiencing a bug, that when I click on another sim and choose the tab "cheat sim info" I cannot delete/modify his moods and traits because the check mark to complete my selection is missing.
Does anyone else have this problem?
Test Subject
#822 Old 17th Nov 2018 at 1:48 PM
Quote:
Originally Posted by KataTC
Im experiencing a bug, that when I click on another sim and choose the tab "cheat sim info" I cannot delete/modify his moods and traits because the check mark to complete my selection is missing.
Does anyone else have this problem?


I have this problem too
Lab Assistant
#823 Old 17th Nov 2018 at 4:20 PM
Quote:
Originally Posted by scumbumbo
A quick update for today's game patch (Nov 13, 2018)


OMG You best modder thank you very much
MTS2 Hot Pepper
#824 Old 17th Nov 2018 at 5:32 PM
Quote:
Originally Posted by scumbumbo
A quick update for today's game patch (Nov 13, 2018)

thanks a lot you are so quick
I have LastExc's about this string in txt file so something wrong with that in GetF.

Currently playing Sims 4 full collection. (and fixing my mods folder)
Field Researcher
THANKS POST
#825 Old 18th Nov 2018 at 12:42 AM
We will be getting a better updated one? I can't remove moodlets with this
Page 33 of 34