diff --git a/Applications/Games/The Sims 4/Local/script.js b/Applications/Games/The Sims 4/Local/script.js new file mode 100644 index 0000000000..8fc18e27f5 --- /dev/null +++ b/Applications/Games/The Sims 4/Local/script.js @@ -0,0 +1,36 @@ +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); +const AppResource = include("utils.functions.apps.resources"); +const vcrun6sp6 = include("engines.wine.verbs.vcrun6sp6"); +const MFC42 = include("engines.wine.verbs.mfc42"); +const dotnet20sp2 = include("engines.wine.verbs.dotnet20sp2"); +const vcrun2010 = include("engines.wine.verbs.vcrun2010"); +const vcrun2013 = include("engines.wine.verbs.vcrun2013"); +const D9VK = include("engines.wine.verbs.d9vk"); +include("engines.wine.plugins.regedit"); +include("engines.wine.plugins.override_dll"); + +new LocalInstallerScript() + .name("The Sims 4") + .editor("Electronic Arts") + .applicationHomepage("https://www.ea.com/games/the-sims/the-sims-4/pc") + .author("ZemoScripter") + .category("Games") + .executable("TS4_x64.exe") + .wineArchitecture("amd64") + .wineVersion(LATEST_STAGING_VERSION) + .wineDistribution("staging") + .preInstall(function (wine) { + new dotnet20sp2(wine).go(); + new vcrun6sp6(wine).go(); + new MFC42(wine).go(); + new vcrun2010(wine).go(); + new vcrun2013(wine).go(); + new D9VK(wine).go(); + const registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("registry.reg"); + wine.regedit().patch(registrySettings); + wine.overrideDLL() + .set("disabled", ["nvapi", "nvapi64"]) + .do(); + }) + .environment('{ "STAGING_SHARED_MEMORY": "0", "__GL_SHADER_DISK_CACHE": "1"}') diff --git a/Applications/Games/The Sims 4/Local/script.json b/Applications/Games/The Sims 4/Local/script.json new file mode 100644 index 0000000000..a25f6d537b --- /dev/null +++ b/Applications/Games/The Sims 4/Local/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "Local", + "id" : "applications.games.the_sims_4.local", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : false, + "requiresPatch" : false +} diff --git a/Applications/Games/The Sims 4/Origin/script.js b/Applications/Games/The Sims 4/Origin/script.js new file mode 100644 index 0000000000..5074f5c631 --- /dev/null +++ b/Applications/Games/The Sims 4/Origin/script.js @@ -0,0 +1,31 @@ +const OriginScript = include("engines.wine.quick_script.origin_script"); +const vcrun2010 = include("engines.wine.verbs.vcrun2010"); +const vcrun2013 = include("engines.wine.verbs.vcrun2013"); +const vcrun2015 = include("engines.wine.verbs.vcrun2015"); +const D9VK = include("engines.wine.verbs.d9vk"); +const { touch, writeToFile } = include("utils.functions.filesystem.files"); +const OverrideDLL = include("engines.wine.plugins.override_dll"); + +new OriginScript() + .name("The Sims 4") + .editor("Electronic Arts") + .applicationHomepage("https://www.ea.com/games/the-sims/the-sims-4/pc") + .author("ZemoScripter") + .category("Games") + .wineVersion("4.21") + .wineDistribution("upstream") + .wineArchitecture("amd64") + .appId("1011164,1015875,1015876,1015793,1015794,1015795,1015806,1015807,1015808,1018025,1018023,1015236,1015235,1015224") + .preInstall(function (wine) { + new vcrun2010(wine).go(); + new vcrun2013(wine).go(); + new vcrun2015(wine).go(); + new D9VK(wine).go(); + const configFile = wine.prefixDirectory() + "/drive_c/dxvk.conf"; + touch(configFile); + writeToFile(configFile, "dxgi.nvapiHack = False"); + new OverrideDLL(wine) + .withMode("disabled", ["nvapi, nvapi64"]) + .go(); + }) + .environment('{ "STAGING_SHARED_MEMORY": "0", "__GL_SHADER_DISK_CACHE": "1", "DXVK_CONFIG_FILE": "configFile"}') diff --git a/Applications/Games/The Sims 4/Origin/script.json b/Applications/Games/The Sims 4/Origin/script.json new file mode 100644 index 0000000000..aeb0f8719f --- /dev/null +++ b/Applications/Games/The Sims 4/Origin/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "Origin", + "id" : "applications.games.the_sims_4.origin", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : false, + "requiresPatch" : false +} diff --git a/Applications/Games/The Sims 4/application.json b/Applications/Games/The Sims 4/application.json new file mode 100644 index 0000000000..a9d16e5d6a --- /dev/null +++ b/Applications/Games/The Sims 4/application.json @@ -0,0 +1,5 @@ +{ + "name" : "The Sims 4", + "id" : "applications.games.the_sims_4", + "description" : "Enjoy the power to create and control people in a virtual world where there are no rules. Express your creativity as you customize your Sims distinct appearances and unique personalities. Choose their fashions, select their hairstyles, and give them life aspirations. Effortlessly build your Sims the perfect homes with the all-new room-based Build Mode, choosing your favorite designs and décor. Develop your Sims’ relationships, pursue new careers, and shape the rich and entertaining moments of their lives. Explore beautiful worlds with unique environments and travel to neighborhoods where you can visit venues and meet other interesting Sims. Be powerful and free, have fun, and play with life!
Create Unique Sims Create a variety of unique Sims with distinct appearances, big personalities, and all-new emotions. Sculpt your Sims’ body shape using the powerful new Create A Sim tool then choose their hairstyles, walk-styles, and fashions. Give their lives purpose by selecting their traits and aspirations that give you control over their mind, body, and heart.
Build the Perfect Home Effortlessly build and design homes for your Sims using the new room-based Build Mode. Construct the home of your dreams by designing its layout, choosing its furnishings, and altering the landscape.
Explore Vibrant Worlds Travel between worlds, explore unique neighborhoods, and discover interesting venues. Your Sims can visit new communities to expand their social circle, hangout with friends in parks, or find and collect fun new objects.
Add New Experiences The all-new Gallery gives you the power to discover amazing community content to add to your game, or share your own creations with the world. Download, like, and comment on your favorite Sims, complete homes, and fully designed rooms." +} diff --git a/Applications/Games/The Sims 4/miniatures/main.png b/Applications/Games/The Sims 4/miniatures/main.png new file mode 100644 index 0000000000..571fcdfb51 Binary files /dev/null and b/Applications/Games/The Sims 4/miniatures/main.png differ diff --git a/Applications/Games/The Sims 4/resources/registry.reg b/Applications/Games/The Sims 4/resources/registry.reg new file mode 100644 index 0000000000..9a7221334d --- /dev/null +++ b/Applications/Games/The Sims 4/resources/registry.reg @@ -0,0 +1,7 @@ +REGEDIT4 + +[HKEY_CURRENT_USER\Software\Wine\Direct3D] +"VideoPciVendorID"=dword:1002 + +[HKEY_CURRENT_USER\Software\Wine\Direct3D] +"VideoPciDeviceID"=dword:699f