Jump to content

Recommended Posts

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 clients

inst: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!

Paste or upload your mod files if you can.

This is the character prefab

wissphar.lua

They are their stategraph (It's a copypaste of the wilson stategraph but with attack animations changed)

SGwissphar.lua

SGwissphar_client.lua

And the armor prefab

armor_wissphar.lua

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 by Neutral_Steve

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?

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

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 :p

Edited by Neutral_Steve

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...