Skip to content

Instantly share code, notes, and snippets.

View Swyter's full-sized avatar
💭
¯\_(ツ)_/¯

Swyter Swyter

💭
¯\_(ツ)_/¯
View GitHub Profile
http://tutankhammunity.proboards.com/post/857/thread
Sphinx and the Shadow of Set Demo Disc (Individual; NTSC)
ID: SLUS 29057
Size: 1.15 GB
Built: Apr 24 2003 21:19:41
Sphinx and the Shadow of Set Demo (Official U.S. PlayStation Magazine Demo Disc 72)
ID: SPHINX.ELF
Size: 388 MB (folder for the game)
sudo apt-get install mingw-w64 tree gcc binutils
DATE_SUFFIX=`date "+_%Y.%m.%d-%H.%M" -u`
function github_upload {
echo "--> Uploading $1 (`file -b --mime-type "$1"`) to Github..."
curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: `file -b --mime-type "$1"`" \
"https://uploads.github.com/repos/Swyter/sphinxtools/releases/3534393/assets?name=$1" \
--fail --data-binary "@$1"
diff --git a/ModuleSystem/build_module.bat b/ModuleSystem/build_module.bat
index 1c8104b..1a8fca2 100644
--- a/ModuleSystem/build_module.bat
+++ b/ModuleSystem/build_module.bat
@@ -1,5 +1,5 @@
@echo off && title building tld for [wait for it]--
-set PATH="C:\Python24";"C:\Python26";%PATH%
+set PATH="C:\Python24";"C:\Python26";C:\Python27;%PATH%
set PYTHONPATH=%cd%;%cd%\data;%cd%\header;%cd%\id;%cd%\process
@Swyter
Swyter / rgl_log.txt
Created July 20, 2016 15:10
TLD: Order panel bugs out when pressing Esc and coming back.
This file has been truncated, but you can view the full file.
Loading Module...
Loading item kinds...
Loading dialogs...
Loading mission templates...
Loading party templates...
loading time: 41209
Finished All...
load_map_data complete.
Init_map complete.
init_meta_mission complete.
@Swyter
Swyter / gist:2cbc4b10a821107db404306503fb57df
Last active September 7, 2016 18:55
New (hopefully simpler) TLD install guide for macOS

This will show you how to install the Warband version of The Last Days of the Third Age in macOS. Just make sure that the three latest .7z files from https://tldmod.github.io are already in your Downloads folder.

PART ZERO -- HOW TO OPEN THE TERMINAL

Open the «Go» menu in the Finder and select «Utilities», then click on the «Terminal» icon.

We will go line by line, just copy-paste the various commands in the Terminal and press Enter. I will explain what it does first to avoid looking sketchy.

PART ONE -- TEMPORARILY INSTALLING THE UNARCHIVER

@Swyter
Swyter / gist:bcb4eceed3bfafd73b2f81ed62cbd349
Last active September 20, 2016 22:08
DESK.CPL w2003 BIG ICONS BEHAVIOR
(Use large icons)
DISABLED:
SystemParametersInfo(SPI_ICONHORIZONTALSPACING, 75, NULL, SPIF_SENDWININCHANGE | SPIP_UPDATEINIFILE);
SystemParametersInfo(SPI_ICONVERTICALSPACING, 75, NULL, SPIF_SENDWININCHANGE | SPIP_UPDATEINIFILE);
SystemParametersInfo(SPI_GETICONMETRICS, 108, ICONMETRICS pointer, 0);
SystemParametersInfo(SPI_SETICONMETRICS, 108, ICONMETRICS pointer, SPIF_SENDWININCHANGE | SPIP_UPDATEINIFILE);
ENABLED (48px desktop icons):
@Swyter
Swyter / _swy_netgear_cg3100_backup_conf_xor_depad__.py
Last active September 27, 2016 13:53
Netgear CG3100 Backup config xorpad decrypt
with open("/tmp/17_", "rb") as f:
byte = f.read(1)
while byte:
byt = ord(byte)
off = f.tell()-1
pad = off & 0xff
xor = byt^pad
odd = ~off&1
fin = xor if odd else byt
#print("%02x " % (xor), end='')
@Swyter
Swyter / gist:d221c4ad899e26de250b68911061b30a
Created October 1, 2016 11:14
TLD Workshop discussions - original tutorial
[olist]
[i][b][Due to broken functionality in the Mac version of Warband you will have to install The Last Days manually, here's how][/b][/i]
[*]In the Finder bar click on [i]Go → Go to Folder[/i] (or hit [i]Command+Shift+G[/i]).
[*]In the input box enter «[i]~/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Modules[/i]» to get to the Modules folder, where most mods are stored.
[*]You will need a 7-zip extractor like [i][url=http://unarchiver.c3.cx/unarchiver]The Unarchiver[/url][/i] or [i][url=http://www.kekaosx.com/en/]Keka[/url][/i], install one of them.
[*]Go to [url=https://tldmod.github.io]our manual download page[/url], once there pick Warband and download the three compressed files as commanded. Almost there.
@Swyter
Swyter / backup.md
Created October 1, 2016 21:45
0 A.D. translation/description backup

Bahrain, centre of the Dilmun civilization which fell in 800BC, was in turn controlled by Sumerians, Assyrians, Babylonians, Persians and other later peoples. An island strategically placed in the Sinus Persicus (Persian Gulf) and also centre of pearl trading due to its magnificent pearl fisheries, Bahrain is never left unoccupied for long. But now, with the previous occupants gone, the land prepares for war. Will you be the next Ruler of Bahrain? -- Baréin, otrora centro de la civilización de Dilmún —que sucumbió en el 800 a.C.— y controlada sucesivamente por los sumerios, asirios, babilonios, persas así como otros que vinieron luego, es una isla ubicada en el corazón del golfo pérsico y punto central del comercio gracias a su abundante reserva de perlas. Baréin raramente tiene vacíos de poder, pero ahora, sin sus anteriores ocupantes, la tierra se prepara para la guerra. ¿Serás el próximo regente de Baréin?

The Propontis (Sea of Marmara) connects the Pontus Euxinus (Black Sea) to the Aegean Sea, and s