Jump to content

Recommended Posts

Hello there, dear Community! :grin:
 
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

Hello there, dear Community! :grin:

 

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! :grin:

 

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>

 

 

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

post-637648-0-94070900-1446583127_thumb.

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.

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! :D

Thank you for the help again!

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