Jump to content

Recommended Posts

4 hours ago, PuppyWolf said:

Hey I'm trying to mod my own character into the game, and i'm trying to use some of wortox's abilities but I seem to run into an issue I can't seem to figure out anyone mind helping me out with it?

lua issue.png

can you upload your character.lua. The problem is in your character.lua on 9th line

22 minutes ago, AkaiNight said:

can you upload your character.lua. The problem is in your character.lua on 9th line

Yeah I can definitely do that here you go i'm brand new to doing this kind of stuff but not very good at it yet haha

wolfshier.lua

51 minutes ago, PuppyWolf said:

Yeah I can definitely do that here you go i'm brand new to doing this kind of stuff but not very good at it yet haha

wolfshier.lua

you should delete

    Asset("SCRIPT", "scripts/prefabs/wolfshier_soul_common.lua"),

in your character.lua

you should put it in modmain.lua
my character has a bow named shirayuki and it has shirayuki.lua like yours so you should put it like that

PrefabFiles= {
	"kitsura",
	"kitsura_none",
	"shirayuki",
	}

 

15 minutes ago, AkaiNight said:

you should delete


    Asset("SCRIPT", "scripts/prefabs/wolfshier_soul_common.lua"),

in your character.lua

you should put it in modmain.lua
my character has a bow named shirayuki and it has shirayuki.lua like yours so you should put it like that


PrefabFiles= {
	"kitsura",
	"kitsura_none",
	"shirayuki",
	}

 

So I did delete the line and moved it, and it gave me a different error but then I removed the complete line instead as well to see what was causing it and gave me this same error5e199d7a806f2_luaissue.thumb.png.7b37651443796f830a3ad4858f6c617f.png

17 minutes ago, AkaiNight said:

you should delete


    Asset("SCRIPT", "scripts/prefabs/wolfshier_soul_common.lua"),

in your character.lua

you should put it in modmain.lua
my character has a bow named shirayuki and it has shirayuki.lua like yours so you should put it like that


PrefabFiles= {
	"kitsura",
	"kitsura_none",
	"shirayuki",
	}

 

Do you want me to send the whole character to see what was wrong?

30 minutes ago, PuppyWolf said:

So I did delete the line and moved it, and it gave me a different error but then I removed the complete line instead as well to see what was causing it and gave me this same error5e199d7a806f2_luaissue.thumb.png.7b37651443796f830a3ad4858f6c617f.png

Do you want me to send the whole character to see what was wrong?

it would be great

7 hours ago, PuppyWolf said:

I feel like I might of messed a lot up XD

well i have some exams and i cant give time for dst im sorry for waiting you but i'll take a loot as soon as possible. can you give some info about your character what did you try to add?

 

29 minutes ago, AkaiNight said:

well i have some exams and i cant give time for dst im sorry for waiting you but i'll take a loot as soon as possible. can you give some info about your character what did you try to add?

 

for now this character is base with just night vision, but I tried to make own version of wortox with his soul abilities, by grabbing his scripts and tried to make it my own, and seemed to have messed it up somehow and can't seem to fix the errors popping up.

And I completely understand about the exams I'm patient myself :3

On 14.01.2020 at 2:10 PM, PuppyWolf said:

for now this character is base with just night vision, but I tried to make own version of wortox with his soul abilities, by grabbing his scripts and tried to make it my own, and seemed to have messed it up somehow and can't seem to fix the errors popping up.

And I completely understand about the exams I'm patient myself :3

I don'k know about wortox can you explain? Also why do you use this 

    inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH)
    inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER)
    inst.components.sanity:SetMax(TUNING.wolfshier_SANITY)
local function master_postinit(inst)
    inst.starting_inventory = start_inv[TheNet:GetServerGameMode()] or start_inv.default

    inst.customidleanim = "idle_wolfshier"

    inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH)
    inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER)
    inst.components.sanity:SetMax(TUNING.wolfshier_SANITY)
    inst.components.sanity.neg_aura_mult = TUNING.wolfshier_SANITY_AURA_MULT

    if inst.components.eater ~= nil then
        inst.components.eater:SetAbsorptionModifiers(TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT)
    end

    inst:AddComponent("souleater")
    inst.components.souleater:SetOnEatSoulFn(OnEatSoul)

    inst._checksoulstask = nil

    inst:ListenForEvent("gotnewitem", OnGotNewItem)
    inst:ListenForEvent("dropitem", OnDropItem)
    inst:ListenForEvent("soulhop", OnSoulHop)
    inst:ListenForEvent("murdered", OnMurdered)
    inst:ListenForEvent("harvesttrapsouls", OnHarvestTrapSouls)
    inst:ListenForEvent("ms_respawnedfromghost", OnRespawnedFromGhost)
    inst:ListenForEvent("ms_becameghost", OnBecameGhost)

    OnRespawnedFromGhost(inst)
end

in that one? It worked when i delete them but with a little problem it starts on sea :/

Your character works with that check it and let me know if anything missing

wolfshier.lua

On 1/15/2020 at 2:55 PM, AkaiNight said:

I don'k know about wortox can you explain? Also why do you use this 


    inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH)
    inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER)
    inst.components.sanity:SetMax(TUNING.wolfshier_SANITY)

local function master_postinit(inst)
    inst.starting_inventory = start_inv[TheNet:GetServerGameMode()] or start_inv.default

    inst.customidleanim = "idle_wolfshier"

    inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH)
    inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER)
    inst.components.sanity:SetMax(TUNING.wolfshier_SANITY)
    inst.components.sanity.neg_aura_mult = TUNING.wolfshier_SANITY_AURA_MULT

    if inst.components.eater ~= nil then
        inst.components.eater:SetAbsorptionModifiers(TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT)
    end

    inst:AddComponent("souleater")
    inst.components.souleater:SetOnEatSoulFn(OnEatSoul)

    inst._checksoulstask = nil

    inst:ListenForEvent("gotnewitem", OnGotNewItem)
    inst:ListenForEvent("dropitem", OnDropItem)
    inst:ListenForEvent("soulhop", OnSoulHop)
    inst:ListenForEvent("murdered", OnMurdered)
    inst:ListenForEvent("harvesttrapsouls", OnHarvestTrapSouls)
    inst:ListenForEvent("ms_respawnedfromghost", OnRespawnedFromGhost)
    inst:ListenForEvent("ms_becameghost", OnBecameGhost)

    OnRespawnedFromGhost(inst)
end

in that one? It worked when i delete them but with a little problem it starts on sea :/

Your character works with that check it and let me know if anything missing

wolfshier.lua

hey sorry for the long reply, So wortox is a DLC character, in the game who has a mechanic who uses souls from enemies to regain hp, heal others, and fill his own hunger, while the down side normal food doesnt give him much, and the script for that, I started out with the base escapetemplate I found and tried to make it my own.

 

But I'll go ahead and try this out and if theres any errors or issues I'll let you know

10 minutes ago, PuppyWolf said:

hey sorry for the long reply, So wortox is a DLC character, in the game who has a mechanic who uses souls from enemies to regain hp, heal others, and fill his own hunger, while the down side normal food doesnt give him much, and the script for that, I started out with the base escapetemplate I found and tried to make it my own.

 

But I'll go ahead and try this out and if theres any errors or issues I'll let you know

So now as soon as I killed something this popped up i'm trying to figure it out right now

new error.png

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...