Jump to content

Recommended Posts

Posted

No, it's just that the Leadwerks app has the Steam overlay disabled, and I think that transfers to any child processes.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

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.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

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.

Posted

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

Posted

Actually, it will work but that's okay. I don't know why, but I implemented it a little differently.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

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

Posted

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.

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

×
×
  • Create New...