Cuberite Forum
Take a screenshot? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Take a screenshot? (/thread-59.html)



Take a screenshot? - Dys0n - 03-04-2011

is there anyway to take a screenshot via a function call?

My idea was to get a list of playser and call a screenshot function via them and save the images.



RE: Take a screenshot? - Revolucas - 03-04-2011

huh? Not sure what you mean, but are you talking about getting a screenshot of each player to be saved sever side? That's impossible. It would be possible however to let players use a command ingame to upload images from a screenshot folder. If you just want to be able to save screenshots in-game without manually using printscrn, opening up paint and copy&savnig the image, then you would require a .dll that can handle the calls to and from the OS for capturing the current screen. Either way there isn't anything in Lua that can do it without some sort of .dll.


RE: Take a screenshot? - Dys0n - 03-04-2011

Maybe, geuse ill be building a minecraft screenshot bot in C++


RE: Take a screenshot? - Revolucas - 03-04-2011

lol. Are you trying to make some sort of surveillance mod? You are looking at some hard coding just to do something so simplistic. The easiest way is probably to teleport yourself to each player and take a screenshot. Which is unreliable and probably stupid, lol. Won't you need client hooks to get the current frame of the minecraft window? Maybe some way to get a clientside mod to work together with a created MCServer plugin to accomplish your goal.


RE: Take a screenshot? - Dys0n - 03-04-2011

Yea thats what i was thinking some kind of simple Bot to get a list of players on the server, Teleport to them get a screenshot, then upload.


RE: Take a screenshot? - FakeTruth - 03-04-2011

What's the use of screenshots anyway? You want to know what texture packs they are using? Impossible.