Skip to content

Instantly share code, notes, and snippets.

@Cightline
Cightline / SSimSuperRes.glsl
Created April 21, 2025 19:02 — forked from igv/SSimSuperRes.glsl
Basically it's an accurate sharpener + antiringing. Usage: glsl-shader="~~/SSimSuperRes.glsl"
// SSimSuperRes by Shiandow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
import valve.source
import valve.source.a2s
import valve.source.master_server
servers = []
with valve.source.master_server.MasterServerQuerier() as msq:
print('Looking up servers...')
for address in msq.find(gamedir=u"arma3"):
@Cightline
Cightline / gist:12c6def0bddce9bb3a88335895f809c1
Last active December 21, 2017 16:02
Arma III python-valve test
import valve.source
import valve.source.a2s
import valve.source.master_server
with valve.source.master_server.MasterServerQuerier() as msq:
try:
print('Looking up servers...')
for address in msq.find(gamedir=u"arma3"):
with valve.source.a2s.ServerQuerier(address) as server:
info = server.info()