MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

[Script Mod] enable advanced debug/cheat interactions

by clown Posted 13th Sep 2014 at 8:19 PM - Updated 13th Sep 2014 at 11:53 PM by leefish
858 Comments / replies (Who?) - 20 Feedback Posts, 3 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

Size: 2.6 KB · Downloads: 202,708 · 13th Sep 2014
2.6 KB 202,708 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
 
858 Comments / Replies (Who?) - 556 Feedback Posts, 268 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 30 of 35
Test Subject
#726 Old 21st Feb 2017 at 5:38 PM
Default Thankssss
Quote:
Originally Posted by naomeh
1. Make sure you have most recent version of MC Command Center. (Can't be sure instructions will work otherwise.)
2. Go in game
3. Click on a computer in the game and choose MC Command Center
4. Choose MCCC Settings at the top
5. Click on Notification/Console/Menu Settings
6. Click on Console Command Settings
7. Then pick Debug Commands in Cheats and then Enabled
8. Restart your game!

Hope this works

Thankss sooo muchhh , i really appreciate it <3 :D
Test Subject
#727 Old 22nd Feb 2017 at 4:42 PM
Note to some of the folks having issues with this mod since the update - please make sure you have used 7zip to unzip the zip file into your mod folder. The unzip will create a new folder in the mod folder with the mod files in it. Previously it was okay to just drop the zip file into the mods folder. This is apparently no longer the case.

I just wanted to share what made this work for me, because all the posts suggesting I load MC Command center didn't really work for me as I simply didn't want to deal with remembering how to spell "testingcheatsenabled true" at 3 am. While MCCC is an awesome mod, it just does way more than I wanted.

For a good time call...er...click www.sims2workshop.com!
Lab Assistant
#728 Old 23rd Feb 2017 at 11:39 AM
Quote:
Originally Posted by weerbesu
I made an updated version that would work for the current game version. I tested it in my game and it worked without problems. If anyone is interested you can try this (note that unlike the original mod, you need to unzip it).


Hey, can I still use this?
Test Subject
THANKS POST
#729 Old 31st Mar 2017 at 2:24 PM
wow i needed this
Test Subject
#730 Old 4th Apr 2017 at 3:30 PM Last edited by tmp30102016 : 13th Apr 2017 at 8:53 PM.
The mod (weerbesu's update ) still works with my game (March 27th, 2017 Patch)
Test Subject
#731 Old 26th May 2017 at 3:10 AM
Quote:
Originally Posted by weerbesu
I made an updated version that would work for the current game version. I tested it in my game and it worked without problems. If anyone is interested you can try this (note that unlike the original mod, you need to unzip it).


After the May 25 patch, this seems to prevent the "Vampire" menu from showing up on Vampire sims.
Field Researcher
#732 Old 26th May 2017 at 7:08 PM
Quote:
Originally Posted by dalekgt
After the May 25 patch, this seems to prevent the "Vampire" menu from showing up on Vampire sims.


Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.
Download - please read all instructions before downloading any files!
File Type: zip EnableDebugCheats.zip (1.2 KB, 6110 downloads)

ΔΤΔ
Field Researcher
THANKS POST
#733 Old 26th May 2017 at 9:05 PM
Thank you so much, this mod and the UI mod of yours really make my game. Let me know if you want any donations. I am always happy to contribute.
Test Subject
#734 Old 27th May 2017 at 2:15 AM
This is blocking most of the vampiric power interactions on other sims in TS4
Mad Poster
#735 Old 28th May 2017 at 6:00 AM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.


Thank you for the updates! Much appreciated.

Resident member of The Receptacle Refugees
Let's help fund mammograms for everyone. If you want to help, Click To Give @ The Breast Cancer Site Your click is free. Thank you.
Test Subject
DELETED POST
28th May 2017 at 4:25 PM
This message has been deleted by tauri555.
Test Subject
#736 Old 29th May 2017 at 11:35 PM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.
Thank you.
Lab Assistant
THANKS POST
#737 Old 13th Jun 2017 at 9:13 PM
On my way to eradicate a %$#@! fruitcake sitting in the middle of the street....I keep forgetting the dumb thing's there so I haven't tried having a Sim pick it up. I'll be delighted just to take care of it myself lol
Lab Assistant
#738 Old 14th Jun 2017 at 9:24 AM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.


Thanks so much firstly for salvaging / adopting this mod, also for keeping it updated (just checked in, as my butler interaction had vanished.. ) Cheers!
Criminal Mastermind
retired moderator
#739 Old 17th Jun 2017 at 9:43 PM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.


Thank you for updating this mod because I ran into the same problem in my game.
Test Subject
#740 Old 30th Jun 2017 at 3:56 PM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.

Thank you very much! I was so sad when I saw it wasn't working with the vampire pack and thought I wouldn't be able to use it anymore.
Test Subject
#741 Old 11th Jul 2017 at 6:00 PM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.


In the original version of this mod there was an option to "Claim Ownership" on an item. Is there any way to enable that in your updated mod? Is that debug cheat obsolete? Is there a way I can hack it back into my game? I miss this so much~

That being said, THANK YOU! for keeping this mod updated <3
Test Subject
#742 Old 17th Jul 2017 at 2:38 AM
I have tried multiple variations of this mod from different people, and followed the instructions and I still cannot get my mailbox off the sidewalk. Is this because there was another patch or update since this last mod release?
Test Subject
#743 Old 30th Jul 2017 at 10:14 PM
Please Please Update this mod. I miss adding more Traits to my sim the hidden traits help out alot.
Test Subject
#744 Old 11th Aug 2017 at 8:00 AM
Apparently I'm having issue when activating this mod to my game, it conflicts with butler function causing "butler" bubble option disappear so, i removed from my game even though i really like this mod. I wish future fix/update will solve this problem.
Test Subject
#745 Old 2nd Sep 2017 at 1:17 PM
Quote:
Originally Posted by weerbesu
Yeah it was doing the same to my game too. I made an updated version so this should no longer be the case.

With the newest patch the funktion seems to have broken again and also some of the cheating functions like lock needs, still required me to enable testingcheats manually even though the menu would appear when using [shift] + clicking.
Lab Assistant
#746 Old 5th Sep 2017 at 10:22 PM
The functions are not working like delete books and so on, think it needs updating since last patch.
Field Researcher
#747 Old 16th Oct 2017 at 12:06 PM
I just downloaded this to test in my game. Most nothing is working. Lots of blank bubbles and the debug cheat "make another Sim selectable" is not even there. I downloaded it just because of this because in the original it shows in the pictures and lots of other debug stuff, but half of it is missing in the updated version by weerbesu. Too bad
And yes, I added testingcheats true first, otherwise nothing works.
Lab Assistant
#748 Old 8th Nov 2017 at 4:17 AM Last edited by Sashasonic : 16th Nov 2017 at 5:22 AM.
Weerbesu's Update
The mod still works fine for me.. I'll have to wait and see; but no problems so far since the pets update..

Edit: 13 Nov: the mod has been listed on Sims VIP as interfering with some pets interactions, apart from not seeing the 'have custom snack', I haven't come across anything else, apart from interacting with dogs but with cats seems to work [ @Weerbesu ] hopefully will have time to check it out.

(nb: Weerbesu's latest update is just earlier on this page)
Test Subject
DELETED POST
11th Nov 2017 at 2:25 AM
This message has been deleted by MzzSimson.
Page 30 of 35