S0m3Dud3 Posted December 3, 2015 Share Posted December 3, 2015 (edited) I used this template http://forums.kleientertainment.com/files/file/367-spriter-example-equippable-item/but the image is too small in game, how do you scale it up?inst.Transform:SetScale(??, ??, ??) does not work. please help. just let me know how to enlarge it in game. p.s the size is fine when its on ground, but when equipped its small. Edited December 11, 2015 by S0m3Dud3 Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/ Share on other sites More sharing options...
S0m3Dud3 Posted December 3, 2015 Author Share Posted December 3, 2015 (edited) nvm, I used the spriter to adjust the size. and it works. let me know if i am doing it wrong Edited December 11, 2015 by S0m3Dud3 Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-691503 Share on other sites More sharing options...
S0m3Dud3 Posted December 5, 2015 Author Share Posted December 5, 2015 (edited) I just notice that resizing in spriter has limits, I need to enlarge it a bit more screenshots. http://imgur.com/KUFJTyk http://imgur.com/KwWRzrm adding inst.transform.scale only resize the item when on ground but when equipped nothing happens, anyone pls help Edited December 11, 2015 by S0m3Dud3 Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-692865 Share on other sites More sharing options...
S0m3Dud3 Posted December 6, 2015 Author Share Posted December 6, 2015 bump. Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-693309 Share on other sites More sharing options...
pickleplayer Posted December 6, 2015 Share Posted December 6, 2015 I'm actually not sure if there is any way to resize it. I'm not positive though.Maybe try changing the item's anim bank? If not, you'll probably have to take a different sprite with a larger image (like the spear) and work off of that instead Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-693589 Share on other sites More sharing options...
S0m3Dud3 Posted December 9, 2015 Author Share Posted December 9, 2015 hey thanks! one more question though. I am trying to add a name for my item so I added something like this in modmain above the prefab list. GLOBAL.STRINGS.NAME.SCANE = "Skull Cane"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.SCANE = "Magical whacking cane." PrefabFiles = { "scane", but I get error when I start the game. here is the screenshot of the error.http://imgur.com/kKoqYwE thanks in advance to anyone who can help. Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-695312 Share on other sites More sharing options...
pickleplayer Posted December 10, 2015 Share Posted December 10, 2015 Ah, I believe that you have to set the item's name in the prefab's file itself, not the modmain.You should be able to jut paste both of those strings into the prefab file to get it to work. (except you can take out the "GLOBAL." because you only need to use that when working in the modmain) Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-695584 Share on other sites More sharing options...
S0m3Dud3 Posted December 10, 2015 Author Share Posted December 10, 2015 it didn't work though, I get an error. I just added the string in the prefab file item.lua without the global. like you said. this is the tutorial I am following btw that is why I added it in the modmain yet I have no idea why I get error. http://forums.kleientertainment.com/topic/27341-tutorial-the-artists-guide-to-characteritem-modding/ Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-695592 Share on other sites More sharing options...
pickleplayer Posted December 10, 2015 Share Posted December 10, 2015 What error are you getting?Are you checking the line number that the error screen is giving you? That's often a big help to finding out where the problem is coming from. And also, if you want to be able to inspect your item, you will need "inst:AddComponent("inspectable")" in your item's prefab file Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-695816 Share on other sites More sharing options...
S0m3Dud3 Posted December 11, 2015 Author Share Posted December 11, 2015 (edited) if I add the string on top of the prefab item it does not give me the error msg it just freezes and closes the program. if I add the string inside the local function I get this errorhttp://imgur.com/x53ZpVH btw, just in case you didn't notice I have sent you my character via pm so you can check it as well. oh and I just want to have my item to have a name when you hover your mouse on it. so it wouldn't be "missing name". Edited December 11, 2015 by S0m3Dud3 Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696093 Share on other sites More sharing options...
pickleplayer Posted December 11, 2015 Share Posted December 11, 2015 Yea I checked it out but in the one you sent me the strings were not there.A crash to desktop usually means a syntax error. You don't have any extra periods or missing quotation marks right? Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696141 Share on other sites More sharing options...
S0m3Dud3 Posted December 11, 2015 Author Share Posted December 11, 2015 nope I don't. this is the only string I added in the prefab item. STRINGS.NAME.SCANE = "Skull Cane"STRINGS.CHARACTERS.GENERIC.DESCRIBE.SCANE = "Magical whacking cane." can you try it? copy pasting this string? Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696155 Share on other sites More sharing options...
S0m3Dud3 Posted December 12, 2015 Author Share Posted December 12, 2015 anyone help? Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696595 Share on other sites More sharing options...
Rincevvind Posted December 12, 2015 Share Posted December 12, 2015 Error in your picture clearly said that STRINGS.NAME is not existsit's mean that STRINGS is not defined or you trying to add field to table which is not existsyour issue is : you should use STRINGS.NAMESalso it's can be good to check table before adding something to prevent crashlikeif STRINGS.NAME then STRINGS.NAME.MYCOOLITEM = 'my cool item'endit's don't harm anything, but not add description too. Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696659 Share on other sites More sharing options...
S0m3Dud3 Posted December 12, 2015 Author Share Posted December 12, 2015 lol it works!. all this trouble for just a missing S xD. thanks man you are a genius! Link to comment https://forums.kleientertainment.com/forums/topic/59874-item-mod/#findComment-696739 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