Skip to content

Instantly share code, notes, and snippets.

from portabletypes cimport *
cdef:
struct MapData:
uint32_t map_magic
uint32_t scenario_magic
uint32_t globalsOffset
uint32_t modelCount
uint32_t bitmapCount
uint32_t machCount
<plugin class="effe" author="sparky" version="4.0" headersize="Main">
<bitmask16 name="Flags" note="" info="" info_img="" offset="0x00" visible="true">
<option name="Deleted When Attachment Deactivates" value="15"/>
<option name="Required For Gameplay" note="" info="cannot optimize out" info_img="" value="14"/>
</bitmask16>
<index name="Loop Start Event" note="" info="" info_img="" offset="0x04" reflexive="main:Events" visible="true"/>
<index name="Loop End Event" note="" info="" info_img="" offset="0x06" reflexive="main:Events" visible="true"/>
@ChadSki
ChadSki / gist:6384641
Created August 29, 2013 23:25
halo scripting api in progress
>>> for tag in halomap.tags:
... if tag.first_class == 'bipd':
... print(tag)
... print(' first 16 bytes of meta: %s' % tag.meta_access.read_bytes(0, 16))
... print(' start address of meta: %d' % tag.meta_access.offset)
... print(' reflexive address: %d' % (tag.reflexive_pointer - map_magic))
... print(' reflexive count: %d\n' % tag.reflexive_count)
...
[bipd]characters\cyborg_mp\cyborg_mp
first 16 bytes of meta: b'\x00\x00\x00\x00=\n\xd7>\x00\x00\x00\x00\x00\x00\x00\x00'
@ChadSki
ChadSki / gist:6408018
Created September 1, 2013 23:34
Sparky's Entity-format 'unhi.ent' plugin
<plugin class="unhi" author="sparky" version="4.0" headersize="Main">
<enum16 name="Weapon HUD Screen Alignment.Anchor" note="" info="" info_img="" offset="0x00" visible="true">
<option name="Top Left" value="00"/>
<option name="Top Right" value="01"/>
<option name="Bottom Left" value="02"/>
<option name="Bottom Right" value="03"/>
<option name="Center" value="04"/>
</enum16>
@ChadSki
ChadSki / gist:6417398
Created September 2, 2013 21:23
Sparky's Entitly-style 'weap.ent' plugin
<plugin class="weap" author="sparky" version="4.0" headersize="Main">
<bitmask16 name="Flags" note="" info="" info_img="" offset="0x02" visible="true">
<option name="Does Not Cast Shadow" value="15"/>
<option name="Transparent Self-Occlusion" value="14"/>
<option name="Brighter Than It Should Be" value="13"/>
<option name="Not a Pathfinding Obstacle" value="12"/>
</bitmask16>
<float name="Bounding Radius" note="world units" info="" info_img="" offset="0x04" visible="true"/>
@ChadSki
ChadSki / gist:6545847
Created September 13, 2013 01:15
Swordedit crash log
Version=1
EventType=APPCRASH
EventTime=130235083497010322
ReportType=2
Consent=1
ReportIdentifier=8ec8e8e4-1c11-11e3-be77-bc5ff4b8cb48
IntegratorReportIdentifier=8ec8e8e3-1c11-11e3-be77-bc5ff4b8cb48
WOW64=1
NsAppName=SwordeditPC.exe
Response.type=4
@ChadSki
ChadSki / gist:6545860
Last active December 22, 2015 23:19
Swordedit crash, console output
"2013-09-13 01:15:59.697 SwordeditPC[7244:1c58] Init render view"
"2013-09-13 01:15:59.701 SwordeditPC[7244:1c58] Creating"
"2013-09-13 01:15:59.701 SwordeditPC[7244:1c58] More inits"
"2013-09-13 01:15:59.701 SwordeditPC[7244:1c58] Still initing"
"2013-09-13 01:15:59.701 SwordeditPC[7244:1c58] Making contenxt"
"2013-09-13 01:15:59.791 SwordeditPC[7244:1c58] Initing GL"
"2013-09-13 01:15:59.797 SwordeditPC[7244:1c58] Finished"
"2013-09-13 01:15:59.965 SwordeditPC[7244:1c58] Checking mac"
"2013-09-13 01:15:59.965 SwordeditPC[7244:1c58] Loading nib"
"2013-09-13 01:15:59.965 SwordeditPC[7244:1c58] Loading preferences!"
@ChadSki
ChadSki / gist:6567251
Created September 15, 2013 01:17
Swordedit Crash
"2013-09-15 01:15:53.295 SwordeditPC[140:bc] Init render view"
"2013-09-15 01:15:53.299 SwordeditPC[140:bc] Creating"
"2013-09-15 01:15:53.299 SwordeditPC[140:bc] More inits"
"2013-09-15 01:15:53.301 SwordeditPC[140:bc] Still initing"
"2013-09-15 01:15:53.301 SwordeditPC[140:bc] Making contenxt"
"2013-09-15 01:15:53.386 SwordeditPC[140:bc] Initing GL"
"2013-09-15 01:15:53.393 SwordeditPC[140:bc] Finished"
"2013-09-15 01:15:53.576 SwordeditPC[140:bc] Checking mac"
"2013-09-15 01:15:53.576 SwordeditPC[140:bc] Loading nib"
"2013-09-15 01:15:53.576 SwordeditPC[140:bc] Loading preferences!"
@ChadSki
ChadSki / gist:6571574
Created September 15, 2013 15:05
Xcode error message
0 clang 0x0000000100c57bb2 main + 12932498
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin12.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
@ChadSki
ChadSki / gist:6571579
Created September 15, 2013 15:06
Clang Console.app Crash Report
Process: clang [84092]
Path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Identifier: clang
Version: 4.2 (425.0.28)
Code Type: X86-64 (Native)
Parent Process: clang [84076]
User ID: 501
Date/Time: 2013-09-15 10:06:28.726 -0400
OS Version: Mac OS X 10.8.4 (12E55)