Solarus-Games English Forum

Solarus => Development => Topic started by: GameboyArda on January 28, 2016, 07:47:14 PM

Title: Npc Problem...
Post by: GameboyArda on January 28, 2016, 07:47:14 PM
I have the problem on my npc that gives this error...
(http://i68.tinypic.com/dtw5l.jpg)
Title: Re: Npc Problem...
Post by: Diarandor on January 28, 2016, 08:23:43 PM
You need to learn to understand these errors to solve them by yourself, it's very easy and necessary.

Anyway, in your case:
1. In your monsters encyclopedia script at line 68, you are trying to concatenate (to some string) something that is nil (check your variables there). A nil value cannot be concatenated.
2. In your map script "map/out/a1.lua", at line 4, you are using a "game" variable that has not been defined, so it's nil. A nil value cannot be indexed or accessed like a table, obviously.
Title: Re: Npc Problem...
Post by: MetalZelda on January 28, 2016, 08:34:36 PM
Hmmm, since you got this from ROTHSE, you might check the NPC that manage this from this game, this error seems related.
Or, a value isn't initialized at the begining.
For the "game" error, it's simple, you need to define what the "game" object is.
Title: Re: Npc Problem...
Post by: GameboyArda on January 29, 2016, 05:39:45 PM
I fixed the problem and now will make youtube video of maping! :)