A downloadable mod

[last update: 20 jul 2021 - nonessential, it just adds a debug function]

So EA decided that nobody would ever have an output in the cheat console with over 1023 characters, and any text longer than that is simply cut off. It's rarely noticeable but it came up while testing riv_rel so I decided to see what I could do, and I've ended up with a small script!

This mod will split up the text shown by the cheat console into pieces of at most 1023 characters, so (while there are some awkward line breaks, and you might need to scroll) you'll be able to see all the text. I've made two versions, so only use one - the difference is purely aesthetic: the dots one will have ellipses (...) when the text has been broken up, and the no dots one has no ellipses.

Quick graphic, using a very, very complicated relationship as an example:

Test function (new!):

The command riv_uco_test gives an output that's slightly too long - if the mod's working correctly, then it looks like this with the dots version (and similar with the no dots one):

Conflicts (unlikely):

As this mod replaces some code, it will conflict with any mod that replaces the following function:

  • sims4.commands.cheat_output, which displays text to the cheat console

Mods giving some kind of cheat output will be fine, since they just send text to this function instead of overwriting it.

How it works (not essential reading dw):

The original sims4.commands.cheat_output function runs a couple checks and then sends the text to another function -_commands.output - that is inaccessible (as far as I know) and imposes this character limit.

The no dots version will also check if the number of characters is over the limit, and if so it splits the text (at the last space before this limit so that words aren't split, or if there are no spaces it cuts off at 1023), sending the first part to _commands.output and the second part to sims4.commands.cheat_output.

The dots version does the same thing, but it splits at 1020 characters, sending '<first part>...' to _commands.output, and '...<second part>' to sims4.commands.cheat_output.

 Since some text is removed each time, eventually the input is under 1023 characters, so you won't face any issues with infinite recursion (it won't keep outputting text forever).

Download

Download
riv_unlimited_cheat_output-dots.ts4script 1 kB
Download
riv_unlimited_cheat_output-no_dots.ts4script 1 kB

Install instructions

You only need one of these files! Put it straight in your Mods folder (or one subfolder deep).

Leave a comment

Log in with itch.io to leave a comment.