Jump to content

Sub file

The Metin2 Subimage file (.sub) is a special type of Script file that is used to tell the client a rectangle that would be used as a rapresentation of the image.

Consider this example:

  • You have a big texture atlas of the minimap (like d:/ymir work/ui/minimap.dds), the sub file is used to tell the client where the button location is.
  • All the options listed here are REQUIRED otherwise the file will not get loaded correctly.
Options
Name Description Possible values
title subImage Must be subImage
version The version changes the image path that is loaded Either "1.0" or "2.0", see below for additional information
image The name of the base texture String (includes the commads)
left The X position where the image section should start Integer
top The Y position where the image section should start Integer
right The X position where the image section should end (must be the left+the width of the section) Integer
bottom The Y position where the image section should end (must be the top+the height of the section) Integer

 

Version

The version field is used to tell the client a specific base path where the file should be loaded.
Both directories supports multiple subdirectories.

1.0

The base directory of the file will be "D:/ymir work/ui"
Example: if "image" is "new_system/test.dds" the full image directory will be "D:/ymir work/ui/new_system/test.dds"

2.0

The base directory of the file will be the current directory where the sub file exists.
Example: if "image" is "new_system/test.dds" and the sub is stored inside "locale/en/test.sub", the full directory of the image file is "locale/en/new_system/test.dds"


  Report Doc

×
×
  • 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.