drarem Posted March 12, 2015 Share Posted March 12, 2015 1) In the default MyGame, there is a tutorial of picking up and putting things down. If you hit the left mouse button before picking up a box, you have to hit 'E' twice to pick up the object. After picking it up and dropping it, you only need to hit 'E' once to pick it up. Anyone else see this bug, is it a lua script fix? 2) Is there a lua query that will return the graphics modes available? Thanks. Quote Link to comment Share on other sites More sharing options...
macklebee Posted March 12, 2015 Share Posted March 12, 2015 1) cant comment since i dont use it 2) for counting number of graphic modes: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/system/systemcountgraphicsmodes-r857 for returning the graphic modes based on count: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/system/systemgetgraphicsmode-r858 Quote 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...
drarem Posted March 12, 2015 Author Share Posted March 12, 2015 Thanks on #2 Quote Link to comment Share on other sites More sharing options...
Vaelek Posted March 16, 2015 Share Posted March 16, 2015 For #1, I can confirm this and I have a workaround. This block of code in FPSPlayer.lua --Throw object if holding one if self.carryingEntity then if window:MouseHit(1) then needs to be changed to --Throw object if holding one if window:MouseHit(1) then if self.carryingEntity then as it is, if the left mouse button is clicked, when you hit E on a box afterwards, the MouseHit(1) triggers immediately after the item is picked up, causing it to be dropped. While the above change does work around it, I think there may be some other underlying bug causing the need for this in the first place as I don't believe the mouse click should be "held" as it seems to be until that block executes. Quote Link to comment Share on other sites More sharing options...
drarem Posted March 16, 2015 Author Share Posted March 16, 2015 Awesome, thanks. Quote 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.