Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

2018 MTS Calendar Contest - posted on 12th Nov 2017 at 7:48 PM
MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Cheat Shortcuts

by plasticbox Posted 22nd Dec 2014 at 12:49 AM - Updated 20th Feb 2015 at 8:25 PM by plasticbox
185 Comments / replies (Who?) - 12 Feedback Posts, 11 Thanks Posts
With the introduction of that 'bb.ignoregameplayunlocksentitlement' monstrosity it really was time for this .. these are some custom shortcuts for TS4 in the form of a loose .py file so they are easy to edit.
  • casf – testingcheats on + cas.fulleditmode
  • d | t | debug [on/off] – testingcheats
  • h [on/off] – headlineeffects
  • m | mo | moo – bb.moveobjects (toggle)
  • ssk | setskill <skill> <level> – stats.set_skill_level <skill> <level>
  • u | unlock – bb.showhiddenobjects + bb.ignoregameplayunlocksentitlement

on/off can be expressed in many ways, like 0/1, on/off, true/false, y/n etc. If you just enter "t" or "h" it will list what the options are.


For a list of shortcuts, type shortcuts:



(casf was added on 2014-12-22, this is not in the original version)


For skill name shortcuts, type ssk or setskill (without any arguments):






Compatibility:

OS X users will probably need 1.4.103 or higher for this to work (aka the patch that made it so that script mods won’t crash your game). See this announcement for more info.


How to install:

Unzip the "shortcuts" folder and put it in /Mods. Do not change the "Scripts" subdirectory, it needs to be named like that. If you want to change the name of the "shortcuts" folder, you need to edit the file name of the .py too so that they are the same. See here. You also need to have script mods enabled in Game Options > Other.


How to edit (if you want):

Open shortcuts.py (after you made a backup) in any text editor and see if you can make sense of it – if you speak any programming language at all, it shouldn't be terribly hard. If all you want is add an existing cheat to the list which does not need any arguments, you can probably copy + paste the moveobjects one, just change the name of the shorthand form/s, the name of your command, and the string it's supposed to pass on. For more "complicated" stuff see the other ones (but when in doubt, better use code by other people as a reference rather than mine). In-game commands that are defined in Python may need to have a | prepended (can't say I understand why this is, but hey, I only "know" Python since yesterday), and Python is very very picky about tidy whitespaces so try to not touch any of that. Save, start game, test. Rinse and repeat and keep banging on it until it does what you want. This works! Really!


The reference I used: https://docs.python.org/3.3/

Plus a bunch of existing code by Maxis and scumbumbo, mgomez' instructions from here, darkkitten's batch script from here and TheHologramMan's unpyc3.py from here. Special thanks to SGEugi for helping me getting this to work specifically in uncompiled form.

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
shortcuts.zip 1.6 KB 60,812 22nd Dec 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:
No Extraction Required (Script Mods):
1. Cut and paste the .zip file(s) 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\
Script mods need to be placed directly in \Mods or one level below that (e.g. \Mods\Scripts) – sub-folders nested any deeper won’t work.
Extraction Required (Everything Else):
1. Use WinRAR (Windows) to extract the .package file(s) from the .rar or .zip file(s).
2. Cut and paste the .package file(s) 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 4 of 8
185 Comments / Replies (Who?) - 99 Feedback Posts, 80 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Pettifogging Legalist!
staff: moderator
Original Poster
#76 Old 5th May 2015 at 9:58 PM
If a cheat is not working "no matter if I'm using the shortcut or typing it out" and the console won't display, you have a different problem than with this mod. Also the patch notes do not mention anything about cheats having changed (which is really something that would be in the notes normally).

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Instructor
THANKS POST
#77 Old 6th May 2015 at 12:46 AM
After taking the shortcuts out the console is behaving normally, however the cheats that I'm trying to use, namely setting skill levels still don't work, so I'm inclined to think that you're right. None of my other mods deal with cheats, only tweaking the game. Thank you for a quick response
Test Subject
THANKS POST
#78 Old 7th May 2015 at 9:57 PM
Thank you for this it makes it a bit more easier to use the cheat codes.
Test Subject
THANKS POST
#79 Old 16th May 2015 at 11:24 PM
I put the mod in my mod manger and it shows up but the shortcuts don't work what should I do? o..o
Pettifogging Legalist!
staff: moderator
Original Poster
#80 Old 16th May 2015 at 11:41 PM
I don't know what a "mod manger" is. I would suggest to simply follow the one-step direction given in the upload post.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Test Subject
THANKS POST
#81 Old 20th May 2015 at 7:00 AM
Thank you so much, must have in my game! :)
Test Subject
DELETED POST
25th May 2015 at 3:31 AM
This message has been deleted by arsenicmoose.
Test Subject
#82 Old 25th May 2015 at 3:35 AM
Can someone tell me how to add the cheats that are not included? careers.promote, enablefreebuild, and so on... I'm not much of a script/code writer. Thanks.
Pettifogging Legalist!
staff: moderator
Original Poster
#83 Old 28th May 2015 at 12:15 AM
See the instructions in the first post.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Test Subject
THANKS POST
#84 Old 28th May 2015 at 4:21 PM
THX
Test Subject
#85 Old 4th Jun 2015 at 12:01 PM Last edited by Nettlejuice : 4th Jun 2015 at 2:02 PM.
Hi, is there a new update for this? It stopped working yesterday, I only have Shrimrod's lighting mod so I don't know what's causing it not to work.
Pettifogging Legalist!
staff: moderator
Original Poster
#86 Old 4th Jun 2015 at 2:14 PM
Was there a new patch yesterday or did you install anything? If so, check that script mods are still enabled.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Test Subject
THANKS POST
#87 Old 5th Jun 2015 at 11:34 AM
Ah, script mods. My game's setting got set back to default after I had to re-install Origin. Sorry, it's working perfectly >.<
Test Subject
DELETED POST
8th Jun 2015 at 8:12 PM
This message has been deleted by MattyLeeT18.
Test Subject
THANKS POST
#88 Old 9th Jun 2015 at 6:50 PM Last edited by Rikhardz : 9th Jun 2015 at 7:17 PM.
I got a problem, I added some commands to the .py file (sims.add_buff e_buff_<inspired, happy, energized, flirty, focused>). But when I go into the game and enter "cow" or "buff" or "cowplant" (Which I set the shortcuts to) it just says that the command is invalid. The thing is, manually typing it in works fine and yes, all the other shortcuts that have been added by default work without a problem.

