Skip to content

Instantly share code, notes, and snippets.

View eevee's full-sized avatar
🦊

Eevee eevee

🦊
View GitHub Profile
@eevee
eevee / starbound-titlecase.diff
Created August 19, 2015 17:51
patch to fix titlecasing on most objects in starbound
diff --git a/unpacked_pristine/items/armors/backitems/naturecape/naturecape.back b/unpacked/items/armors/backitems/naturecape/naturecape.back
index 21b6b22..295ae08 100644
--- a/unpacked_pristine/items/armors/backitems/naturecape/naturecape.back
+++ b/unpacked/items/armors/backitems/naturecape/naturecape.back
@@ -5,7 +5,7 @@
"dropCollision" : [-4.0, -3.0, 4.0, 3.0],
"rarity" : "Rare",
"description" : "This cape is fabulous. It sparkles beautifully.",
- "shortdescription" : "Rainbow Cape.",
+ "shortdescription" : "Rainbow Cape",
@eevee
eevee / sqla-selfjoin-problems.py
Last active August 29, 2015 14:23
sqlalchemy doesn't like my zany self-join
# Context: I have a self-referential nested set table and I'm trying to write a
# parent/child relationship. I use DISTINCT ON, so this assumes Postgres.
from sqlalchemy import *
from sqlalchemy.ext import compiler
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import foreign, remote
from sqlalchemy.orm import joinedload
from sqlalchemy.orm import joinedload
from sqlalchemy.orm import relationship
@eevee
eevee / anachrony-stuff.md
Last active August 29, 2015 14:22
anachrony braindump

anachrony design ideas

trying to bang this stuff out now since it's kind of important to have all the things in mind before making a bunch of maps

design principles

  • tell a story. it's about how hell is infecting earth (and now you have the power to show this better) but also about how the protagonist is the last human left in this whole place, his home. scale should get bigger and lonelier as the game goes on

  • should introduce a new or changed thing in a natural way (valve style) — don't force the player to read a big fuckin readme that spoils everything

@eevee
eevee / result.txt
Last active August 29, 2015 14:22
randomized item descriptions in inform7
Sandbox
An Interactive Fiction by Eevee
Release 1 / Serial number 150527 / Inform 7 build 6L38 (I6/v6.33 lib 6/12N) SD
courtyard
It's a big old courtyard.
You can see a wooden door, a hedge maze, a foo, a bar and a baz here.
>x foo
@eevee
eevee / fonts.conf.xml
Last active September 5, 2022 03:42
my fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<dir>~/.fonts</dir>
<alias>
<family>serif</family>
<prefer>
<family>Source Serif Pro</family>
<family>IPAMincho</family>
</prefer>
@eevee
eevee / neonblockmaterial.patch
Created May 12, 2015 00:34
Starbound patches, round two
diff --git a/unpacked-pristine/tiles/materials/blueneonsymbolblock.material b/unpacked/tiles/materials/blueneonsymbolblock.material
index c0d2065..315dceb 100644
--- a/unpacked-pristine/tiles/materials/blueneonsymbolblock.material
+++ b/unpacked/tiles/materials/blueneonsymbolblock.material
@@ -2,7 +2,7 @@
"materialId" : 112,
"materialName" : "blueneonsymbolblock",
"particleColor" : [71, 66, 57, 255],
- "itemDrop" : "blueneonsymbolblock",
+ "itemDrop" : "blueneonsymbol",
freenode, #starbound:
11:30 < ^7heo> Eyes: python -c "import os; os.system('; '.join(('ffmpeg -i %s %s.mp3' % (x, x.replace('mp4','')) for x in os.listdir('.'))))"
...
11:34 < eevee> whoa
11:34 < eevee> don't use os.system
11:35 < eevee> for file in *.mp4; do ffmpeg -i $file ${file%.mp4}.mp3; done
11:35 < eevee> if you're not using zsh i highly recommend jamming some double quotes in there
@eevee
eevee / starbound-brush-parameters.patch
Last active August 29, 2015 14:20
Starbound patches
diff --git a/unpacked-pristine/dungeons/avian/avianairship/avianairship.dungeon b/unpacked/dungeons/avian/avianairship/avianairship.dungeon
index 961add8..229a8f8 100644
--- a/unpacked-pristine/dungeons/avian/avianairship/avianairship.dungeon
+++ b/unpacked/dungeons/avian/avianairship/avianairship.dungeon
@@ -857,7 +857,7 @@
{
"value" : [77, 20, 14, 255],
"comment" : "birdgroundlantern facing left - off state",
- "brush" : [ [ "clear" ], [ "object", "birdgroundlantern", { "direction" : "left" }, { "parameters" : { "defaultLightState" : false } } ] ]
+ "brush" : [ [ "clear" ], [ "object", "birdgroundlantern", { "direction" : "left", "parameters" : { "defaultLightState" : false } } ] ]
@eevee
eevee / delaygate.lua
Created May 2, 2015 20:40
starbound delay gate
function init(virtual)
if virtual then return end
self.interval = 30
self.queue = {}
for i = 1, self.interval do
self.queue[i] = false
end
self.qpos = 1
end
@eevee
eevee / gist:a510dcf6bc8b189a0c1c
Created April 28, 2015 07:24
(throwaway) locating an object in starbindery
[local]/starbindery= ☘ select planet_type.name, layer.name, dungeon.name from brush join dungeon_tile_brush on dungeon_tile_brush.brush_id = brush.id join dungeon_tile on dungeon_tile_brush.dungeon_tile_id = dungeon_tile.id join dungeon on dungeon_tile.dungeon_name = dungeon.name join planet_type__layer on dungeon.name = ANY (planet_type__layer.dungeons) left join planet_type on planet_type.name = planet_type__layer.planet_type_name left join layer on layer.name = planet_type__layer.layer_name where object_name = 'screenplanet';
name │ name │ name
──────────┼─────────┼──────────────
scorched │ surface │ scifidungeon
jungle │ surface │ scifidungeon
volcanic │ surface │ scifidungeon
alien │ surface │ scifidungeon
tundra │ surface │ scifidungeon
(5 rows)