PuppyWolf Posted January 11, 2020 Share Posted January 11, 2020 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? Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/ Share on other sites More sharing options...
AkaiNight Posted January 11, 2020 Share Posted January 11, 2020 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? can you upload your character.lua. The problem is in your character.lua on 9th line Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298169 Share on other sites More sharing options...
PuppyWolf Posted January 11, 2020 Author Share Posted January 11, 2020 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 Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298176 Share on other sites More sharing options...
AkaiNight Posted January 11, 2020 Share Posted January 11, 2020 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", } Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298177 Share on other sites More sharing options...
PuppyWolf Posted January 11, 2020 Author Share Posted January 11, 2020 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 error 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? Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298182 Share on other sites More sharing options...
AkaiNight Posted January 11, 2020 Share Posted January 11, 2020 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 error Do you want me to send the whole character to see what was wrong? it would be great Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298190 Share on other sites More sharing options...
PuppyWolf Posted January 12, 2020 Author Share Posted January 12, 2020 16 hours ago, AkaiNight said: it would be great hey sorry for long reply had to go to bed and go to work XD but here is the full zip file Wolfshier forum.zip Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298348 Share on other sites More sharing options...
PuppyWolf Posted January 14, 2020 Author Share Posted January 14, 2020 On 1/11/2020 at 2:35 AM, AkaiNight said: it would be great I feel like I might of messed a lot up XD 1 Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298704 Share on other sites More sharing options...
AkaiNight Posted January 14, 2020 Share Posted January 14, 2020 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? Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298772 Share on other sites More sharing options...
PuppyWolf Posted January 14, 2020 Author Share Posted January 14, 2020 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 Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1298777 Share on other sites More sharing options...
AkaiNight Posted January 15, 2020 Share Posted January 15, 2020 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 Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1299198 Share on other sites More sharing options...
PuppyWolf Posted January 18, 2020 Author Share Posted January 18, 2020 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 Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1299709 Share on other sites More sharing options...
AkaiNight Posted January 18, 2020 Share Posted January 18, 2020 can you upload your log file. it seems like the problem in wolfsier.lua and line 133-148 and 199 for details you should look at log Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1299792 Share on other sites More sharing options...
PuppyWolf Posted January 19, 2020 Author Share Posted January 19, 2020 9 hours ago, AkaiNight said: can you upload your log file. it seems like the problem in wolfsier.lua and line 133-148 and 199 for details you should look at log I think these are it client_log.txt DxDiag.txt Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1299915 Share on other sites More sharing options...
AkaiNight Posted January 19, 2020 Share Posted January 19, 2020 Just now, PuppyWolf said: I think these are it client_log.txt DxDiag.txt well the problem is on line 141 and 199 in character.lua Link to comment https://forums.kleientertainment.com/forums/topic/114907-lua-scripting-help/#findComment-1299916 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