Invarkul Posted October 1, 2019 Share Posted October 1, 2019 (edited) Hello. I was about to create my 2nd mod that adds a character from brawl stars, but have faced a problem. My swap item (named mrbat) is invisible. It works properly as a weapon and droped texture works as well. I used Hambat CODE for this but modified it. Both anim zip files created with png and scml, so I'm certain that the problem isn't about names (but mb). Also I found out that compilater works pretty weird. To create an zip files for anim foulder it requires: png and scml in both foulders (exported and anim) but takes scml's only from exported... BTW I will be very thankful if someone will help me with that issue NEVERMIND. I was manage to do that myself. Now it's working perfectly. Cya Bibi.7z Edited October 1, 2019 by Invarkul Link to comment https://forums.kleientertainment.com/forums/topic/112290-custom-swap_item-is-invisible/ Share on other sites More sharing options...
Ultroman Posted October 2, 2019 Share Posted October 2, 2019 It should not require scmls and PNGs to be placed in the anim folder. That will create a duplicate and non-working zip file in the anim folder. If you completely delete your anim folder, the DS Mod Tools' Auto Compiler should automatically create the folder and add the correctly compiled zips to it, assuming that the scml's and PNGs are made correctly and have the correct folder/file structure. Oh, you fixed it. Awesome Link to comment https://forums.kleientertainment.com/forums/topic/112290-custom-swap_item-is-invisible/#findComment-1267275 Share on other sites More sharing options...
Invarkul Posted October 21, 2019 Author Share Posted October 21, 2019 On 03.10.2019 at 1:39 AM, Ultroman said: It should not require scmls and PNGs to be placed in the anim folder. That will create a duplicate and non-working zip file in the anim folder. If you completely delete your anim folder, the DS Mod Tools' Auto Compiler should automatically create the folder and add the correctly compiled zips to it, assuming that the scml's and PNGs are made correctly and have the correct folder/file structure. Oh, you fixed it. Awesome I'm sorry if asking this here is inappropriate but I saw you helped so much people so I think it will be peace of cake. Recently I created my second mod and everything appear to be working, but I found out that my function that makes my item unpickable for other characters crushing my game while putted into chest or at the fight agains toadstool. Here is the function Quote inst.components.inventoryitem.onputininventoryfn = function(inst, player) if player.prefab ~= "bibi" then inst:DoTaskInTime(0.01, function() player.components.inventory:DropItem(inst) player.components.talker:Say("I don't want to cut of my toes with it!") end) end end or whole weapon prefab. I will be greatful if you help me with that mrdevil.lua Link to comment https://forums.kleientertainment.com/forums/topic/112290-custom-swap_item-is-invisible/#findComment-1274467 Share on other sites More sharing options...
Ultroman Posted October 23, 2019 Share Posted October 23, 2019 This post has the code for making it so no one else can pick up a particular item. Link to comment https://forums.kleientertainment.com/forums/topic/112290-custom-swap_item-is-invisible/#findComment-1275210 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