fuzzyjowls Posted November 1, 2013 Share Posted November 1, 2013 A little while back I began to work on the weapons for my new character. After a couple crashes and fixes, I've got the the new weapon (Spear) spawning in my character's inventory. The only problem being that the spear's textures are all invisible besides it's inventory image. I've already spent a few days playing with it, but can't figure out whats wrong. The link to the character = below. Please help me fix this, thanks. LINK ---> https://www.dropbox.com/sh/y0oewxciczlelgv/3m82dCQHEE Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 2, 2013 Author Share Posted November 2, 2013 :/ Well? Link to comment Share on other sites More sharing options...
Malacath Posted November 2, 2013 Share Posted November 2, 2013 :/ Well?Don't be impatient...If you could zip the files and upload them to your Dropbox I can take a look. The way it is I would need to download each file seperately. Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 2, 2013 Author Share Posted November 2, 2013 Isn't there a 'gear button' in the upper right hand corner that allows you to download everything as a zip? Link to comment Share on other sites More sharing options...
Malacath Posted November 2, 2013 Share Posted November 2, 2013 There is -_- Sorry...First off:anim:PlayAnimation("anim")Why did you use the animation "anim"? The spear which you used as a basis uses "idle" Second:The swap stuff is aweful. I can't see right now what the problem is. I would say you'd be better of to create the animations yourself but there's no documentation on that so far... Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 2, 2013 Author Share Posted November 2, 2013 I think it's pretty obvious I'm a entry level modder. Still kinda learning...What's swap stuff? Also, how do I fix the "first off" problem?Thanks for take'n a look. Link to comment Share on other sites More sharing options...
Malacath Posted November 2, 2013 Share Posted November 2, 2013 I think it's pretty obvious I'm a entry level modder. Still kinda learning...What's swap stuff? Also, how do I fix the "first off" problem?Thanks for take'n a look. I told you that "anim" was wrong and "idle" was right, you should be able to fix that : PAll the files that are called "swap_something.zip" are files that are used to override symbols in animations. They have a different structure than other animation files. And if I were an entry level modder this wouldn't help me, so I guess it doesn't help you either. Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 2, 2013 Author Share Posted November 2, 2013 Soooooooooooooo, I've changed my spear's .lua to say: anim:PlayAnimation("idle") And the spear = still invisible...what I do wrong? Link to comment Share on other sites More sharing options...
Malacath Posted November 2, 2013 Share Posted November 2, 2013 Soooooooooooooo, I've changed my spear's .lua to say: anim:PlayAnimation("idle") And the spear = still invisible...what I do wrong?That's a good question. 'cause I didn't change anything else and it works. Not in the hand though since that's handled by the "swap stuff" Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 5, 2013 Author Share Posted November 5, 2013 Ok, so after a couple days of trial and ERROR, I can't fix this...The spear you see in the your screen shot is using the wrong anim. It's supposed to be using the swap_spear.zip when on the ground, but as I/U can see, the image displayed is the spear.zip's anim. The spear.zip is meant to be the image used when equipped. However when equipped the spear is invisible. I have literally NO clue how to solve this. I've been over the .luas of my spear and the default spear's .lua and I see no difference, I've checked my anim's using text-tool to see if they got mixed up and nope. Please someone help me fix my mod, sooooooo frustrated with this. Link to comment Share on other sites More sharing options...
Developer Cheerio Posted November 5, 2013 Developer Share Posted November 5, 2013 Ok, so after a couple days of trial and ERROR, I can't fix this...The spear you see in the your screen shot is using the wrong anim. It's supposed to be using the swap_spear.zip when on the ground, but as I/U can see, the image displayed is the spear.zip's anim. The spear.zip is meant to be the image used when equipped. However when equipped the spear is invisible. I have literally NO clue how to solve this. I've been over the .luas of my spear and the default spear's .lua and I see no difference, I've checked my anim's using text-tool to see if they got mixed up and nope. Please someone help me fix my mod, sooooooo frustrated with this. So I found a couple of problems:1. I changed 'anim:PlayAnimation("anim")' to 'anim:PlayAnimation("idle")'.2. The images in your swap spear and regular spear anims are reversed( I didn't fix this).3. I'm not sure what build you used to create the swap spear but it needs to be one of the swappable builds for it to work properly. I started from the 'swap_spear' build and now it seems to work fine. Here's your mod re-uploaded with the spear appearing on the ground and in his hand but the images are still reversed. Zulu The Hunter(All That's Maxwell).zip Link to comment Share on other sites More sharing options...
fuzzyjowls Posted November 5, 2013 Author Share Posted November 5, 2013 Thanks for help'n, I appreciate it, but...Problems:1. I was already corrected by Malacath to do dis.2. I switched the "atlas-0.tex" from the swap_spear.zip + startspear.zip.3. Which builds are "swappable"? I followed your instructions(as correctly as I could) and have run into the same problems:Spear = invisible while in hand, when placed on the ground; the Spear's texture has a "block" of transparency covering the upper=right hand corner of the image, thus ruining it.file:///C:/Users/samur_000/Desktop/Spear%20=%20on%20ground.pngfile:///C:/Users/samur_000/Desktop/Spear%20=%20in%20hand.png Link to comment Share on other sites More sharing options...
Developer Cheerio Posted November 6, 2013 Developer Share Posted November 6, 2013 Thanks for help'n, I appreciate it, but...Problems:1. I was already corrected by Malacath to do dis.2. I switched the "atlas-0.tex" from the swap_spear.zip + startspear.zip.3. Which builds are "swappable"? I followed your instructions(as correctly as I could) and have run into the same problems:Spear = invisible while in hand, when placed on the ground; the Spear's texture has a "block" of transparency covering the upper=right hand corner of the image, thus ruining it.file:///C:/Users/samur_000/Desktop/Spear%20=%20on%20ground.pngfile:///C:/Users/samur_000/Desktop/Spear%20=%20in%20hand.pngAll the builds found in 'dont_starve/data/anim' that start with the word 'swap' are swappable. To get the spear working in your mod, I used the 'build.bin' file from the 'swap_spear.zip' file. I also uploaded it for you to check out. The transparency means that you need to move your image inside the atlas because you're drawing outside of the borders of the original image. You need to keep the original atlas around and follow that as your template. Link to comment Share on other sites More sharing options...
Malacath Posted November 6, 2013 Share Posted November 6, 2013 All the builds found in 'dont_starve/data/anim' that start with the word 'swap' are swappable. To get the spear working in your mod, I used the 'build.bin' file from the 'swap_spear.zip' file. I also uploaded it for you to check out. The transparency means that you need to move your image inside the atlas because you're drawing outside of the borders of the original image. You need to keep the original atlas around and follow that as your template.Would it be okay if I write a tutorial on how to build weapons from ground up with spriter, or are you already working on that? Link to comment Share on other sites More sharing options...
Developer Cheerio Posted November 6, 2013 Developer Share Posted November 6, 2013 Would it be okay if I write a tutorial on how to build weapons from ground up with spriter, or are you already working on that?I just posted an example using the Waverly mod but I'd be more than happy if you wrote a tutorial on how to do it . You can even use the example if it'll help. Spriter Example: Equippable Item Link to comment Share on other sites More sharing options...
Malacath Posted November 6, 2013 Share Posted November 6, 2013 I just posted an example using the Waverly mod but I'd be more than happy if you wrote a tutorial on how to do it . You can even use the example if it'll help. Spriter Example: Equippable ItemOkay, I'll get to it when I've shopped some groceries so I don't starve... T.T why? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.