gcap - no steam overlay edition

http://i.imgur.com/1gxE6zi.png[/t]

Back in October I made an addon called gcap, which captured other player’s screens and sent it back to you. Now, there was many downsides with this, such as the addon capturing steam overlay and not having the ability to look at previous captures. Now I have taken the time and added such abilities!

Firstly, you’d have to configure the config to your likings, make sure ranks have their previligies.

The command to capture someone’s screen is !cap by default. Example use of this would be !cap Author 70, where Author is the name, and 70 is the quality
of the capture. The higher quality the more time it would take to transfer the screenshot. The quality is not needed, and you can change the default in the config.

When capturing someone’s screen, you will now be informed of what it’s currently doing as shown here,

[t]http://i.imgur.com/knZUZAY.png[/t]

Whenever the capture is finished, and have reached you, this will pop up. Nothing different from the other version. This menu is re-sizable incase their screen resolution is rather different than yours.

[t]http://i.imgur.com/QQg57Mi.png[/t]

A new feature to gcap is the cap viewer. To open this, you type cap_viewer in console. This opens a menu where you can select what pictures you want to watch. Please note that
if you haven’t taken any pictures, it will be completely empty. This is what it looks like after selecting a picture,

[t]http://i.imgur.com/srJ1oUv.png[/t]

The layout and file naming of this is configurable, and I suggest you only mess with this if you know what you’re doing. This is located in the config as well, below “Capture Viewer Configuration” You can also organize this by the date, shown here,

[t]http://i.imgur.com/b3BSInl.png[/t]

I had a friend of mine spam me on steam, and as you can see, it did not capture the steam overlay!

[t]http://i.imgur.com/Hp3WZTl.png

Where can I download this?

Pathetic script please kill yourself

“-- hairy cocks”

is there any illegal issues or privacy invasion issues with this?

like would I have to say in a server’s MOTD, “warning: we’ll be able to watch what you see anytime”…

No, since Steam overlay capture is disabled.

Seems like those net messages (“Ent”, “Victim”, “Caller”) would be better with “GCap_”…whatever as those are sort of common phrases

How are you disabling steam overlay capture?

He is taking the screenshot in the PostRender hook as can be seen here: https://github.com/Authorjames/gcap/blob/master/gcap/lua/autorun/client/gcap_client.lua#L49-L59

If I take a screenshot of a player, will he/she get notified that a screenshot is being taken from his screen?

Not currently. If wanted, could add that as a feature.

No, no, I don’t want that, was just asking to know if I had to modify it.

Btw, great work on this!

I think it was added by mistake the player who is being capped gets a chat message saying:
[gcap] Status: Sending capture back to you.

Also, :caller: and :callerid: do not work D: they appear as plain text in the save.

I also get this lua error shortly after closing the cap_viewer:


[ERROR] addons/gcap/lua/autorun/client/gcap_client.lua:195: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
  1. SetHTML - [C]:-1
   2. func - addons/gcap/lua/autorun/client/gcap_client.lua:195
    3. unknown - lua/includes/modules/net.lua:32


Besides that this is an awesome script!
Thanks! :dance:

Submitted a pull request to fix the error.

Why thank you!

Edit: Question for op: What happens if you change the chunk rate?

Edit2: Submitted pull request for correct options in config file (:caller: and :callerid: now work but are named differently)

Was sick all yesterday, merged pull requests, and fixed :caller: and :callerid:

I’m running into a couple issues;

Firstly, when I cap someone, there’s no notification on MY end telling me that it even worked, and I have to wait and hope it did.

Secondly, if I try to view a screenshot in the cap viewer, it doesn’t seem to ever load, and errors spew into the console every few seconds a few seconds after attempting to view a screenshot. Furthermore, for about a minute after this occurs, the player can’t see chat messages that they type. If it helps, I’m using Acecool’s UMSG to Netmessage converter.



TEST [lua/includes/modules/momo.lua][lua/includes/modules/net.lua]
TEST [lua/includes/modules/pk_pills.lua][lua/includes/modules/net.lua]

[ERROR] addons/gcap/lua/autorun/client/gcap_client.lua:196: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
  1. SetHTML - [C]:-1
   2. func - addons/gcap/lua/autorun/client/gcap_client.lua:196
    3. unknown - lua/includes/modules/net.lua:32


This is nice, I fixed my problem.

The error seems to show that you closed the cap viewer before the image recieves. Fixed that, now it notifies you in chat if so happens. Ill have a look at the other problems when I get home.

[editline]27th February 2015[/editline]

Fixed the other issues as well.

I’ll give it a try in a bit and let you know how it goes.

Remove the ) on line 97. (gcap_client)

And:

[lua]
[ERROR] lua/autorun/client/gcap_client.lua:128: attempt to index global ‘mainNode’ (a nil value)

  1. func - lua/autorun/client/gcap_client.lua:128
  2. unknown - lua/includes/modules/net.lua:32
    [/lua]
    With “none” mode selected.

Images also refuse to load in the cap_viewer menu, and present a grey outlined box instead.

[lua]
[ERROR] lua/autorun/client/gcap_client.lua:214: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)

  1. SetHTML - [C]:-1
  2. func - lua/autorun/client/gcap_client.lua:214
    3. unknown - lua/includes/modules/net.lua:32
    [/lua]
    I closed the menu. I assume the image hadn’t sent to me quick enough, and now it has?

Fixed most things, will look into the grey image thing when I get home.