Skip to content

Instantly share code, notes, and snippets.

$ git branch
1.10.7_scons_patches
1.11.18_scons_patches
1.12
1.12+characterize_pathfind_testcase
1.12-old
1.12_debug_sounds
add_links_to_terrain_types_in_terrain_help
add_logging_to_gettext_cpp
add_more_TOD_help
@cbeck88
cbeck88 / gist:338d5c5f95a48ff64bd2
Created November 5, 2014 02:45
console spam from test executable
error general: Merged terrain ^Vya: ruinable_village_a () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyb: ruinable_village_b () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyc: ruinable_village_c () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyd: ruinable_village_d () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyaa: ruinable_snow_village_a () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyba: ruinable_snow_village_b () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyca: ruinable_snow_village_c () with duplicate editor groups [ruinable_villages] and [ruinable_villages]
error general: Merged terrain ^Vyda: ruinable_snow_village_d () with duplicate editor gro
@cbeck88
cbeck88 / gist:da13b9dd5dfcb73c334f
Created November 5, 2014 19:27
backtrace from dependency manager errors
Program received signal SIGABRT, Aborted.
0x00007ffff3716bb9 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff3716bb9 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff3719fc8 in __GI_abort () at abort.c:89
#2 0x00007ffff370fa76 in __assert_fail_base (
fmt=0x7ffff3861370 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
@cbeck88
cbeck88 / gist:a096f7750735a348a9db
Created November 6, 2014 01:21
backtrace to frozen test scenario
Battle for Wesnoth v1.13.0-dev (2ef9795-Clean)
Started on Wed Nov 5 20:20:18 2014
Automatically found a possible data directory at /home/chris/wesnoth-src/.a-a-áÇØßÜ/wesnoth
Data directory: /home/chris/wesnoth-src/.a-a-áÇØßÜ/wesnoth
User configuration directory: /home/chris/.config/wesnoth
User data directory: /home/chris/.local/share/wesnoth/1.13
Cache directory: /home/chris/.cache/wesnoth
[New Thread 0x7fffe5659700 (LWP 7697)]
@cbeck88
cbeck88 / gist:3043c240cca4e5fef743
Created November 6, 2014 01:26
backtrace to frozen test scenario, from ./wesnoth-debug -t (at current master revision e0c7bc5)
Battle for Wesnoth v1.13.0-dev (e0c7bc5-Clean)
Started on Wed Nov 5 20:24:27 2014
Automatically found a possible data directory at /home/chris/wesnoth-src/.a-a-áÇØßÜ/wesnoth
Data directory: /home/chris/wesnoth-src/.a-a-áÇØßÜ/wesnoth
User configuration directory: /home/chris/.config/wesnoth
User data directory: /home/chris/.local/share/wesnoth/1.13
Cache directory: /home/chris/.cache/wesnoth
[New Thread 0x7fffe5659700 (LWP 7826)]
@cbeck88
cbeck88 / S-Healer_And_Slayer-Auto-Save1
Created November 15, 2014 22:20
Dugi's text domain bug
version="1.12.0+dev"
next_underlying_unit_id=15
abbrev="S"
campaign="Swamplings"
campaign_define="CAMPAIGN_SWAMPLINGS"
campaign_extra_defines=""
campaign_type="scenario"
completion="running"
difficulty="NORMAL"
end_credits=yes
@cbeck88
cbeck88 / RBY_lua
Last active August 29, 2015 14:09
--<<
local helper = wesnoth.require("lua/helper.lua")
local H = helper
local V = helper.set_wml_var_metatable {}
local W = helper.set_wml_action_metatable {}
local T = helper.set_wml_tag_metatable {}
local multiplayer_sides = H.get_variable_array("factions.multiplayer_side") -- this assumes that the "factions" variable has already been initialized
RBY = {}
#define RBY_NO_MIRROR_WARNING
[event]
name=prestart
id = RBY_ERA_WARNING_EVENT
{IF_VAR rby_set_message boolean_not_equals true (
[then]
[chat]
speaker= _ "Warning"
message= _ "No Mirror Era replays will be corrupted unless game will be played using one of RBY sets"
@cbeck88
cbeck88 / gist:3108e40bd26dc3ebae3c
Created November 19, 2014 00:02
console from `brew install fontconfig`
chris@chris-KLR650 ~ $ brew doctor
Your system is ready to brew.
chris@chris-KLR650 ~ $ brew install fontconfig
==> Installing dependencies for fontconfig: xz, libpng, freetype
==> Installing fontconfig dependency: xz
==> Downloading http://fossies.org/linux/misc/xz-5.0.7.tar.bz2
Already downloaded: /home/chris/.cache/Homebrew/xz-5.0.7.tar.bz2
==> ./configure --disable-silent-rules --prefix=/home/chris/.linuxbrew/Cellar/xz
==> make install
/home/chris/.linuxbrew/Cellar/xz/5.0.7: 63 files, 1.7M, built in 23 seconds
@cbeck88
cbeck88 / wesnoth.rb
Last active August 29, 2015 14:12
wesnoth 1.12, no boost filesystem
require 'formula'
class Wesnoth < Formula
homepage 'http://www.wesnoth.org/'
head 'https://github.com/wesnoth/wesnoth.git'
url 'https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12/wesnoth-1.12.tar.bz2'
sha1 'eb273d01ced5e2dbdbd17c533586d03bd7646e43'
option "with-ccache", "Speeds recompilation, convenient for beta testers"
option "with-debug", "Build with debugging symbols"