Page 1 of 1

LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 8:24 am
by bodom
Hi there,

I am trying to take a screenshoot but I keep getting this error.
I tried both game.take_screenshoot{} and game.takescreenshoot, no luck.

"Cannot execute command. Error: [string "game.take_screenshot{}"] 1: LuaGameScript doesn't contain key take_screenshot."

I am using the Strem version on Linux.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 8:56 am
by Klonan
It seems to work fine for me, using this command takes the screenshot no problem

What version of the game are you running?

Code: Select all

/c game.take_screenshot{resolution ={3072,4096}, show_entity_info = true, position = {x = 0, y = 0}, path = game.tick..".png"}

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 1:40 pm
by bodom
I was using steam version, 0.12.29.

I now tried lastest beta 0.12.33, but I have the same problem.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 2:46 pm
by Klonan
bodom wrote:I was using steam version, 0.12.29.

I now tried lastest beta 0.12.33, but I have the same problem.

Are you trying to make the command using a script event? such as on_load?

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 3:33 pm
by bodom
no, i am opening the console with ì key and typing /c game.take_screenshot{}

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 3:51 pm
by prg
Works for me on 0.12.33 DRM-free version.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 4:01 pm
by DaveMcW
Try it in a new game with no mods.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Thu May 05, 2016 4:04 pm
by daniel34
Works for me on 0.12.33 Linux version on Steam.

Can you post a screenshot if it still doesn't work with mods disabled?

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Fri May 06, 2016 5:16 am
by bodom
daniel34 wrote:Works for me on 0.12.33 Linux version on Steam.

Can you post a screenshot if it still doesn't work with mods disabled?
I have never installed any mod. Screenshoot attached.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Fri May 06, 2016 5:17 am
by HanziQ
Screenshoot is not a thing that exists. You're looking for a screenshot.

Re: LuaGameScript doesn't contain key take_screenshot

Posted: Fri May 06, 2016 8:03 am
by bodom
I feel so stupid...