Jump to content

Textures(.tex .xml)


Recommended Posts

Hi! I hope so somebody can help me with my problem...

I can doing .tex files by Klei TEX Tool, but I don`t understand what means numbers in .xml files and what should I do, if I going to do textures for mods. Please explain me what means this string.

<Atlas><Texture filename="modicon.tex" /><Elements><Element name="modicon.tex" u1="0.00390625" u2="0.99609375" v1="0.00390625" v2="0.99609375" /></Elements></Atlas>

Thanks in advance for the explanation!

  • Like 1
Link to comment
Share on other sites

3 hours ago, fury_of_sky said:

Hi! I hope so somebody can help me with my problem...

I can doing .tex files by Klei TEX Tool, but I don`t understand what means numbers in .xml files and what should I do, if I going to do textures for mods. Please explain me what means this string.

<Atlas><Texture filename="modicon.tex" /><Elements><Element name="modicon.tex" u1="0.00390625" u2="0.99609375" v1="0.00390625" v2="0.99609375" /></Elements></Atlas>

Thanks in advance for the explanation!

What do you exactly want? If you want to get .xml and .tex files. Put the desired .png files you would like in your mod and let the game autocompile them into .tex and .xml files, You do not need to touch these files at all.

Link to comment
Share on other sites

5 hours ago, Omaremad74 said:

Что именно вы хотите? Если вы хотите получить файлы .xml и .tex. Поместите нужные файлы .png в свой мод и позвольте игре автоматически скомпилировать их в файлы .tex и .xml. Вам вообще не нужно трогать эти файлы.

I tried to do so, but I failed. There is 3 files in the mod: modinfo.lua, modmain.lua, modicon.png, as I correctly understood it is necessary to add new string, besides these in modinfo.lua:
icon_atlas = "modicon.xml"
icon = "modicon.tex"

Link to comment
Share on other sites

19 hours ago, fury_of_sky said:

I tried to do so, but I failed. There is 3 files in the mod: modinfo.lua, modmain.lua, modicon.png, as I correctly understood it is necessary to add new string, besides these in modinfo.lua:
icon_atlas = "modicon.xml"
icon = "modicon.tex"

Are you sure its autocompiling correctly? Do you see modicon.tex/xml in your mod folder?

Link to comment
Share on other sites

4 часа назад Omaremad74 сказал:

Вы уверены, что он автоматически компилируется? Вы видите modicon.tex / xml в папке с модом?

Это проблема. Когда я помещаю мод в  моды в DST (только modinfo.lua, modmain.lua, modicon.png ) и открываю игру, я не вижу madicon, а в своем моде я не вижу  .xml и .tex файлы. 

Если я правильно понимаю, необходимо добавить новую строку, помимо этого в modinfo.lua, чтобы мод мог видеть эту картинку:

name = "Name"
description = "Text"
author = "Fury_of_skY"
version = "1.0"

forumthread = ""

api_version = 10
api_version_dst = 10

icon_atlas = "modicon.xml"
icon = "modicon.tex"

dst_compatible = true

all_clients_require_mod = true
client_only_mod = false

Что мне следует добавить?

Edited by fury_of_sky
Link to comment
Share on other sites

12 hours ago, fury_of_sky said:

Это проблема. Когда я помещаю мод в  моды в DST (только modinfo.lua, modmain.lua, modicon.png ) и открываю игру, я не вижу madicon, а в своем моде я не вижу  .xml и .tex файлы. 

Если я правильно понимаю, необходимо добавить новую строку, помимо этого в modinfo.lua, чтобы мод мог видеть эту картинку:

name = "Name"
description = "Text"
author = "Fury_of_skY"
version = "1.0"

forumthread = ""

api_version = 10
api_version_dst = 10

icon_atlas = "modicon.xml"
icon = "modicon.tex"

dst_compatible = true

all_clients_require_mod = true
client_only_mod = false

Что мне следует добавить?

I can't read russian but don't worry I translated. I'm not sure whats wrong, in all my experiences I placed my png files in my images folder and the game gave me an xml and tex files.

Link to comment
Share on other sites

1 hour ago, Omaremad74 said:

I can't read russian but don't worry I translated. I'm not sure whats wrong, in all my experiences I placed my png files in my images folder and the game gave me an xml and tex files.

Sorry for the Russian, I wrote in English, Google translated the page, and at the same time sarcastically translated what I wrote ...

Stop, where should I throw the picture? In the game itself? Or with a mod?

If with a mod, if, of course, it is not difficult for you, send me an archive with modicon.png(green background, this is not important) and mdinfo.lua. so that I understand what I need to do so that DST itself creates .tex and .xml.

Thank!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...