Jump to content

Steamworks + Lua Sandbox


Haydenmango
 Share

Recommended Posts

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.

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

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.

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

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.

Check out my game Rogue Snowboarding- 

https://haydenmango.itch.io/roguesnowboarding

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...