Jump to content
Logo
Your Metin2 zone for C++, Python, Lua.

Package Cleaning Script


GameCore

Recommended Posts

On a platform using Marty Sama 5.8 platform, targeting just before the graphics update of Metin2 on 24.02.2010 without going out of chronology. Since I know that it will take a long time to clean the contents of pack files from too much data, I wrote a simple python script that will take the content of a certain pack file as a reference (only the file names depending on the folder path, regardless of the extension) and match it with the pack file I am targeting, and delete all the mismatched files or empty folders with the files. I thought it might be useful for you, so I wanted to share it.

Pack Cleaner.py:

This is the hidden content, please

Pack Cleaner (Without folders).py:

This is the hidden content, please

The "source_folder" variable represents the pack path to be referenced. For example, you can reference the pack files belonging to the Turkey client dated 18.05.2010. The "target_folder" variable represents the pack path to be cleaned according to the files you reference. You may want to clean the pack files belonging to Marty Sama's client version 22.5.7.0. Please back up your files before doing this. If the file paths do not match exactly, the script may completely delete the pack content.

For the locale_uk (2007) referenced locale_tr (2010) pack file, before,

1.webp

Pack Cleaner (Without folders).py kullanılarak yapılan temizleme sonrası,
2.webp

Pack Cleaner.py kullanılarak yapılan temizleme sonrası,
3.webp

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Style Version: 0.1

The code was completely created from scratch and optimized.

The basic style on which it was created: Default

Created by: Grzyb.ovh

The style was to be simple to browse topics, devoid of graphics, uniform in color and definitely simple. ×

×
×
  • Create New...

Important Information

Do you like cookies? 🍪 We use cookies to provide the highest quality of service. Learn more