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

XML Dump Script

by scumbumbo Posted 14th Dec 2018 at 7:31 AM
3 Comments / replies (Who?) - 1 Feedback Posts, 2 Thanks Posts
This script is primarily for Mac game modders

Description

This script will dump all of The Sims 4 game XML into the xmldump subfolder of your Electronic Arts game documents folder. This is primarily useful for modders on Mac computers where the more advanced Windows tools XML Extractor or Sims 4 Studio are unable to provide the game XML for modding purposes.

The extracted XML files are very basic, the script is unable to produce comments with strings and cross reference names and it cannot access and dump the Jazz animation files. But since it runs as a Python script within the game it does allow Mac users to get the game XML without having to deal with using another computer, WINE, Parallels or other methods of attempting to get the Windows programs to run.

Important Notes

Since this is a new technique for extracting the game XML there may be some files which have errors in them (the only likely problem I can think of might be some invalid XML characters in the output) or possibly even some missing files. Every file I inspected validated correctly.

This works by forcing the game to reload all the XML (which have already been converted to Python objects and removed from memory) so that the files can then be dumped to the hard drive. This process uses a lot of computer memory! It is not recommended to run this script unless you have at least 8 GB of RAM on your system. It may be able to finish and produce results using virtual swap memory; however, this will slow down the extraction significantly.

Although it should be perfectly safe to continue running your game after using this script (it cleans up after itself to free up that memory) it will likely be best to exit the game and restart after extracting.

Usage

Install the script as you would any other script mod, open a cheat command window with the Ctrl-Alt-C key combination and type in the xmldump command to begin extracting the files. This will take a significant amount of time (over 2 minutes on my system with only 5 game packs installed) during which the game will be paused (you may see some animations complete or continue to loop). When completed the command window will indicate the results.

By default the files will use the S4PE file naming conventions for the dumped XML files. You can extract using the Sims 4 Studio file naming convention by using the xmldump s4s command.

The files will be extracted into subfolders for each game pack within the xmldump subfolder of your Electronic Arts game documents folder (one folder up from the Mods folder, where the save folder is also located).

Installation and Compatibility

The mod is installed, like any other script mod, by placing the MTS_Scumbumbo_XmlDump.ts4script file into your Mods folder. As it is a script, you must have script mods enabled in your game options.

The mod was written for The Sims 4 version 1.47.51 (November 20, 2018 game patch). It should continue to work with future game patches unless there are significant changes to the game's merged_tuning_manager.

Operating System: Windows Mac OS X
Utility Type: Miscellaneous
Plugin Type: Not Applicable

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
XmlDump.zip | XML Dump Script

Size: 3.6 KB · Downloads: 403 · 14th Dec 2018
3.6 KB 403 14th Dec 2018
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.
2. Extract: Use WinRAR (Windows) to extract the file(s) from the .rar or .zip file(s).
3. Cut and paste the 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.
Test Subject
THANKS POST
#2 Old 14th Dec 2018 at 9:51 PM
This works so well for me!
Test Subject
THANKS POST
#3 Old 24th Dec 2018 at 4:29 AM
Thanks for thinking about us Mac users, I've wanted to try to mod something but been discouraged due to the extra steps involved.
Deceased
Original Poster
#4 Old 27th Feb 2019 at 4:18 AM
Today's Sims 4 Studio update, version 1.3.0.0, now includes a beta XML extractor. So it looks like Mac modders are no longer going to have to use this script!

https://sims4studioofficial.tumblr....0-apple-blossom