LuaGameScript doesn't contain key take_screenshot

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
bodom
Inserter
Inserter
Posts: 23
Joined: Thu May 05, 2016 8:16 am
Contact:

LuaGameScript doesn't contain key take_screenshot

Post 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.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5152
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post 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"}

bodom
Inserter
Inserter
Posts: 23
Joined: Thu May 05, 2016 8:16 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by bodom »

I was using steam version, 0.12.29.

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

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5152
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post 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?

bodom
Inserter
Inserter
Posts: 23
Joined: Thu May 05, 2016 8:16 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by bodom »

no, i am opening the console with ì key and typing /c game.take_screenshot{}

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by prg »

Works for me on 0.12.33 DRM-free version.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by DaveMcW »

Try it in a new game with no mods.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post 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?
quick links: log file | graphical issues | wiki

bodom
Inserter
Inserter
Posts: 23
Joined: Thu May 05, 2016 8:16 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post 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.
Attachments
screen.jpg
screen.jpg (906.52 KiB) Viewed 5500 times

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by HanziQ »

Screenshoot is not a thing that exists. You're looking for a screenshot.

bodom
Inserter
Inserter
Posts: 23
Joined: Thu May 05, 2016 8:16 am
Contact:

Re: LuaGameScript doesn't contain key take_screenshot

Post by bodom »

I feel so stupid...

Post Reply

Return to “Technical Help”