Oribani Posted February 17, 2016 Share Posted February 17, 2016 (edited) I'm having an issue with my custom item. It's a hat item, not a hand equipable item. The item is called moonclip and I'm trying to put it into her start inventory. This is the -- This is the Log I receive when crashing. Could someone help me figure this out? I've been working hours on this, but I can't figure it out. Any help is appreciated! Edited February 20, 2016 by Oribani Mod has been fixed, removing file. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/ Share on other sites More sharing options...
Muche Posted February 17, 2016 Share Posted February 17, 2016 The log says [00:02:02]: Can't find prefab moonclip There is missing return Prefab("moonclip", fn, assets) at the end of scripts/prefabs/moonclip.lua Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723684 Share on other sites More sharing options...
Oribani Posted February 17, 2016 Author Share Posted February 17, 2016 (edited) Thank you! That seemed to be the issue, but now I crash without any logs or whatever. I did some adjustments, and now I have a new error. I would really like to get this item working. I'm not sure what I'm doing wrong that's making this so difficult. :/ ---- Log Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723885 Share on other sites More sharing options...
Muche Posted February 17, 2016 Share Posted February 17, 2016 There were missing closing ends of ifs in onequip and onunequip functions, see moonclip.fix.lua. Also, line 36 is referring to saniup function that doesn't seem to be defined here. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723889 Share on other sites More sharing options...
Oribani Posted February 17, 2016 Author Share Posted February 17, 2016 Thank you so much for the fix! I'm hoping it works soon. There's another error. I wish I understood LUA coding a lot more so I would be able to fix things like this. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723903 Share on other sites More sharing options...
Muche Posted February 17, 2016 Share Posted February 17, 2016 Yeah, I overlooked that, GLOBAL is needed only in modmain, prefabs are already being executed in the global environment. STRINGS.NAMES.MOONCLIP = "Moon Clip" STRINGS.CHARACTERS.GENERIC.DESCRIBE.MOONCLIP = "It shimmers like the stars!" Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723911 Share on other sites More sharing options...
Oribani Posted February 17, 2016 Author Share Posted February 17, 2016 (edited) That fixed it! As soon as I thought the errors would end, I just simply crash. All I did was remove GLOBAL from moonclip and add it to modmain Log ---- I can't even enter the Character Selection screen anymore. It's almost as if they don't want this mod to work. The issue seems to be: [00:01:02]: Could not load mod_config_data/modconfiguration_Bunnie Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723938 Share on other sites More sharing options...
Muche Posted February 17, 2016 Share Posted February 17, 2016 (edited) There seems to be some problem with moonclip anim files - anim/moonclip.zip and anim/swap_moonclip.zip. After I commented out their mentions in moonclip's assets I did not get a crash during load. Unfortunately I have no idea what is wrong with them. Later crashes I got could be circumvented by changes in moonclip.lua: inst:AddComponent("waterproofer") --[[ inst:AddComponent("dapperness") inst.components.dapperness.dapperness = TUNING.DAPPERNESS_MED ]] Edited February 17, 2016 by Muche Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-723994 Share on other sites More sharing options...
Oribani Posted February 18, 2016 Author Share Posted February 18, 2016 (edited) Thank you so much for all this help! I got the anim assets to work properly, but the item doesn't show up on my character when equipped and disappears from my inventory when I relog. I'm going to try and figure out why, hopefully. The inventory image works, at least. Edited February 18, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724121 Share on other sites More sharing options...
Oribani Posted February 18, 2016 Author Share Posted February 18, 2016 Does anyone know how to not make the item fall to the ground every time I disconnect from the server? It's becoming annoying. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724351 Share on other sites More sharing options...
Kzisor Posted February 18, 2016 Share Posted February 18, 2016 15 minutes ago, Oribani said: Does anyone know how to not make the item fall to the ground every time I disconnect from the server? It's becoming annoying. Remove the irreplacable tag from the item. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724355 Share on other sites More sharing options...
Oribani Posted February 18, 2016 Author Share Posted February 18, 2016 (edited) Thank you! The drop issue is removed, and now there's only one final error. The item isn't showing up no matter what I do. I've changed the anim.bin file and renamed BUILD files hoping it'd work, but it doesn't. The item is fine and working properly, but it doesn't appear on my character. It's simply invisible! I can see it equipped with the inventory image and all, but it's invisible on my character. If someone could figure out or give me hints on what's wrong, I'd be forever thankful. ------ Please message me the solution if you find it. This is actually a private mod so I'm not too comfortable releasing all the files. ): Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724385 Share on other sites More sharing options...
Kzisor Posted February 18, 2016 Share Posted February 18, 2016 22 minutes ago, Oribani said: Please message me the solution if you find it. This is actually a private mod so I'm not too comfortable releasing all the files. ): The link has all the files needed for the mod. You have an issue with the animation; you're playing "idle", but in reality the animations are "HAT", "HAT_HAIR", "HAIR" and "HAIR_NOHAT". Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724395 Share on other sites More sharing options...
Oribani Posted February 18, 2016 Author Share Posted February 18, 2016 1 hour ago, Kzisor said: The link has all the files needed for the mod. You have an issue with the animation; you're playing "idle", but in reality the animations are "HAT", "HAT_HAIR", "HAIR" and "HAIR_NOHAT". I'm not sure if I'm doing it wrong, but changing it didn't do anything. It was still invisible. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724420 Share on other sites More sharing options...
Kzisor Posted February 19, 2016 Share Posted February 19, 2016 1 minute ago, Oribani said: I'm not sure if I'm doing it wrong, but changing it didn't do anything. It was still invisible. That was for when you drop the item on the ground, it would be invisible because you were playing the wrong animation. When you're wearing the item, change: owner.AnimState:OverrideSymbol("swap_hat", "swap_moonclip", "swap_hat") to owner.AnimState:OverrideSymbol("swap_hat", "moonclip", "Hat") and it should appear on your character. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724421 Share on other sites More sharing options...
Oribani Posted February 19, 2016 Author Share Posted February 19, 2016 It's still not appearing. What in the world am I doing wrong? Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724423 Share on other sites More sharing options...
Kzisor Posted February 19, 2016 Share Posted February 19, 2016 21 minutes ago, Oribani said: It's still not appearing. What in the world am I doing wrong? Not sure without the updated code. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724426 Share on other sites More sharing options...
Oribani Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) Here's the updated code. I tried doing the adjustments you replied with, but I think I'm doing something wrong. ----------- Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724431 Share on other sites More sharing options...
Kzisor Posted February 19, 2016 Share Posted February 19, 2016 2 minutes ago, Oribani said: Here's the updated code. I tried doing the adjustments you replied with, but I think I'm doing something wrong. http://www.mediafire.com/download/jeq54qa8qaqfqv2/moonclip%282%29.lua Okay, so I just noticed that in your first set of animation files in anim/moonclip.zip there is a folder there. That cannot contain folders it must contain only the anim, build and atlas files. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724433 Share on other sites More sharing options...
Oribani Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) Edit 3: I finally figured out how to compile my custom item, and now the ZIPs work! But my item is STILL invisible. lol I'm happy I figured out the problem though. ----- I guess the final issue is.. how to get the item not to be invisible. Was I suppose to do the .scml file like this or only do idle? Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724442 Share on other sites More sharing options...
Kzisor Posted February 19, 2016 Share Posted February 19, 2016 (edited) @Oribani the attached files work. The problem is most certainly with the .scml file. I'm not entirely sure why it wasn't working properly but, I've fixed it. Edited February 20, 2016 by Kzisor Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724483 Share on other sites More sharing options...
Oribani Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) omg thank you soo much!! Now it works, but is there a way I can change the position of it on my character? It kind of looks weird in the middle of my character's face lol Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724488 Share on other sites More sharing options...
Kzisor Posted February 19, 2016 Share Posted February 19, 2016 2 minutes ago, Oribani said: omg thank you soo much!! Now it works, but is there a way I can change the position of it on my character? It kind of looks weird in the middle of my character's face lol Open the .scml file and check the default pivot position (double click the image in the right side) then save and recompile the files with the auto compiler. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724489 Share on other sites More sharing options...
Oribani Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) @Kzisor I have one last favor to ask. Do you mind if you could change the position and size for me? I've been trying to do so myself, but it's not working out. This will probably be my last and only custom item after this experience Q_Q I want it on the side of the head like this (where the blue dot is, size I want is on the right of the dot) but I'm not really understanding the pivot points. You've done so much already, I feel bad about asking this ;_; Or maybe you could give me a step by step? Edited February 20, 2016 by Oribani Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724655 Share on other sites More sharing options...
Kzisor Posted February 20, 2016 Share Posted February 20, 2016 3 hours ago, Oribani said: @Kzisor I have one last favor to ask. Do you mind if you could change the position and size for me? I've been trying to do so myself, but it's not working out. This will probably be my last and only custom item after this experience Q_Q I want it on the side of the head like this (where the blue dot is, size I want is on the right of the dot) but I'm not really understanding the pivot points. You've done so much already, I feel bad about asking this ;_; Or maybe you could give me a step by step? It's all trial and error, doing it yourself will teach you what you need to do in order to make other items. Don't get discouraged keep at it, take a break if need be and work on something else and come back to it at a later time. Link to comment https://forums.kleientertainment.com/forums/topic/64462-issue-with-custom-item/#findComment-724743 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