Skip to content

Instantly share code, notes, and snippets.

@apocalyptech
apocalyptech / eschalon_rect_selection.patch
Created May 26, 2014 20:21
Eschalon rectangle selection
diff --git a/eschalon/mapgui.py b/eschalon/mapgui.py
index 78c098a..6fa5eee 100644
--- a/eschalon/mapgui.py
+++ b/eschalon/mapgui.py
@@ -1187,6 +1187,10 @@ class MapGUI(BaseGUI):
self.MODE_SCRIPT_ED: None,
self.MODE_COPY: gtk.gdk.Cursor(gtk.gdk.BASED_ARROW_UP),
}
+ self.selection_1 = None
+ self.selection_2 = None
@apocalyptech
apocalyptech / early_access_highlight.patch
Created June 17, 2014 17:02
Add very obvious Early Access highlighting in search lists, for EnhancedSteam
diff --git a/data/enhancedsteam.js b/data/enhancedsteam.js
index ab47126..886e50a 100644
--- a/data/enhancedsteam.js
+++ b/data/enhancedsteam.js
@@ -2820,6 +2820,7 @@ function check_early_access(node, image_name, image_left, selector_modifier) {
$(overlay_img).css({"left":image_left + "px"});
}
$(node).find(selector.trim()).after(overlay_img);
+ $(node).css({"background":"#800"});
}
[thread ffffffff][I][29]: Log system initialised
[thread ffffffff][I][30]: Default allowed number of simultaneously open files in the system is 2448.
[thread ffffffff][I][31]: Current memlock limit is 65536.
[thread ffffffff][I][31]: setrlimit(RLIMIT_MEMLOCK) failed, (1) Operation not permitted
[thread ffffffff][I][31]: setup_teb_register() - using LDT entry 13
[thread 00000001][I][31]: Linux kernel version: 4.1.12-101.fc21.x86_64
[thread 00000001][I][31]: Linux glibc version: 2.20
[thread 00000001][I][50]: Forcing OpenGL Core context usage
[thread 00000001][I][69]: OpenGL Core context version 4.1 detected
[thread 00000001][I][899]: OpenGL information:
[thread ffffffff][I][17]: Log system initialised
[thread ffffffff][I][18]: Default allowed number of simultaneously open files in the system is 2448.
[thread ffffffff][I][18]: Current memlock limit is 65536.
[thread ffffffff][I][18]: setrlimit(RLIMIT_MEMLOCK) failed, (1) Operation not permitted
[thread ffffffff][I][20]: setup_teb_register() - using LDT entry 13
[thread 00000001][I][20]: Linux kernel version: 4.1.12-101.fc21.x86_64
[thread 00000001][I][20]: Linux glibc version: 2.20
[thread 00000001][I][45]: Forcing OpenGL Core context usage
[thread 00000001][I][71]: OpenGL Core context version 4.1 detected
[thread 00000001][I][1163]: OpenGL information:
[root@arrakis ~]# pacman -Q | grep gst
gst-libav 1.8.3-1
gst-plugins-bad 1.8.3-1
gst-plugins-base 1.8.3-1
gst-plugins-base-libs 1.8.3-1
gst-plugins-good 1.8.3-1
gst-plugins-ugly 1.8.3-1
gstreamer 1.8.3-1
gstreamer-vaapi 1.8.3-1
gstreamer0.10 0.10.36-4
lib32-alsa-oss
lib32-alsa-plugins
lib32-curl
lib32-giflib
lib32-gnutls
lib32-gst-plugins-base
lib32-gst-plugins-base-libs
lib32-gst-plugins-good
lib32-gtk2
lib32-gtk3
Game update: AppID 289070 "Sid Meier's Civilization VI", ProcID 20214, IP 0.0.0.0:0
ERROR: ld.so: object '/usr/local/games/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/local/games/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/usr/local/games/Steam/SteamApps/common/Sid Meier's Civilization VI/./Civ6: /usr/lib/libldap_r-2.4.so.2: no version information available (required by /home/pez/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4)
/usr/local/games/Steam/SteamApps/common/Sid Meier's Civilization VI/./Civ6: /usr/lib/liblber-2.4.so.2: no version information available (required by /home/pez/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4)
Game update: AppID 289070 "Sid Meier's Civilization VI", ProcID 20215, IP 0.0.0.0:0
>>> Adding process 20214 for game ID 289070
Setting br
-rwxr-xr-x 1 pez pez 1012704 Sep 28 22:13 libc++.so*
-rwxr-xr-x 1 pez pez 1012704 Sep 28 22:13 libc++.so.1*
-rwxr-xr-x 1 pez pez 1012704 Sep 28 22:13 libc++.so.1.0*
-rwxr-xr-x 1 pez pez 132433 Sep 28 22:13 libcxxrt.so*
-rwxr-xr-x 1 pez pez 703215056 Sep 28 22:13 libGameCore_Base.so*
-rwxr-xr-x 1 pez pez 1407440 Sep 28 22:13 libiconv.so*
-rwxr-xr-x 1 pez pez 1407440 Sep 28 22:13 libiconv.so.2*
-rwxr-xr-x 1 pez pez 1407440 Sep 28 22:13 libiconv.so.2.5.1*
-rwxr-xr-x 1 pez pez 258522 Sep 28 22:13 libsteam_api.so*
-rwxr-xr-x 1 pez pez 20 Sep 28 22:13 libtbb.so*
@apocalyptech
apocalyptech / theinnerworld_audio_file_case.py
Created October 8, 2017 06:41
Create symlinks in The Inner World's audio file directory to allow a few cutscenes to play properly.
#!/usr/bin/env python
# vim: set expandtab tabstop=4 shiftwidth=4:
# At least two cutscenes in the Linux version of The Inner World have audio
# files which have a letter with the wrong case in them. Since filenames
# in Linux are case-sensitive, and the media player portion of the game
# doesn't work at all if a specified file is missing, this causes the
# cutscenes to not play at all. This utility just looks for any audio file
# with one of those letters and creates a symlink so that both cases exist.
#
[root@arrakis ~]# pvs
WARNING: Device for PV dVnU1B-VVHh-sfVx-rdly-AXhi-45TO-FBp9WG not found or rejected by a filter.
WARNING: Device for PV dVnU1B-VVHh-sfVx-rdly-AXhi-45TO-FBp9WG not found or rejected by a filter.
PV VG Fmt Attr PSize PFree
[unknown] fourbak01 lvm2 a-m <3.64t 1.78t
[root@arrakis ~]# lvs
WARNING: Device for PV dVnU1B-VVHh-sfVx-rdly-AXhi-45TO-FBp9WG not found or rejected by a filter.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
games fourbak01 -wi-----p- 250.00g