Right, exactly what I thougth and experienced until today.
Not sure what the problem here is but I never had these NIL problems happening if:
-txt file order of XML was before lua and no <OnInitialization> tried to access stuff that was inside the lua file
-even_player_activated or event_add_on_loaded fired
Thats why I asked for the complete source.
Perhaps your files use UTF-8 encoding with a ByteOrderMark. Sometimes this freaks out the ingame addon manager, especially if this is set at the addon's txt file!
So make sure if utf8 is used the BOM is removed on all txt and lua files.
|