CatCoon97 Posted November 2, 2015 Share Posted November 2, 2015 Hello there, dear Community! I just want to ask for something... Do someone from The Community could help me with scripting? xD Or just tell me how it works...I wanted to do a companion like Abigail for my custom character... I would like to give it a mind of Abigail and/or Glommer...I searched in the data/scripts/brains and I found their brains... There is still a problem, because when I start the game with The Wolf (name of the creature) enabled, the game crashes and it says that: [string "scripts/behaviours/chaseandattack.lua"]:40: attempt to index local 'combat' (a nil value)]LUA ERROR stack traceback: scripts/behaviours/chaseandattack.lua:40 in (method) Visit (Lua) <35-131> Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/ Share on other sites More sharing options...
CatCoon97 Posted November 2, 2015 Author Share Posted November 2, 2015 Hello there, dear Community! I just want to ask for something... Do someone from The Community could help me with scripting? xD Or just tell me how it works...I wanted to do a companion like Abigail for my custom character... I would like to give it a mind of Abigail and/or Glommer...I searched in the data/scripts/brains and I found their brains... There is still a problem, because when I start the game with The Wolf (name of the creature) enabled, the game crashes and it says that: [string "scripts/behaviours/chaseandattack.lua"]:40: attempt to index local 'combat' (a nil value)]LUA ERROR stack traceback: scripts/behaviours/chaseandattack.lua:40 in (method) Visit (Lua) <35-131> Something messed up and I didn't end... Let me end xD: [string "scripts/behaviours/chaseandattack.lua"]:40: attempt to index local 'combat' (a nil value)]LUA ERROR stack traceback: scripts/behaviours/chaseandattack.lua:40 in (method) Visit (Lua) <35-131> Hello there, dear Community! I just want to ask for something... Do someone from The Community could help me with scripting? xD Or just tell me how it works...I wanted to do a companion like Abigail for my custom character... I would like to give it a mind of Abigail and/or Glommer...I searched in the data/scripts/brains and I found their brains... There is still a problem, because when I start the game with The Wolf (name of the creature) enabled, the game crashes and it says that: [string "scripts/behaviours/chaseandattack.lua"]:40: attempt to index local 'combat' (a nil value)]LUA ERROR stack traceback: scripts/behaviours/chaseandattack.lua:40 in (method) Visit (Lua) <35-131> Something messed up and I didn't end... Let me end xD: [string "scripts/behaviours/chaseandattack.lua"]:40: attempt to index local 'combat' (a nil value)]LUA ERROR stack traceback: scripts/behaviours/chaseandattack.lua:40 in (method) Visit (Lua) <35-131> Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-683985 Share on other sites More sharing options...
CatCoon97 Posted November 2, 2015 Author Share Posted November 2, 2015 Maybe I'll just post an image... Sorry for that double spam... Something is really messing up with my keyboard :/ Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-683988 Share on other sites More sharing options...
Arkathorn Posted November 2, 2015 Share Posted November 2, 2015 Presumably the prefab for your creature does not have a 'combat' component. Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-683990 Share on other sites More sharing options...
CatCoon97 Posted November 2, 2015 Author Share Posted November 2, 2015 Presumably the prefab for your creature does not have a 'combat' component. Thanks for the help! I tried and it worked! Thank you again! Now I need only to make some attack animations for it! ^^ Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-684007 Share on other sites More sharing options...
CatCoon97 Posted November 3, 2015 Author Share Posted November 3, 2015 Presumably the prefab for your creature does not have a 'combat' component. And... Can you help me with this? Sorry for making a problem, but I'm new at this and if you'll help I will be very happy, thanks alot! Here is the another crash... Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-684244 Share on other sites More sharing options...
Arkathorn Posted November 3, 2015 Share Posted November 3, 2015 Hmm...Well, I don't know much about stategraphs, but my best guess would be that there is a syntax error somewhere (Probably on line 45, next to the keyword 'local'). Another potential issue could be the file name. Make sure that your file doesn't share a name and position with any of the base game's files. But again, I'm completely guessing here. Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-684247 Share on other sites More sharing options...
CatCoon97 Posted November 3, 2015 Author Share Posted November 3, 2015 Hmm...Well, I don't know much about stategraphs, but my best guess would be that there is a syntax error somewhere (Probably on line 45, next to the keyword 'local'). Another potential issue could be the file name. Make sure that your file doesn't share a name and position with any of the base game's files. But again, I'm completely guessing here. Woah... Thanks for the reply... I will try that! Thank you for the help again! Link to comment https://forums.kleientertainment.com/forums/topic/58813-the-lambs-companion-help/#findComment-684253 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