tumira Posted June 8, 2017 Share Posted June 8, 2017 Hi In latest 4.4Beta this line wont work anymore window=Window:Create(title,0,0,System:GetProperty("screenwidth","1920"),System:GetProperty("screenheight","1080"),Window.FullScreen) Previous beta it is working just fine. Im using FPS template in AI and Event map. It comes up with error attempt to index global 'window' (a nil value) Link to comment Share on other sites More sharing options...
Crazycarpet Posted June 10, 2017 Share Posted June 10, 2017 "Window" or "window" it's certainly not "window" because you're assigning the global variable and never reading from it... big difference. Josh probably simply forgot to expose the Window class to Lua. Link to comment Share on other sites More sharing options...
macklebee Posted June 11, 2017 Share Posted June 11, 2017 8 hours ago, Crazycarpet said: Josh probably simply forgot to expose the Window class to Lua. The other window styles available work just fine, but for some reason 'Window.FullScreen' or 'Window.Fullscreen' no longer works. Quote "Window" or "window" it's certainly not "window" because you're assigning the global variable and never reading from it... big difference. It errors whenever the variable 'window' is used after it fails to create the window due to the fullscreen style not working any more. Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Crazycarpet Posted June 11, 2017 Share Posted June 11, 2017 Well that's what I assumed but he said that the line it errors on is the one where he creates the window... that error isn't even possible on that specific line. Good to know though, going to wait to update to 4.4 beta. Link to comment Share on other sites More sharing options...
Josh Posted June 12, 2017 Share Posted June 12, 2017 Thanks, I got it worked out. Will be fixed in next build. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts