Narh Posted December 29, 2015 Share Posted December 29, 2015 Spent the last 4 hours trying t fix the issue myself (via googling and these forums). The Error that causes the crash:[00:02:18]: Received request to spawn as () eve from Viv the Ferret Lady[00:02:18]: Received clothing request () () () ()[00:02:18]: Validated skin: eve () () () () ()[00:02:18]: [string "../mods/workshop-586844958/scripts/prefabs/..."]:48: attempt to index field 'combat' (a nil value)LUA ERROR stack traceback:../mods/workshop-586844958/scripts/prefabs/eve.lua:48 in (upvalue) common_postinit (Lua) <39-54> inst = 125326 - (valid:true)scripts/prefabs/player_common.lua:1555 in (field) fn (Lua) <1462-1769> inst = 125326 - (valid:true)scripts/mainfunctions.lua:148 in () ? (Lua) <137-179> name = eve prefab = Prefab eve - [00:02:18]: [string "../mods/workshop-586844958/scripts/prefabs/..."]:48: attempt to index field 'combat' (a nil value)LUA ERROR stack traceback: ../mods/workshop-586844958/scripts/prefabs/eve.lua:48 in (upvalue) common_postinit (Lua) <39-54> scripts/prefabs/player_common.lua:1555 in (field) fn (Lua) <1462-1769> scripts/mainfunctions.lua:148 in () ? (Lua) <137-179> [00:02:18]: Force aborting...And the character prefab.lue is attachedeve.lua Link to comment Share on other sites More sharing options...
Muche Posted December 29, 2015 Share Posted December 29, 2015 I don't have experience with custom characters, but looking at the code of player_common's MakePlayerCharacter, it seems your fn is assigned to common_postinit which gets executed before most of components are added.Tryreturn MakePlayerCharacter("eve", prefabs, assets, nil, fn) Link to comment 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