tag:blogger.com,1999:blog-8980149464912824496.post5032717817577937106..comments2022-03-24T15:29:37.388-07:00Comments on TechNeilogy: Compiling Lua with Visual Studio 2010TechNeilogyhttp://www.blogger.com/profile/06377881138289568562noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8980149464912824496.post-46294515132424039382016-11-13T04:45:12.849-08:002016-11-13T04:45:12.849-08:00how to run .lua files in visual studio?how to run .lua files in visual studio?Anonymoushttps://www.blogger.com/profile/17480712470494009899noreply@blogger.comtag:blogger.com,1999:blog-8980149464912824496.post-59257971263073369212013-07-14T13:39:33.622-07:002013-07-14T13:39:33.622-07:00No worries, TechNeilogy. I figured that was the ca...No worries, TechNeilogy. I figured that was the case.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980149464912824496.post-23312411760998595732013-07-14T07:13:24.157-07:002013-07-14T07:13:24.157-07:00Thanks for the info! (BTW, I apologize, NauticalM...Thanks for the info! (BTW, I apologize, NauticalMile, for not moderating this in immediately. It was not deliberate, I just missed the comment email from Blogger; sorry)TechNeilogyhttps://www.blogger.com/profile/06377881138289568562noreply@blogger.comtag:blogger.com,1999:blog-8980149464912824496.post-66048525440447962752013-06-18T12:54:17.089-07:002013-06-18T12:54:17.089-07:00Excellent article.
I just want to mention somethi...Excellent article.<br /><br />I just want to mention something for those of anyone interested in step 3) (for Windows). This process was not immediately obvious to me so I thought I would document it here.<br /><br />To be able to run a Lua script within any directory, you need to set the PATH Environment Variable to a location where the executable can be found. It would be wise to put it in a new folder (e.g. \Lua\) inside %CommonProgramFiles% or somewhere like that. Then set the PATH variable to that location. I would recommend (re)naming the executable 'lua' for simplicity.<br /><br />Now here's the part where I got hung up: if you were already running the command prompt when you changed/updated the PATH environment variable <b> you need to restart the command prompt in order to make use of the new PATH. </b><br /><br />Then you can run the stand-alone interpreter by simply typing<br /><br /><i>lua</i><br /><br />or you can run a Lua script by typing <br /><br /><i>lua scriptname.lua</i><br /><br />Finally any of the command line options are also functional. For example you can type <br /><br /><i>lua -i -llib1 -e "x = 10"</i><br /><br />to load a library located in the current directory called lib1.lua, execute the statement x=10, and finally jump into interactive mode.<br /><br />Hope this helps.NauticalMilehttps://www.blogger.com/profile/01484960503229343748noreply@blogger.comtag:blogger.com,1999:blog-8980149464912824496.post-30605508773903458922013-04-25T02:48:48.290-07:002013-04-25T02:48:48.290-07:00magic, very clear many thanksmagic, very clear many thanksAnonymousnoreply@blogger.com