Jump to content
Connall

Supporting 1x and 2x Textures in Mods

Recommended Posts

Today a change will hopefully have been rolled out into the new vehicles build that will include the ability for modders to support 1x and 2x tiles in their mods. Before, modders would have to choose whether to support 1x or 2x but not both.

 

First off, I would like to point out that this change was made with backwards compatibility in mind. Mods should not be broken and should continue to function as they always have. If this change has done anything that you believe may have broken mods, then feel free to leave a comment below. So you can leave your mod as it currently is and be free to ignore this change if you like, and your mod will continue to work as always.

 

If you wish to support 1x and 2x textures then you will need to go read the Custom Texture Packs and Tile Definitions guide by EasyPickens so you know how to build .pack files and add them in to your mods configuration files.

 

When creating your pack files you will need two packs with two different names. The first one, which would support 1x textures should be called lets say:

 

example.pack

 

and you should then create a second pack file for 2x textures and calling it:

 

example2x.pack

 

As per the tutorial, you would place the pack file in your mods config file as:

 

pack=example

That's it. Don't add another line with example2x or something, just have one line for both packs.

 

Now when the game starts and your mod is activated or loaded, the mod loader will check to see whether you have double-sized textures enabled in the options. If it is, the mod loader will try to find a file called, in this case, example2x.pack. If the mod loader can not find a file with that name, then it will fallback and look for the original 1x pack instead and load that in. As mentioned before this is just to make sure, that any mods that have not been updated to have two different texture packs, will still continue to function.

 

And that's it, pretty simple really!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

Loading...

×
×
  • Create New...