Also, main chunk is usually a sign that something in the XML is trying to call something that it doesn't know about. It could either be that the xml is being listed in the txt file before the lua or it is misspelt of a totally wrong parameter has been passed, which could be due to what Seerah mentioned amongst others.
|