Jump to content

Recommended Posts

  • Developer

They are used for various things, they are text files that usually contain "layer and layout" information, on metin2 we use them to take desired shapes from an image

For example, in locale/ui/

u have "login.png and login.sub" or "logo.png and logo.sub"

Thanks to the subfile it is possible to define the coordinates of each single pixel of an image.

For example, in public.dds you have yang slot, cheque slot and much button

spacer.png

File cheque_slot.sub:

title subImage
version 1.0
image "Public.dds"
left 206
top 446
right 230
bottom 464

As you can see, this file crops the desired pixels from that image. Basically, if there were no .sub files everything should have its own image, a client consisting of 2kk of files is not nice (Also you should define the coordinates of anything in Python and we don't like useless code either)

To create one you just need to have the photo from where you want to take the piece of image or the complete photo, and then through an editor such as GIMP or Photoshop take the measurements of the pixels

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

Villains are not born, they are made.
Join

Link to comment
https://metin2.dev/topic/27474-sub-files/#findComment-140686
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.