Smaller sims 4 patches.

View previous topic View next topic Go down

Smaller sims 4 patches.

Post by anadius1 on Fri 12 Jan 2018, 00:07

Project abandoned, see this for better alternative.

I made a Python 3 script that compares two directories and makes a patch using xdelta3.
Apparently I can't even attach 8KB file so here's Dropbox url:
https://goo.gl/UtzThx


Usage:




Code:
python make-patch.py <old game dir> <updated game dir or patch dir> <dir where smaller patch is created>



How does it work?



First it compares all files in first and second dir and sorts them into two categories: new files and updated files.
Note: "Game" dir and all subtitle files are always treated as a new file.

New files are simply packed with 7-zip command line tool (7za).
Updated files are ran through xdelta3 - that results in much smaller file.

It is all packed into "__patch_<old version>-<new version>" directory together with batch file to make patching simple.


How to use patch?



Move "__patch_<old version>-<new version>" to main directory of a game, open it and run "patch.bat". If your game is in "Program Files" you most probably need to run it as administrator. It automatically removes old "Game" dir.


External programs used:



listed in README.txt



Testing:



I downloaded "The Sims 4 Cats & Dogs v1.36.102.1020" from thepiratebay (not G4TW torrent) and then I saw updates 1.36.104.1020 and 1.37.35.1010 so I decided to write this script and test it a bit.

Extracted patches to "TS4_Update_1-36-104-1020" and "TS4_Update_1-37-35-1010".
Extracted game twice to "TS4" and "TS4_manual".

Applied 1.37.35.1010 patch to "TS4_manual" (removed "Game" dir and copied files from "TS4_Update_1-37-35-1010").

Created 1.36.102.1020->1.36.104.1020 patch from "TS4" and "TS4_Update_1-36-104-1020".
Applied that patch to "TS4".
Created 1.36.104.1020->1.37.35.1010 patch from "TS4" and "TS4_Update_1-37-35-1010".
Applied that patch to "TS4".

Files in "TS4" and "TS4_manual" were identical.


Filesizes:


(I zipped mini-patches folders with no compression)





TS4_Update_1-36-104-1020.rar1,07 GB
TS4_Update_1-37-35-1010.rar3,10 GB
__patch_1.36.102.1020-1.36.104.1020.zip87 MB
__patch_1.36.104.1020-1.37.35.1010.zip217 MB


Conclusion:



This tool can create much smaller patches at a cost of compatibility. Your game version must be the same as one from patch. That shouldn't be hard to achieve since you need to install all DLCs anyway and there are not that many patches available. If something goes wrong and you run a patch that's not for your version it will fail and tell you to download full patch. Which is a bit downside because you'd have to host both small patch and full patch.





DO NOT POST ANY QUESTIONS OR PROBLEMS IN THIS TOPIC. INSTEAD, PLEASE OPEN A NEW TOPIC IN THE APPROPRIATE FORUM-SECTION, EITHER "THE SIMS 4 DOWNLOADS SUPPORT" OR "THE SIMS 4 IN-GAME SUPPORT"! THANK-YOU-NOTES CAN BE POSTED IN THE APPROPRIATE FORUM-SECTION, or directly under this thread.

Note that any and all questions posted under this thread, will be deleted without any explanation or advance warning. We have the Forum sections dedicated to Support purposes, for a reason.




Last edited by anadius1 on Sat 07 Apr 2018, 23:50; edited 1 time in total

anadius1
Posting Freak
Posting Freak

Posts : 94
Points : 1954
Reputation : 29
Join date : 2013-07-01

View user profile

Back to top Go down

Re: Smaller sims 4 patches.

Post by The_gh0stm4n on Fri 12 Jan 2018, 00:40

//MOVED

Hello and thanks for the submission!

It's been moved to The Sims 4 tips & tricks. I'm also aware of these xdelta-patches from other sources. Have tried them myself over and over, but they never work(ed) for me; I always got an error that one (1) file "could not be patched - patcher will therefore abort now". Never managed to figure out what the problem was with those, but yes. It seems it works for most other people though.

About this here:

@anadius1 wrote:Apparently I can't even attach 8KB file so here's Dropbox url.

That is a shortcoming of the Forum software used by Forumotion, and we have no influence on that. Forumotion can be contacted through their own Forum here:
http://help.forumotion.com/

_________________


Forum Rules // Forum FAQ // All G4TW Downloads // G4TW The Sims 4 Gallery Collection // How YOU can help seeding!

How to install The Sims Medieval // The Sims 2 Overview // How to install The Sims 3 // TS3 Expansion install checklist // How to install The Sims 4



Feel free to e-mail me for general questions about G4TW, Site navigation & Support, if you don't get a reply after 24 hours of opening a new Forum topic!




avatar
The_gh0stm4n
VETERAN Moderator
Inspector General & Forum O.G.
VETERAN Moderator Inspector General & Forum O.G.

Windows version :
  • Windows 8
  • Windows 7
  • Windows XP
  • Windows 10

System architecture :
  • 32 bits (x86)
  • 64 bits (x64)

Favourite games : The Sims 3, L.A. Noire, Saints Row, Red Faction, Team Fortress 2, Overwatch, PvZ: Garden Warfare, GTA: San Andreas, GTA V, Counter-Strike, Hitman, Borderlands, Fallout, COD, Battlefield, The Binding of Isaac, Government simulation & Military strategy games, S.W.A.T 4.
Male Posts : 16059
Points : 21388
Reputation : 2300
Join date : 2012-11-02
Location : Bellisarius Hall

View user profile

Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum