Dr.Geologist Posted February 22, 2015 Share Posted February 22, 2015 Hello everyone! I want to add a new block of rock, but I can't find how to connect texture with him. Blocks in XML-files have number of textures, for example: ... ... Where is I can find and add on a new texture for my new block? Link to comment Share on other sites More sharing options...
Ricowan Posted February 22, 2015 Share Posted February 22, 2015 You can't add new textures, as far as I know. You can replace existing ones, but not add new ones. Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 22, 2015 Author Share Posted February 22, 2015 I find something in "BlockTextureAtlases". File "ta_terrainxml" in "BlockTextureAtlases" has XML code: <?xml version="1.0" encoding="UTF-8"?> <uvmapping> ... <uv id="1" x="16" y="16" w="256" h="256" blockw="4" blockh="4" color="0.3619511,0.3611408,0.3482094" material="stone" texture="stone.tga" /> ... </uvmapping> Letter i try add my rock, but i don't know what does the "x="16" y="16" w="256" h="256" blockw="4" blockh="4" color="0.3619511,0.3611408,0.3482094"" mean. Link to comment Share on other sites More sharing options...
JordanHameski Posted February 22, 2015 Share Posted February 22, 2015 x,y - размер блока в мире w,h - размер текстуры blockw, blockh - количество шейдеров привязанное к блоку color - цвет текстуры Link to comment Share on other sites More sharing options...
randor9 Posted February 22, 2015 Share Posted February 22, 2015 Translared from Russian to English x, y - the block size in the world w, h - Texture Size blockw, blockh - the number of shaders tied to the block color - the color texture Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 22, 2015 Share Posted February 22, 2015 Earlier i tried to add new textures to the xml files in BlockTextureAtlases, with mixed results. I was able to add new mesh, and it was visible in game, but the game started to crash with strange behavior after a while. (I think the data I inserted pushed something, and i think you will need to edit the 0x000000E8 index1 as well as the data) Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 22, 2015 Share Posted February 22, 2015 @JordanHameski are you sure that the X,Y is the the block size in the world? I thought it was textures position in the DDS file Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 22, 2015 Author Share Posted February 22, 2015 LCPL_Punishment, was id's of new items was correct? Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 22, 2015 Share Posted February 22, 2015 yes.. you can see this: https://7daystodie.com/forums/showthread.php?23485 I think I might know what went wrong now, I will test it tonight Link to comment Share on other sites More sharing options...
DerPopo Posted February 22, 2015 Share Posted February 22, 2015 X and Y are the position of the texture in the texture atlas, W and H are the size of the texture. 0 means left (x) or top (y), 1 means right (x) or bottom (y) (or the other way round). 0.5|0.5 is the middle of the texture. I'm not sure what they mean in ta_terrainxml as each texture of it is in a separate file. To add a new texture, you could either add it to a texture atlas (like ta_opaque) or add it as a separate file in TerrainTextures (although this would require you to add the file name to the asset at index 1 so Unity finds the file). The transparency values stored in the texture atlases are not used by the game. If a file ending with _a exists, the game uses the brightness of it (black is fully transparent; the whiter it is, the less transparent is the block). You must make sure the uv id isn't already used, else it might collide with an existing one. Link to comment Share on other sites More sharing options...
randor9 Posted February 23, 2015 Share Posted February 23, 2015 Okay so now I would like to know how I can ad custom textures to guns like the guy who added the mg42 Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 24, 2015 Author Share Posted February 24, 2015 Does anybody know which format of textures have in "TerrainTextures"? not suitable none. Link to comment Share on other sites More sharing options...
TehAgent Posted February 24, 2015 Share Posted February 24, 2015 Okay so now I would like to know how I can ad custom textures to guns like the guy who added the mg42 You can reskin the guns pretty easily; most of them are in the sharedassets files. Ive reskinned a few myself. Im either missing something or forgetting something - how would I even open the terrain textures? I tried this weeks ago and couldnt get it. I couldnt even open the Atlas file either. Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 25, 2015 Share Posted February 25, 2015 Use UABE or Disunity to open the bundles, and UAE or Disunity for the extractes assets from the bundles. I'm not sure about the formats. Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 25, 2015 Author Share Posted February 25, 2015 Use UABE or Disunity to open the bundles, and UAE or Disunity for the extractes assets from the bundles. I'm not sure about the formats. Of course I did it. Link to comment Share on other sites More sharing options...
TehAgent Posted February 25, 2015 Share Posted February 25, 2015 Is anyone using Disunity on W7 64 Bit? Use UABE or Disunity to open the bundles, and UAE or Disunity for the extractes assets from the bundles. I'm not sure about the formats. Where do I find UABE? I have UAE already and Disunity appears to be broken. EDIT NVM, found it. Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 25, 2015 Share Posted February 25, 2015 In the modding tools section you can find both UABE https://7daystodie.com/forums/showthread.php?22675-Unity-Assets-Bundle-Extractor and a guide for Disunity install https://7daystodie.com/forums/showthread.php?24124-How-to-install-disunity-and-extract-assets-and-bundles-from-unity-games Go for UABE if you want the easy way, and remember to remove typetree if you want to open the asset in UAE Edit.. Added: For the file formats my guess is that they are RGBA compressed DXT5's. Link to comment Share on other sites More sharing options...
TehAgent Posted February 25, 2015 Share Posted February 25, 2015 Does anybody know which format of textures have in "TerrainTextures"? [ATTACH=CONFIG]7157[/ATTACH] not suitable none. DDS files, DTX5 and mipmapped. Link to comment Share on other sites More sharing options...
TehAgent Posted February 25, 2015 Share Posted February 25, 2015 In the modding tools section you can find both UABE https://7daystodie.com/forums/showthread.php?22675-Unity-Assets-Bundle-Extractor and a guide for Disunity install https://7daystodie.com/forums/showthread.php?24124-How-to-install-disunity-and-extract-assets-and-bundles-from-unity-games Go for UABE if you want the easy way, and remember to remove typetree if you want to open the asset in UAE Edit.. Added: For the file formats my guess is that they are RGBA compressed DXT5's. Ok, thank you. I do have more questions though. I can edit/import/export the texture files, but as above, it says I need to add them to the unnamed asset at index 1 if Unity is to find them. That is where I get lost. I try to do it as I would with the icons, but that doesnt seem to work. I see all of the names for the textures in UAE, but I dont know how to add new names to index 1. Please excuse my nubism. Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 25, 2015 Author Share Posted February 25, 2015 Latest news. "Unnamed assets" is in "TerrainTextures" has some information about textures in this file. I guess it is a last place where I need to add changes. I tried to edit this "Unnamed assets", but I don't know structure of this. The game doesn't load after my attempts, editing this file was broken the game. Does anybody know something about this "Unnamed assets"? Link to comment Share on other sites More sharing options...
DerPopo Posted February 25, 2015 Share Posted February 25, 2015 I am working on a plugin for UAE for this file type. Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted February 26, 2015 Share Posted February 26, 2015 That would be a life saver derpopo, let me know if you need a betatester at some point. Right now im using more time in hexeditors trying to figure out how things are connected than in the actual game Link to comment Share on other sites More sharing options...
Dr.Geologist Posted February 27, 2015 Author Share Posted February 27, 2015 Latest news "something about structure of this "Unnamed assets"". 1st rectangle - I don't know, this number has repeated at the same site, but not always. If we add the number 2, we will get "name"+_n texture. For example: stone -> stone_n. 2nd rectangle - name of "texture.dds" 3rd rectangle - I have no idea 4th rectangle - I don't know, but 01 has repeated at the same site everywhere, maybe it is a separator character. 5th rectangle - I don't know, but 00 has repeated at the same site everywhere. 6th rectangle - number of index on HEX format in "TerrainTextures". - - - Updated - - - http://s017.radikal.ru/i423/1502/5e/9732f139b413.png large picture Link to comment Share on other sites More sharing options...
DerPopo Posted February 28, 2015 Share Posted February 28, 2015 Here it is : mirror 1 mirror 2 Or as an attachment : [ATTACH]7188[/ATTACH] The instructions on how to use it are in the readme. If you want to add a new texture using UAE, open the Add dialog (menu : Asset->Add). Write your texture's name into Asset Name, write 0 into Asset Index Offset and write 0x0000001C into Asset Type. Once you have it added, right click an existing texture (like snow) and export it somewhere to a .data file. Right click your new asset and import the exported file. Click your new asset and select Plug-in. Then right click it and import the texture you created. Make sure the formats of your texture and the new asset match (most likely it should be DXT5). Select the unnamed asset of type AssetBundle and add the new asset like described in the readme. Create a normal map of your texture and repeat steps 1-4 to create an asset ending with _n. You can also create a specular ending with _s. 7dtd seems to use grayscales as normal textures. If you want to use transparency, you have to insert your texture in one of the ta_ files in BlockTextureAtlases.AssetBundle plugin.zip Link to comment Share on other sites More sharing options...
LCPL_Punishment Posted March 1, 2015 Share Posted March 1, 2015 Well done mate.. Well done +1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.