Haydenmango Posted November 3, 2014 Share Posted November 3, 2014 Does Lua Sandboxing disable Steamworks? It seems like it does and that is unfortunate because there is no way for people to take screenshots in Workshop Games unless they use some other software. Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted November 3, 2014 Share Posted November 3, 2014 No, it's just that the Leadwerks app has the Steam overlay disabled, and I think that transfers to any child processes. Quote 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...
Haydenmango Posted November 3, 2014 Author Share Posted November 3, 2014 Ah, that makes sense. Is there anyways to enable screenshots in workshop games? I think context:Screenshot() only works with lua sandbox disabled so that won't do. Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
macklebee Posted November 3, 2014 Share Posted November 3, 2014 I think context:Screenshot() only works with lua sandbox disabled so that won't do. huh? why do you think that? In any case, context:Screenshot() works whether sandboxing is disabled or not. 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...
Josh Posted November 3, 2014 Share Posted November 3, 2014 It's something I've thought about. Not sure how to solve it yet, but I would like people to be able to post screenshots from games they play. huh? why do you think that? In any case, context:Screenshot() works whether sandboxing is disabled or not.I hope not. Sandbox mode should not be allowed to write any files. Quote 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...
macklebee Posted November 3, 2014 Share Posted November 3, 2014 I hope not. Sandbox mode should not be allowed to write any files. It does. I've been using it that way for a while when not using external lua libraries. It's how I have been taking screenshots when just messing around with shaders. 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...
Josh Posted November 3, 2014 Share Posted November 3, 2014 Actually, it will work but that's okay. I don't know why, but I implemented it a little differently. Quote 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...
macklebee Posted November 3, 2014 Share Posted November 3, 2014 Actually, it will work but that's okay. I don't know why, but I implemented it a little differently. Well then Haydenmango's issue is resolved! yay! 1 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...
Haydenmango Posted November 3, 2014 Author Share Posted November 3, 2014 I keep getting this error - Writing screenshot "C:\Users\Hayden\AppData\Local/HalloweenProject/Screenshots/screenshot1.tga"... Failed to write screenshot "C:\Users\Hayden\AppData\Local/HalloweenProject/Screenshots/screenshot1.tga". am I doing something wrong? my code is just this - if self.window:KeyHit(Key.I) then self.context:Screenshot() end EDIT -- Talked to macklebee about the issue and it was just that my "Hayden" folder was locked. So I changed the path like so - self.context:Screenshot("c:screenshot.tga") and everything works. Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted November 3, 2014 Share Posted November 3, 2014 Ah, its actually the folder create function that's being blocked. 1 Quote 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...
macklebee Posted November 3, 2014 Share Posted November 3, 2014 Ah, its actually the folder create function that's being blocked. And since my Screenshots folder already exists, it creates the screenshots with no issues. weird. 1 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...
Josh Posted November 3, 2014 Share Posted November 3, 2014 You know what I should do is automatically add the screenshot to your Steam library. Then when the game ends, that little screenshot dialog will open. Quote 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
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.