CGenI Posted August 6, 2019 Share Posted August 6, 2019 (edited) Hello guys I am making a simple mod of one single item. It is basically a wall with a stake texture, and if you destroy it an antlion sinkhole and boulders appear. Its to renew boulders. All the code is working. Only I cannot figure out how to get the Textures working properly. I tried this tutorial. (I know its for DS but its the best I found) There I learned that the mod tools will convert png files to tex and xml aoutmatically. Neat. Unfortunatly, there seem to be all newlines missing in the code examples, therefore I did not understand the folder structure that was used in the Tutorial. I figured out that if you put an scml file and a png file into an "experimental" folder, it will generate zip files for you. However there will be just the raw png file in place of the "atlas-0.tex" file usually in there. Also the other two files are .xml instead of .bin how they usually are. In the tutorial it is implied that these zip folders just work, and they also seem to appear in the "anim" folder for him, but for me they just appear in the "experimental" folder. I tried just adding the corresponding .tex file manually but that did not work either. [Q1] So assuming I have correct .scml files how do I get the zip files, preferably automatically in the anim folder? [Q2] Second how exactly do I have to make these .scml files? I use the spriter tool from the Mod Tools. I rename the entity stuff to "boulder_stake" and the animation to "idle". Then i save it next to the boulder_stake.png with the name boulder_stake.scml. Let the game generate .zip files, move them to the anim folder. I do the same thing for item_boulder_stake.png Result in game: icon works in inventory. On the ground and as built structure it is invisible, but functionally works. In the crafting tab it is a random image. Log states: Spoiler [00:00:34]: Resuming user: session/014A7608FD725A0E/A7N6023IAJSO/0000000003 [00:00:34]: Could not find anim build FROMNUM [00:00:34]: Could not find anim [anim] in bank [sanity2] [00:00:34]: Spawning player at: [Load] (284.16, 0.00, 133.54) [00:00:34]: ReceiveResumeNotification [00:00:34]: Note(Peter): Disable wardrobe popping for now [00:00:34]: Deserializing tile data (425 x 425) [00:00:40]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:40]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:40]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:40]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:40]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:40]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:40]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:41]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:41]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:42]: Could not find anim build boulder_stake [00:00:42]: Could not find anim bank [boulder_stake] [00:00:42]: WARNING! Could not find region 'item_boulder_stake.tex' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. Is the region specified in the atlas? [00:00:42]: Looking for default texture '' from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:42]: Error Looking for default texture in from atlas '../mods/boulderstake/images/inventoryimages/invitem.xml'. [00:00:43]: Could not find anim build boulder_stake [00:00:43]: Could not find anim bank [boulder_stake] [00:00:44]: Registering master server in EU lobby [00:00:45]: Could not find anim build boulder_stake [00:00:45]: Could not find anim bank [boulder_stake] [00:00:45]: Could not find anim build boulder_stake [00:00:45]: Could not find anim bank [boulder_stake] [00:00:50]: Could not find anim [death] in bank [ghost] The code and file structure is based on an "iron fence" mod. I do not know if I need two prefabs for in the inventory and as a built structure. But thats how the other mod did it. [Q3] Do I need two prefabs? [Q4] is the anim component of the inventory item the [Q4] Where are which file names important? Is the name of the zip folder important or does it just need to match the path given? Is the name of the .png used important? Is the name of that "entity-000" thing in spriter important and where is it used? My Understanding: --other code Asset("ANIM", "anim/item_boulder_stake.zip") --name of the zip file --other code inst.AnimState:SetBank("boulder_stake") -- Name of the entity thingy in spriter inst.AnimState:SetBuild("boulder_stake") -- also that inst.AnimState:PlayAnimation("idle") -- Name of the animation in spriter I have read somwhere that the filenames of the .tex files must match the prefab filename, even tough i specify it's path. Is that true? Oh and btw I am using the returnofthembeta as a testing environment. Thanks in advance for help. Welcome in both a gorund knowledge or direct solution form. boulder_stake.lua item_boulder_stake.lua modinfo.lua modmain.lua boulderstake.zip Edited August 7, 2019 by CGenI Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 12, 2019 Share Posted August 12, 2019 On 8/6/2019 at 4:52 PM, CGenI said: Only I cannot figure out how to get the Textures working properly. I can help you with this (I can try) So have you installed the Don't Starve Mod Tools on Steam? (Hover over Library, click Tools, install.) If so, open the folder it is installed in. Go into mod_tools and drag the SCML files onto scml.exe\ If done, you might get the ZIP files. If you didn't, you probably deleted elements or moved them. Get a fresh SCML that uses your sprites and drag it. Thank me later if it helps. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now