Also, the sims.add_buff are all written separately ex. sims.add_buff e_buff_Inspired *next row* sims.add_buff e_buff_Focused etc.

I was just wondering if you MIGHT know what is the problem, is there some sort of special way to do this or what? does the def pb_<name> have to be set to something certain for the sims.add_buff to work?

EDIT: This is how the code looks
@sims4.commands.Command('cow', 'cowplant', 'buff', command_type=sims4.commands.CommandType.Live)
def pb_sims(_connection=None):
command = '|testingcheats on'
sims4.commands.client_cheat(command, _connection)
command = 'sims.add_buff e_buff_Inspired'
sims4.commands.client_cheat(command, _connection)
command = 'sims.add_buff e_buff_Happy'
sims4.commands.client_cheat(command, _connection)
command = 'sims.add_buff e_buff_Focused'
sims4.commands.client_cheat(command, _connection)
command = 'sims.add_buff e_buff_Energized'
sims4.commands.client_cheat(command, _connection)
command = 'sims.add_buff e_buff_Flirty'
sims4.commands.client_cheat(command, _connection)

Please, excuse me if it looks like shit or I've fucked something masterfully up, but I'm VERY new to this kind of stuff.

EDIT2: I fixed it by doing the following:

@sims4.commands.Command('cow', 'cowplant', 'buff', command_type=sims4.commands.CommandType.Live)
def pb_sims(_connection=None):
command = '|testingcheats on'
sims4.commands.client_cheat(command, _connection)
command = '|sims.add_buff e_buff_Inspired'
sims4.commands.client_cheat(command, _connection)
command = '|sims.add_buff e_buff_Happy'
sims4.commands.client_cheat(command, _connection)
command = '|sims.add_buff e_buff_Focused'
sims4.commands.client_cheat(command, _connection)
command = '|sims.add_buff e_buff_Energized'
sims4.commands.client_cheat(command, _connection)
command = '|sims.add_buff e_buff_Flirty'
sims4.commands.client_cheat(command, _connection)

I added '|' at the beginning of the sims.add_buff command! Sorry for bothering.
Test Subject
#89 Old 16th Jun 2015 at 5:33 PM Last edited by ehrenglaube : 16th Jun 2015 at 6:09 PM. Reason: added a question
How would I add a command shortcut for something that requires you input a number as well such as the cheat 'sims.give_satisfaction_points {#}'? I mostly do html and css not much for the logic based programming languages XD.

Edit: rather than adding a new post with this I'll add it to the bottom...

For things like 'modifyrelationship {yoursimID} {targetsimID} 50 {relationshipBit}' and 'relationship.add_bit {yoursimID} {targetsimID} {relationshipBit}' how would I do that also?
Test Subject
#90 Old 18th Jun 2015 at 7:03 PM
anyone manage to add the enablefreebuild to the shortcuts? could someone post the code!
Test Subject
THANKS POST
#91 Old 20th Jun 2015 at 7:16 PM
very cool and helpful... thanx
Test Subject
THANKS POST
#92 Old 23rd Jun 2015 at 9:19 PM
Thanks, PB, you're the man.
Test Subject
THANKS POST
#93 Old 24th Jun 2015 at 5:07 PM
thank you :3
Test Subject
#94 Old 28th Jun 2015 at 11:50 AM
I have placed the zipped folder in my mods folder but in game none of the shortcuts will work :/ script mods are enabled and im using the most recent version of the game. any suggetions?
Test Subject
THANKS POST
#95 Old 29th Jun 2015 at 4:51 AM
thanks heaps
Test Subject
#96 Old 1st Jul 2015 at 2:19 PM
Quote:
Originally Posted by orangetictac
I have placed the zipped folder in my mods folder but in game none of the shortcuts will work :/ script mods are enabled and im using the most recent version of the game. any suggetions?



did you work this out as i did the same and cant get it to work this is the first time i added a mod to the sims 4
Test Subject
#97 Old 5th Jul 2015 at 5:14 PM
the game sees the mod but it doesn't work. i don't know why not? it is to bad. I have tried but nothing happens.
Pettifogging Legalist!
staff: moderator
Original Poster
#98 Old 5th Jul 2015 at 7:13 PM
Which exact command do you mean by "it"?

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Page 4 of 8