Neu7ral Posted September 21, 2015 Share Posted September 21, 2015 Hey, I'm actually making a character mod, this time i want to make it only by myself, even items, than Wildo didn't have, I'm doing actually a StateGraph, when he Attacks does like an overhead damage and has less cooldown doing attacks with the fist (more attack speed) now the problem is, how i need put the mycharacter.lua for the animations with all players, i did it this, but still i don't know with clientsinst:SetStateGraph("SGmycharacter")Now, how i can do the stategraph for clients? also, when the character dies he will use the wilson stategraph, or that i supposing if he does, because the animations become the normal ones. how i can do for fix that? Also, the armor is, my character wont be able to any armors, except his own, So, i want to make if no one except specific character would be equipable? If it's much, sorry, just low knowledge of that :<Thanks for took your time and visit this post! Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/ Share on other sites More sharing options...
DrSmugleaf Posted September 21, 2015 Share Posted September 21, 2015 Paste or upload your mod files if you can. Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-674747 Share on other sites More sharing options...
Neu7ral Posted September 21, 2015 Author Share Posted September 21, 2015 Paste or upload your mod files if you can.This is the character prefabwissphar.luaThey are their stategraph (It's a copypaste of the wilson stategraph but with attack animations changed)SGwissphar.luaSGwissphar_client.luaAnd the armor prefabarmor_wissphar.lua Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-674749 Share on other sites More sharing options...
Neu7ral Posted September 22, 2015 Author Share Posted September 22, 2015 Bump. Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675280 Share on other sites More sharing options...
DrSmugleaf Posted September 22, 2015 Share Posted September 22, 2015 Try this: Wissphar.zip Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675308 Share on other sites More sharing options...
Neu7ral Posted September 22, 2015 Author Share Posted September 22, 2015 (edited) Try this: IIt was some missing commas in armor prohibition, i added it, after restart the game and select the character i got this crash, Also, thanks for order my wissphar file, i really appreciated that.log.txt Edited September 22, 2015 by Neutral_Steve Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675331 Share on other sites More sharing options...
DrSmugleaf Posted September 22, 2015 Share Posted September 22, 2015 No problem! If you ever have any problems organizing files look at base game files or templates people have made, like character esctemplate. Sorry, first time dealing with stategraphs, try this instead: Wissphar.zip Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675339 Share on other sites More sharing options...
Neu7ral Posted September 22, 2015 Author Share Posted September 22, 2015 No problem! If you ever have any problems organizing files look at base game files or templates people have made, like character esctemplate. Sorry, first time dealing with stategraphs, try this instead:Locomotor bug now on client, also, use this file, i fixed some bugs related with the animations.SGwissphar_client.lua Also, about the armor, i can apply the same code of the restriction in the helmet too? Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675344 Share on other sites More sharing options...
DrSmugleaf Posted September 22, 2015 Share Posted September 22, 2015 All you need to do to add a new item is this: Let's assume the banned item's prefab is MyBannedItem:local disallowed_equipment = { armor_sanity = true, armorgrass = true, armorruins = true, armorwood = true, armormarble = true, footballhat = true, armordragonfly = true, armorsnurtleshell = true, slurtlehat = true, ruinshat = true, MyBannedItem = true,}local disallowed_equipment_comment = { armor_sanity = "It's too horrifying for use it, even if protects me.", armorgrass = "Wear this is like humiliate myself.", armorruins = "If you equip this now, you cheating... no caves, no ruins", armorwood = "I won't use this, wood doesn't is durable.", armormarble = "Sword is a good idea, but this is so sluggish", footballhat = "This helmet doesn't show potential for me", armordragonfly = "This armor would spray fire, i NEVER, use this.", armorsnurtleshell = "This has much goo, it's too strange.", slurtlehat = "This helmet it's ugly, and doesn't show dynamic potential.", ruinshat = "If you equip this now, you cheating... no caves, no ruins", MyBannedItem = "This item is banned",}So all you need to do is add it to the 2 tables, and make a comment for it like that. That is all. As for the locomotor bug, I really have no clue, my last guess would be this:Wissphar.zip Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675347 Share on other sites More sharing options...
Neu7ral Posted September 22, 2015 Author Share Posted September 22, 2015 (edited) All you need to do to add a new item is this: Let's assume the banned item's prefab is MyBannedItem:local disallowed_equipment = { armor_sanity = true, armorgrass = true, armorruins = true, armorwood = true, armormarble = true, footballhat = true, armordragonfly = true, armorsnurtleshell = true, slurtlehat = true, ruinshat = true, MyBannedItem = true,}local disallowed_equipment_comment = { armor_sanity = "It's too horrifying for use it, even if protects me.", armorgrass = "Wear this is like humiliate myself.", armorruins = "If you equip this now, you cheating... no caves, no ruins", armorwood = "I won't use this, wood doesn't is durable.", armormarble = "Sword is a good idea, but this is so sluggish", footballhat = "This helmet doesn't show potential for me", armordragonfly = "This armor would spray fire, i NEVER, use this.", armorsnurtleshell = "This has much goo, it's too strange.", slurtlehat = "This helmet it's ugly, and doesn't show dynamic potential.", ruinshat = "If you equip this now, you cheating... no caves, no ruins", MyBannedItem = "This item is banned",}So all you need to do is add it to the 2 tables, and make a comment for it like that. That is all. As for the locomotor bug, I really have no clue, my last guess would be this:I put again the character locomotor speed and that was corrected wissphar.lua about the banned item, i expressed badly, that was another thing, but nevermind that, also, now i have another crash log.txt also, inst:SetStateGraph(isghost and "SGwilsonghost_client" or "SGwisppharclient") this is correctly put?The SGwissphar_client would be the correct, and still causes crashes, Wissphar doesn't has a ghost stategraph. Also, Thanks for helping me on that Edited September 22, 2015 by Neutral_Steve Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675352 Share on other sites More sharing options...
DrSmugleaf Posted September 22, 2015 Share Posted September 22, 2015 Woops. It would be wispphar_client. And its wilsonghost_client because I noticed you didn't have one for wispphar.And no problem! Also, this should fix it, doesn't have whatever you did with the locomotor to fix it though so change that yourself:Wissphar.zip Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675354 Share on other sites More sharing options...
Neu7ral Posted September 23, 2015 Author Share Posted September 23, 2015 Woops. It would be wispphar_client. And its wilsonghost_client because I noticed you didn't have one for wispphar.And no problem! Also, this should fix it, doesn't have whatever you did with the locomotor to fix it though so change that yourself: Now the ghost cannot move, and the wissphar armor still can be wearable by all characters Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675361 Share on other sites More sharing options...
DrSmugleaf Posted September 23, 2015 Share Posted September 23, 2015 Oh, I didn't know you wanted wissphar's armor to only be wearable by wissphar. As for the ghost not being able to move, that might be because your mod is missing SGwilsonghost_client, try adding it. Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675363 Share on other sites More sharing options...
Neu7ral Posted September 23, 2015 Author Share Posted September 23, 2015 Oh, I didn't know you wanted wissphar's armor to only be wearable by wissphar. As for the ghost not being able to move, that might be because your mod is missing SGwilsonghost_client, try adding it.Still, this won't will work, I will check by myself about the stategraphs, still, thanks for help me to organize the armor restriction and another things If you know about the armor tell me, that will be useful for me Link to comment https://forums.kleientertainment.com/forums/topic/58014-help-stategraphs-and-armors/#findComment-675374 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