Skip to content

Instantly share code, notes, and snippets.

View clonejo's full-sized avatar

Feiko Nanninga clonejo

  • Aachen / Leer, Germany
View GitHub Profile
$ gdb ./bralad
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
$ gdb ./bralad
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
$ gdb ./bralad
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
(c)allocating 65536 times 4 bytes. Pointer: 0x7f0eeef57010.
init: 1024x800
Supported OpenGL version: 3.3.11627 Compatibility Profile Context
Loaded OpenGL version: 33
Requesting resource "./res/shader/terrain.shader" as "terrain", type: "Shader".
Loaded resource "terrain" with type: "Shader".
Requesting resource "./res/texture/terrain.png" as "terrain", type: "Image".
Loaded resource "terrain" with type: "Image".
Requesting resource "./res/texture/grasscolor.png" as "grasscolor", type: "Image".
Loaded resource "grasscolor" with type: "Image".
$ ./bralad -h"127.0.0.1"
(c)allocating 65536 times 4 bytes. Pointer: 0x7fdf74fe7010.
[email protected](2306): unittest failure
----------------
./bralad(onUnittestErrorMsg+0x46) [0xf951f2]
./bralad(_d_unittestm+0x47) [0xf612e3]
./bralad(void gl3n.linalg.__unittest_fail(int)+0x1a) [0xcab186]
./bralad(@safe void gl3n.linalg.Quaternion!(float).Quaternion.__unittest1943()+0x3ef) [0xc494df]
./bralad(void gl3n.linalg.__modtest()+0xb8) [0xcaaf90]
./bralad(extern (C) bool core.runtime.runModuleUnitTests().int __foreachbody314(ref object.ModuleInfo*)+0x30) [0xf95580]
$ git diff remotes/origin/master master | cat
diff --git a/Makefile b/Makefile
index 1dfbe47..40fff0f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,9 @@ DCFLAGS_IMPORT = -Ibrala/ -Isrc/d/derelict3/import -Isrc/d/glamour -Isrc/d/
DCFLAGS_LINK = $(LDCFLAGS) $(LINKERFLAG)-lssl $(LINKERFLAG)-lcrypto
ifeq ($(DC),ldc2)
- ADDITIONAL_FLAGS = -d-version=Derelict3 -d-version=gl3n -d-version=stb -d-debug -unittest -g -gc
$ make -j 9
dmd -Ibrala/ -Isrc/d/derelict3/import -Isrc/d/glamour -Isrc/d/gl3n/ -Isrc/d/ -Isrc/d/openssl/ -version=Derelict3 -version=gl3n -version=stb -debug -g -gc ./build/src/c/nbt/buffer.o ./build/src/c/nbt/nbt_parsing.o ./build/src/c/nbt/nbt_util.o ./build/src/c/nbt/nbt_loading.o ./build/src/c/nbt/nbt_treeops.o ./build/src/c/stb_image.o ./build/brala/engine.o ./build/brala/dine/builder/vertices.o ./build/brala/dine/builder/biomes.o ./build/brala/dine/builder/blocks.o ./build/brala/dine/builder/tessellator.o ./build/brala/dine/builder/vertices_/slabs.o ./build/brala/dine/builder/vertices_/blocks.o ./build/brala/dine/builder/vertices_/util.o ./build/brala/dine/builder/vertices_/stairs.o ./build/brala/dine/builder/builder.o ./build/brala/dine/builder/constants.o ./build/brala/dine/util.o ./build/brala/dine/chunk.o ./build/brala/dine/world.o ./build/brala/utils/console.o ./build/brala/utils/ctfe.o ./build/brala/utils/defaultaa.o ./build/brala/utils/exception.o ./build/brala/utils/thread.o ./build/brala/utils
$ ./bralad -h"127.0.0.1"
(c)allocating 65536 times 4 bytes. Pointer: 0x7fd4f4da0010.
derelict.util.exception.SymbolLoadException@src/d/derelict3/import/derelict/util/exception.d(38): Failed to load symbol glfwGetJoystickAxes from shared library libglfw.so.3
----------------
./bralad(void* derelict.util.sharedlib.SharedLib.loadSymbol(immutable(char)[], bool)+0xa9) [0xeb0f89]
./bralad(void derelict.util.loader.SharedLibLoader.bindFunc(void**, immutable(char)[], bool)+0x89) [0xea7771]
./bralad(void derelict.glfw3.glfw3.DerelictGLFW3Loader.loadSymbols()+0x7d4) [0xe9f194]
./bralad(void derelict.util.loader.SharedLibLoader.load(immutable(char)[][])+0x6e) [0xea756a]
./bralad(void derelict.util.loader.SharedLibLoader.load(immutable(char)[])+0xfb) [0xea74ef]
./bralad(void derelict.util.loader.SharedLibLoader.load()+0x5a) [0xea73ee]
$ ./bralad -h"127.0.0.1"
(c)allocating 65536 times 4 bytes. Pointer: 0x7fbd1c122010.
init: 1024x800
Supported OpenGL version: 3.3.11627 Compatibility Profile Context
Loaded OpenGL version: 33
Requesting resource "./res/shader/terrain.shader" as "terrain", type: "Shader".
Loaded resource "terrain" with type: "Shader".
Requesting resource "./res/texture/terrain.png" as "terrain", type: "Image".
Loaded resource "terrain" with type: "Image".
Requesting resource "./res/texture/grasscolor.png" as "grasscolor", type: "Image".
@clonejo
clonejo / mc-erl
Created October 16, 2012 18:30
mc-erl 0xFD
[mc_erl_protocol] packet encryption_key_request, params:
["-",
[48,129,137,2,129,129,0,200,18,80,76,132,7,47,160,219,251,54,85,125,185,89,
146,109,28,98,99,148,231,19,139,250,135,238,59,35,195,207,139,246,21,25,82,
243,210,179,76,187,69,241,51,32,47,24,146,247,163,181,240,196,163,166,112,
134,152,77,126,48,116,214,1,71,149,172,203,97,49,174,244,69,59,187,196,19,
226,63,55,44,222,205,11,0,237,37,194,140,99,137,137,124,46,154,211,155,233,
3,76,239,37,46,123,129,189,234,65,136,202,170,211,89,1,47,40,230,230,163,
153,166,48,239,142,88,97,114,97,2,3,1,0,1],
[70,230,21,210]], binary: