Skip to content

Instantly share code, notes, and snippets.

@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 = {}
@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 / 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 / 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: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: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
$ 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
commit 89d7e4b495ece27f6a0bd9d8402ed07bb6c8dc35
Author: Chris Beck <render787@gmail.com>
Date: Mon Jul 7 13:47:22 2014 -0400
change an assertion error message associated to lua exceptions
commit 792b34686e5a092e0658b4c869fc739e5df55832
Author: gfgtdf <f492343@rmqkr.net>
Date: Sun Jul 6 17:23:46 2014 +0200
chris@chris-KLR650 ~/wesnoth-src/.a-a-áÇØßÜ/wesnoth $ scons cxx0x=true
scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd', ccache = True, cxxtool = 'clang++'
Building Wesnoth version 1.13.0-dev
---[checking prerequisites]---
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
patching file SConstruct
Hunk #1 FAILED at 105.
Hunk #2 succeeded at 121 with fuzz 2 (offset -10 lines).
1 out of 2 hunks FAILED -- saving rejects to file SConstruct.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -d /home/chris/homebrew_temp/wesnoth-9nRiWP/wesnoth-1.10.7 -p1 -i /home/chris/homebrew_temp/wesnoth--patch-zNT1mB/8f93e0ebb01a2cccafa45f851dd18dc660f94176.diff