drarem Posted June 7, 2015 Share Posted June 7, 2015 Any idea why a tester is getting this crash? http://i.imgur.com/L3uI4zF.png Specs: Windows 7 64-bit Intel Core i3-3220 CPU @ 3.30GHZ 8GB RAM Geforce GT 620 Thanks. Quote Link to comment Share on other sites More sharing options...
DerRidda Posted June 7, 2015 Share Posted June 7, 2015 Something either went wrong during Window creation or it was skipped entirely or maybe a forgotten 'self'. Best to post your App.lua script here. Quote Link to comment Share on other sites More sharing options...
drarem Posted June 7, 2015 Author Share Posted June 7, 2015 self.window = 0 --Create a window/ hide mouse functon at very bottom self.window:HideMouse() local windowstyle = window.FullScreen if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end self.window=Window:Create(self.title,0,0,System:GetProperty("screenwidth","1600"),System:GetProperty("screenheight","900"),windowstyle) self.window:ShowMouse() --- line 96 Quote Link to comment Share on other sites More sharing options...
DerRidda Posted June 7, 2015 Share Posted June 7, 2015 I can nail down the exact reason for the crash but just from snippet you have posted I can already see a few 'unclean' things. 1st: Why are you even setting 'self.window=0' at all? There's no need for that and even though Lua isn't strictly typed, this could cause issues more than be helpful. It should actually be hard to even detect window being nil with that in the code. You should be seeing type issues instead. Judging from that I somehow fear that you are setting self.window to nil somewhere in the lines you didn't post. 2nd: Setting 'windowstyle = window.FullScreen' will cause issues while keeping if 'System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end' if somebody actually ever uses command line option for fullscreen, as window.FullScreen .titlebar are actually just constant numbers that, when added, give a sum that can be uniquely traced back to the flags that were set. Adding the same constant twice should never happen here. I would strongly recommend pasting the entire App.lua contents unless you are hiding the secret sauce there. Quote Link to comment Share on other sites More sharing options...
drarem Posted June 7, 2015 Author Share Posted June 7, 2015 That's pretty much the window init code, nothing cut out. I do have the self.title="Pump-Action Captain" right above it. I commented out: self.window = 0 if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end Will see if this helps, but it's almost like the person's pc doesn't support 1600x900 resolution? Thanks. Quote Link to comment Share on other sites More sharing options...
Einlander Posted June 7, 2015 Share Posted June 7, 2015 I would create a new blank template, then copy the app.lua there. Quote Link to comment Share on other sites More sharing options...
Einlander Posted June 7, 2015 Share Posted June 7, 2015 That's pretty much the window init code, nothing cut out. I do have the self.title="Pump-Action Captain" right above it. I commented out: self.window = 0 if System:GetProperty("fullscreen")=="1" then windowstyle=windowstyle+window.FullScreen end Will see if this helps, but it's almost like the person's pc doesn't support 1600x900 resolution? Thanks. 1600x900 isn't a common resolution. Take a look at http://www.leadwerks.com/werkspace/page/api-reference/_/system/systemcountgraphicsmodes-r857 That will count the resolutions that the computer has. And this will use one of those numbers to give you the actual resolution: http://www.leadwerks.com/werkspace/page/api-reference/_/system/systemcountgraphicsmodes-r857 Quote Link to comment Share on other sites More sharing options...
drarem Posted June 10, 2015 Author Share Posted June 10, 2015 Thanks, using the countmodes and setlayout this really helps. Quote Link to comment Share on other sites More sharing options...
josk Posted June 10, 2015 Share Posted June 10, 2015 1600x900 isn't a common resolution. 1600x900 is the 3rd most popular resoulution according to Steam. http://store.steampowered.com/hwsurvey My second monitor is 1600x900. Monitor rage Quote Elite Cobra Squad Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.