|
Post by X-Drop on Dec 9, 2005 17:26:36 GMT -5
It's always the little things that just get overlooked! For hours now I have been struggling to get my script to read commands from the console. > .Lunar command Leviathan.lua command1 command2 etc... > Command=Windower.script_GetCommand() But to no avail. So then I decided I should just try and get a count on the number of current commands waiting to be processed. > CommandCount=Windower.script_GetCommandCount() But even still, I would just get CommandCount=0!! So then its off to disecting my current script. 1000+ lines, but no big deal since its all in nice big functions. I erased each function all the way to the top while rerunning the script to see if it finally would recognize the console commands. And, lol, wouldnt you know it, the problem was my very first line.... line #1 of 1000+ freaking lines! The script's name is "Leviathan.lua". Now being all cute I recently personalized the script with a name, author, version, contact, etc. The one that got me.... > Windower.script_SetName("Leviathan") Slaped me in the face when I realized I had actually renamed my file!! 3 hours watsed, but problem solved in the end. This is one pitfall you should try to avoid.
|
|