Zasp Posted July 10, 2016 Share Posted July 10, 2016 I want to know how to make a character in which dmg and maybe speed scales with sanity. damage is base of Wilson: x0.20 and 1 speed at 100 sanity and x5 dmg and 1.2 speed at 0 sanity Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/ Share on other sites More sharing options...
Zasp Posted July 11, 2016 Author Share Posted July 11, 2016 [00:00:40]: [string "scripts/mainfunctions.lua"]:90: Error loading file prefabs/zasp [string "../mods/Zasp/scripts/prefabs/zasp.lua"]:39: unfinished string near '"local start_inv = {' LUA ERROR stack traceback: =[C] in function 'assert' scripts/mainfunctions.lua(90,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(118,1) scripts/mods.lua(557,1) in function 'RegisterPrefabs' scripts/gamelogic.lua(216,1) in function 'LoadAssets' scripts/gamelogic.lua(831,1) in function 'LoadSlot' scripts/gamelogic.lua(887,1) in function 'DoResetAction' scripts/gamelogic.lua(933,1) in function 'complete_callback' scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState' ... =[C] in function 'GetPersistentString' scripts/saveindex.lua(246,1) in function 'Load' scripts/gamelogic.lua(973,1) in function 'callback' scripts/playerprofile.lua(826,1) in function 'Set' scripts/playerprofile.lua(688,1) =[C] in function 'GetPersistentString' scripts/playerprofile.lua(686,1) in function 'Load' scripts/gamelogic.lua(972,1) in main chunk =[C] in function 'require' scripts/mainfunctions.lua(804,1) error i get when i try to enter the game... Help anyone? Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/#findComment-791674 Share on other sites More sharing options...
Zasp Posted July 11, 2016 Author Share Posted July 11, 2016 Quote 1 hour ago, Zasp said: [00:00:40]: [string "scripts/mainfunctions.lua"]:90: Error loading file prefabs/zasp [string "../mods/Zasp/scripts/prefabs/zasp.lua"]:39: unfinished string near '"local start_inv = {' LUA ERROR stack traceback: =[C] in function 'assert' scripts/mainfunctions.lua(90,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(118,1) scripts/mods.lua(557,1) in function 'RegisterPrefabs' scripts/gamelogic.lua(216,1) in function 'LoadAssets' scripts/gamelogic.lua(831,1) in function 'LoadSlot' scripts/gamelogic.lua(887,1) in function 'DoResetAction' scripts/gamelogic.lua(933,1) in function 'complete_callback' scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState' ... =[C] in function 'GetPersistentString' scripts/saveindex.lua(246,1) in function 'Load' scripts/gamelogic.lua(973,1) in function 'callback' scripts/playerprofile.lua(826,1) in function 'Set' scripts/playerprofile.lua(688,1) =[C] in function 'GetPersistentString' scripts/playerprofile.lua(686,1) in function 'Load' scripts/gamelogic.lua(972,1) in main chunk =[C] in function 'require' scripts/mainfunctions.lua(804,1) error i get when i try to enter the game... Help anyone? This is fixed by a friend. Now the idea for the coding still remains *btw i do not know how to edit replies so.. Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/#findComment-791683 Share on other sites More sharing options...
Zasp Posted July 11, 2016 Author Share Posted July 11, 2016 Error No. 9 [00:01:19]: [string "scripts/util.lua"]:449: Could not find an asset matching images/avatar/zasp_avatar.tex in any of the search paths. LUA ERROR stack traceback: =[C]:-1 in (global) assert (C) <-1--1> scripts/util.lua:449 in (global) resolvefilepath (Lua) <444-452> scripts/mainfunctions.lua:70 in (global) RegisterPrefabs (Lua) <63-81> scripts/mods.lua:578 in (method) RegisterPrefabs (Lua) <538-584> scripts/gamelogic.lua:216 in (upvalue) LoadAssets (Lua) <136-234> scripts/gamelogic.lua:831 in (upvalue) LoadSlot (Lua) <827-838> scripts/gamelogic.lua:887 in (upvalue) DoResetAction (Lua) <842-923> scripts/gamelogic.lua:933 in (local) complete_callback (Lua) <925-934> scripts/upsell.lua:27 in (global) UpdateGamePurchasedState (Lua) <11-30> scripts/gamelogic.lua:957 in (local) callback (Lua) <936-958> scripts/saveindex.lua:239 in (upvalue) OnLoad (Lua) <192-241> scripts/saveindex.lua:248 in () ? (Lua) <247-249> =[C]:-1 in (method) GetPersistentString (C) <-1--1> scripts/saveindex.lua:246 in (method) Load (Lua) <243-250> scripts/gamelogic.lua:973 in (local) callback (Lua) <972-974> scripts/playerprofile.lua:826 in (method) Set (Lua) <700-829> scripts/playerprofile.lua:688 in () ? (Lua) <687-689> =[C]:-1 in (method) GetPersistentString (C) <-1--1> scripts/playerprofile.lua:686 in (method) Load (Lua) <685-690> scripts/gamelogic.lua:972 in () ? (main) <0-0> =[C]:-1 in (global) require (C) <-1--1> scripts/mainfunctions.lua:804 in () ? (Lua) <797-819> Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/#findComment-791707 Share on other sites More sharing options...
Aquaterion Posted July 11, 2016 Share Posted July 11, 2016 the file zasp_avatar.tex doesnt exist in images/avatar/ once u have it, you will not get this crash Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/#findComment-791733 Share on other sites More sharing options...
lolke12 Posted July 11, 2016 Share Posted July 11, 2016 Yo, could you post the code that makes your character's attack/speed scale with sanity? I made a post some hours before you asking for help about about just that as i also want to do that to my character, but i don't even know where to start with the coding, so some refrence material would be nice Link to comment https://forums.kleientertainment.com/forums/topic/68765-need-help-with-coding-for-character-mod/#findComment-791797 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