<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gothi</title>
	<atom:link href="http://www.gothi.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gothi.co.uk</link>
	<description>A badly chosen byte</description>
	<lastBuildDate>Sat, 05 Jan 2013 22:24:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Authentic Neo Geo experience on the Raspberry Pi</title>
		<link>http://www.gothi.co.uk/2013/01/authentic-neo-geo-experience-on-the-raspberry-pi/</link>
		<comments>http://www.gothi.co.uk/2013/01/authentic-neo-geo-experience-on-the-raspberry-pi/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 21:23:34 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Neo Geo]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=280</guid>
		<description><![CDATA[I&#8217;ve been looking for some use to put my 1st gen Raspberry Pi to for some time and Shea Silverman&#8217;s work on getting a Neo Geo emulator up and running on the Pi seemed to be almost the perfect answer. Almost. Playing classics such as Soccer Brawl (possibly the first game I played on the [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been looking for some use to put my 1st gen Raspberry Pi to for some time and Shea Silverman&#8217;s work on getting a <a title="Neo Geo emulator on the Raspberry Pi" href="http://blog.sheasilverman.com/2012/06/neo-geo-emulation-on-the-raspberry-pi/" target="_blank">Neo Geo emulator up and running on the Pi </a>seemed to be almost the perfect answer.</p>
<p>Almost.</p>
<p>Playing classics such as Soccer Brawl (possibly the first game I played on the AES) with a keyboard is OK but lets knock this up a notch; enter the <a title="Neo Geo Arcade Stick" href="http://www.funstock.co.uk/retro-gaming/neo-geo-x-joystick" target="_blank">Neo Geo X Arcade Stick</a> (disclaimer: this link takes you to the purchase page for the Arcade Stick but I get no referral fees or payment).<br />
The new Neo Geo X Arcade Stick claims to be a 1:1 replica of the original with genuine arcade parts all tied together neatly with a USB connector.  What better way to recreate the arcade experience at home?</p>
<p>The Arcade Stick is automatically recognised as a joystick by the Raspberry Pi and if you&#8217;ve followed Shea&#8217;s instructions you already have a config file with joystick support enabled (top tip for the installation; if the ~/.gngeo folder doesn&#8217;t get created automatically you probably don&#8217;t have the right bios or rom set, the folder is only created after a successful launch).<br />
If you have rolled your own config you need to ensure joystick support is enabled:</p>
<pre># enable joystick support ?
joystick true</pre>
<p>There&#8217;s only one thing left to do which is update the config file with a joystick mapping, unfortunately the 2 sample configs aren&#8217;t a 1:1 match with the Arcade Stick layout so we&#8217;ll have to write our own.  One thing to note is the Arcade Stick buttons C &amp; D are presented out of order and need to be swapped accordingly in the config file.</p>
<pre># NeoGeoX
p1control A=J0B0,B=J0B1,C=J0B3,D=J0B2,START=J0B9,COIN=J0B8,UP=J0a1,DOWN=J0a1,LEFT=J0A0,RIGHT=J0A0</pre>
<p>Add the config under the existing Xbox 360 and Dualshock2 samples, save the file and you&#8217;re good to go.<br />
Add Coin is mapped to Select so once you&#8217;ve loaded the emu you can select menu items with B (A is cancel), hit Select to insert a coin and relive the days when you would look on with wonder at what is possibly the most expensive gaming system to date.</p>
<p>If you&#8217;re a PC gamer wondering if the Neo Geo X Arcade Stick works on your platform of choice I can confirm that I have had it successfully running with FBA with only the joystick mapping needing to be changed.  But lets face it, running Neo Geo games on a £500+ PC isn&#8217;t as cool as running it on one that costs £35.</p>
<!-- AdSense Now! V3.20 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-5905155743931046";
/* 468x15, created 10/04/10 */
google_ad_slot = "2193001556";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2013/01/authentic-neo-geo-experience-on-the-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbox save resigning &#8211; a technical overview</title>
		<link>http://www.gothi.co.uk/2010/06/xbox-save-resigning-a-technical-overview/</link>
		<comments>http://www.gothi.co.uk/2010/06/xbox-save-resigning-a-technical-overview/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 17:52:10 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Xbox]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=231</guid>
		<description><![CDATA[This article covers the saves signing process used by the original Xbox.  Only the standard signing process is discussed, the &#8220;noroam&#8221; signatures are not covered.  All code is based on my own work or derivative work of others.  The language used in examples is Delphi and assumes a familiarity with programming concepts such as the [...]]]></description>
				<content:encoded><![CDATA[<p><em>This article covers the saves signing process used by the original Xbox.  Only the standard signing process is discussed, the &#8220;noroam&#8221; signatures are not covered.  All code is based on my own work or derivative work of others.  The language used in examples is Delphi and assumes a familiarity with programming concepts such as the use of records or structures for reading in data.</em></p>
<p>The reason I&#8217;ve never previously discussed the Xbox save signing procedure in public is concern that by doing so would negatively impact Xbox Live.  Now that the original Xbox and it&#8217;s games are unable to access the Xbox Live service the following information is relatively harmless.</p>
<h3>A brief history</h3>
<p>The original Xbox used digital signatures to validate not only executables it was loading but save data, with this it was impossible to change or tamper with a save without updating the file&#8217;s digital signature using the correct key.  This key was generated using data contained within the default.xbe and a key used by the Xbox Operating System.  The save data was then run through a <a title="SHA1 HMAC" href="http://en.wikipedia.org/wiki/HMAC" target="_blank">SHA1 HMAC</a> routine and the 20 byte result appended to the save data to confirm integrity.  This result, or digest, was usually found at the beginning or the end of a file although it can potentially be located anywhere in the file if the developer was feeling adventurous.</p>
<h3>Obtaining the XBE key</h3>
<p>Each Xbox game has a default.xbe file, this is the executable that is loaded whenever you start a game. It contains various information including the title ID, age rating, game region and the all important signature key.  Don&#8217;t get confused, this is not the key used to sign the saves but is an essential piece in the process.<br />
The first step is to obtain the key directly from the XBE. This is stored in a certificate area of the file, the address of which is located in the XBE header.  Before we can retrieve the key we need to define the structure of the XBE Header and the Certificate data we will be retrieving:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code6'); return false;">View Code</a> DELPHI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2316"><td class="code" id="p231code6"><pre class="delphi" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// XBE sections</span>
<span style="color: #000000; font-weight: bold;">unit</span> xbestruct<span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">interface</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">type</span>
ByteArray <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">array</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span>15<span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">type</span>
TxbeHeader <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">record</span>
	m_magic <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                    <span style="color: #808080; font-style: italic;">// magic number [should be &quot;XBEH&quot;]</span>
	m_digsig <span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span>255<span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">char</span><span style="color: #000066;">;</span>      <span style="color: #808080; font-style: italic;">// digital signature</span>
	m_base<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                      <span style="color: #808080; font-style: italic;">// base address</span>
	m_sizeof_headers <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>           <span style="color: #808080; font-style: italic;">// size of headers</span>
	m_sizeof_image <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>             <span style="color: #808080; font-style: italic;">// size of image</span>
	m_sizeof_image_header <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>      <span style="color: #808080; font-style: italic;">// size of image header</span>
	m_timedate <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                 <span style="color: #808080; font-style: italic;">// timedate stamp</span>
	m_certificate_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>         <span style="color: #808080; font-style: italic;">// certificate address</span>
	m_sections <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                 <span style="color: #808080; font-style: italic;">// number of sections</span>
	m_section_headers_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>     <span style="color: #808080; font-style: italic;">// section headers address</span>
	m_init_flags <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>
	m_entry <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                         <span style="color: #808080; font-style: italic;">// entry point address</span>
	m_tls_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                       <span style="color: #808080; font-style: italic;">// thread local storage directory address</span>
	m_pe_stack_commit  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                <span style="color: #808080; font-style: italic;">// size of stack commit</span>
	m_pe_heap_reserve <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// size of heap reserve</span>
	m_pe_heap_commit  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                 <span style="color: #808080; font-style: italic;">// size of heap commit</span>
	m_pe_base_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                   <span style="color: #808080; font-style: italic;">// original base address</span>
	m_pe_sizeof_image <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// size of original image</span>
	m_pe_checksum <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                <span style="color: #808080; font-style: italic;">// original checksum</span>
	m_pe_timedate <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                   <span style="color: #808080; font-style: italic;">// original timedate stamp</span>
	m_debug_pathname_addr  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>            <span style="color: #808080; font-style: italic;">// debug pathname address</span>
	m_debug_filename_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>           <span style="color: #808080; font-style: italic;">// debug filename address</span>
	m_debug_unicode_filename_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>   <span style="color: #808080; font-style: italic;">// debug unicode filename address</span>
	m_kernel_image_thunk_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>        <span style="color: #808080; font-style: italic;">// kernel image thunk address</span>
	m_nonkernel_import_dir_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>      <span style="color: #808080; font-style: italic;">// non kernel import directory address</span>
	m_library_versions <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// number of library versions</span>
	m_library_versions_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>          <span style="color: #808080; font-style: italic;">// library versions address</span>
	m_kernel_library_version_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>    <span style="color: #808080; font-style: italic;">// kernel library version address</span>
	m_xapi_library_version_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>      <span style="color: #808080; font-style: italic;">// xapi library version address</span>
	m_logo_bitmap_addr <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// logo bitmap address</span>
	m_logo_bitmap_size <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// logo bitmap size</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
pTXbeHeader <span style="color: #000066;">=</span> <span style="color: #000066;">^</span>TXbeHeader<span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">type</span>
TxbeCertificate  <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">record</span>
	m_size <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                          <span style="color: #808080; font-style: italic;">// size of certificate</span>
	m_timedate <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                     <span style="color: #808080; font-style: italic;">// timedate stamp</span>
	m_titleid <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                       <span style="color: #808080; font-style: italic;">// title id</span>
	m_title_name <span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span>63<span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">widechar</span><span style="color: #000066;">;</span>                <span style="color: #808080; font-style: italic;">// title name (unicode)</span>
	m_alt_title_id <span style="color: #000066;">:</span> byteArray<span style="color: #000066;">;</span>            <span style="color: #808080; font-style: italic;">// alternate title ids</span>
	m_allowed_media  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                 <span style="color: #808080; font-style: italic;">// allowed media types</span>
	m_game_region  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>               <span style="color: #808080; font-style: italic;">// game region</span>
	m_game_ratings  <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                  <span style="color: #808080; font-style: italic;">// game ratings</span>
	m_disk_number <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                   <span style="color: #808080; font-style: italic;">// disk number</span>
	m_version <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">cardinal</span><span style="color: #000066;">;</span>                       <span style="color: #808080; font-style: italic;">// version</span>
	m_lan_key <span style="color: #000066;">:</span> byteArray<span style="color: #000066;">;</span>                 <span style="color: #808080; font-style: italic;">// lan key</span>
	m_sig_key <span style="color: #000066;">:</span> byteArray<span style="color: #000066;">;</span>                  <span style="color: #808080; font-style: italic;">// signature key</span>
	m_title_alt_sig_key <span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span>15<span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">..</span>15<span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #000066;">;</span>     <span style="color: #808080; font-style: italic;">// alternate signature keys</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
pTxbeCertificate <span style="color: #000066;">=</span> <span style="color: #000066;">^</span> TxbeCertificate<span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">implementation</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">.</span></pre></td></tr></table></div>

<p>The TxbeHeader record contains a lot of data but the two most important sections are <em>m_certificate_addr</em>, and <em>m_base</em>.  These two values give us the address of the certificate.</p>
<p>The following code retrieves the key from an XBE file:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code7'); return false;">View Code</a> DELPHI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2317"><td class="code" id="p231code7"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span>
    MS <span style="color: #000066;">:</span> TMemoryStream<span style="color: #000066;">;</span>
    xbeHeader <span style="color: #000066;">:</span> pTxbeHeader<span style="color: #000066;">;</span>
    xbeCert <span style="color: #000066;">:</span> pTxbeCertificate<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">begin</span>
&nbsp;
    MS <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TmemoryStream<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
    MS<span style="color: #000066;">.</span><span style="color: #006600;">LoadFromFile</span><span style="color: #000066;">&#40;</span>FileName<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
    <span style="color: #000066;">new</span><span style="color: #000066;">&#40;</span>xbeHeader<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
    <span style="color: #000066;">new</span><span style="color: #000066;">&#40;</span>xbeCert<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
    <span style="color: #808080; font-style: italic;">//Read in header and certificate</span>
    MS<span style="color: #000066;">.</span><span style="color: #000066;">Read</span><span style="color: #000066;">&#40;</span>xbeHeader<span style="color: #000066;">^</span><span style="color: #000066;">,</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>xbeHeader<span style="color: #000066;">^</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
    MS<span style="color: #000066;">.</span><span style="color: #006600;">Position</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> xbeHeader<span style="color: #000066;">^</span><span style="color: #000066;">.</span><span style="color: #006600;">m_certificate_addr</span> <span style="color: #000066;">-</span> xbeHeader<span style="color: #000066;">^</span><span style="color: #000066;">.</span><span style="color: #006600;">m_base</span><span style="color: #000066;">;</span>
    MS<span style="color: #000066;">.</span><span style="color: #000066;">Read</span><span style="color: #000066;">&#40;</span>xbeCert<span style="color: #000066;">^</span><span style="color: #000066;">,</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>xbeCert<span style="color: #000066;">^</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<p>We can now access the sig_key directly</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code8'); return false;">View Code</a> DELPHI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2318"><td class="code" id="p231code8"><pre class="delphi" style="font-family:monospace;">xbeCert<span style="color: #000066;">^</span><span style="color: #000066;">.</span><span style="color: #006600;">m_sig_key</span></pre></td></tr></table></div>

<h3>Generating the signing key</h3>
<p>The key we retrieved from the XBE is not used to directly sign save data, instead it is used in a SHA1 HMAC with the Xbox key to produce the actual key we need. Thankfully we don&#8217;t need to determine the Xbox key every time we need to sign or verify a save as it is a constant.</p>
<p>The following is a <strong>textual </strong>representation of this key, to use it you must first convert it to a 16 byte array:</p>
<p><strong>5C0733AE0401F7E8BA7993FDCD2F1FE0</strong></p>
<p>Once you have this key in a byte array simply run both the XBE key and the Xbox key through a SHA1 HMAC (referring to the documentation for your SHA1 HMAC function as to whether you need to pass data or memory addresses to the function). The output should be a 160bit digest truncated to 16 bytes (the last 4 bytes are not required and should not be used or present).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code9'); return false;">View Code</a> DELPHI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2319"><td class="code" id="p231code9"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span>
    digest <span style="color: #000066;">:</span> T160BitDigest<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">begin</span>
    digest <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CalcHMAC_SHA1<span style="color: #000066;">&#40;</span><span style="color: #000066;">addr</span><span style="color: #000066;">&#40;</span>xboxKey<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">16</span><span style="color: #000066;">,</span> xbeCert<span style="color: #000066;">^</span><span style="color: #000066;">.</span><span style="color: #006600;">m_sig_key</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">16</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<h3>Determining the data to process</h3>
<p>As noted before the digital signature is usually found before or after the actual save data.  It is entirely possible to store this signature at any location in the file and treat this location as all 0&#8242;s during the HMAC process.  Since we cannot rely on all developers using the same location for the signature we must determine the location ourselves.</p>
<p>The fastest and easiest way to do this is to start a new game and make a save at the earliest opportunity.  If the game saves any options you change this is ideal, otherwise start playing and save as soon as you can.  Copy this save to you PC and label is SAVE A.</p>
<p>Load the game again and create another save with as small a difference as you can but ensuring something is different.  As before, if the game saves option changes you should change only a single item and re-save. Copy this save to your PC and label it SAVE B.</p>
<p>Open both saves in a hex editor and visually compare the two, with little differences between them you should easily spot the 20 byte digital signature either at the start or the end of the file.  You can use an automatic file comparison if your editor supports it but in my experience I can find the sig faster by eye.  The signature in both files should be wildly different with the actual save data very consistent, aside from the minor differences you saved earlier.</p>
<p>Once you have found the sig location you should<strong> exclude</strong> this from the HMAC routines.  If the sig is at the end of the file you should HMAC all data <strong>up to</strong> the last 20 bytes, if it is at the beginning then all data <strong>after</strong> the first 20 bytes should be processed.  If the signature is located at another location in the file then you will need to experiment as to what data to HMAC.  A common trick when generating checksum&#8217;s is to treat the area containing the result of the checksum as all 0&#8242;s during the processing stage and write the result back to this location once complete.  Please note, it is rare to see this, most saves store their signature at the beginning or end of the file.</p>
<h3>Generating the signature</h3>
<p>Now you have the correct key and the data to process you can generate or check signatures for that particular games save files.  Similar to how the key was generated, the actual signature generation is a SHA1 HMAC of the save data (excluding the existing signature) with the key.</p>
<p>In the following example the save signature is located at the end of the file and the data is copied to a different memory stream for processing.  The previously generated key is stored in a 16 byte array named<em> sigKey</em></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p231code10'); return false;">View Code</a> DELPHI</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p23110"><td class="code" id="p231code10"><pre class="delphi" style="font-family:monospace;">mem <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TMemoryStream<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
mem2 <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TMemoryStream<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
mem<span style="color: #000066;">.</span><span style="color: #006600;">LoadFromFile</span><span style="color: #000066;">&#40;</span>FileName<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
mem<span style="color: #000066;">.</span><span style="color: #006600;">Position</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">;</span>
mem2<span style="color: #000066;">.</span><span style="color: #006600;">CopyFrom</span><span style="color: #000066;">&#40;</span>mem<span style="color: #000066;">,</span> mem<span style="color: #000066;">.</span><span style="color: #006600;">Size</span> <span style="color: #000066;">-</span> <span style="color: #0000ff;">20</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
digest <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CalcHMAC_SHA1<span style="color: #000066;">&#40;</span><span style="color: #000066;">addr</span><span style="color: #000066;">&#40;</span>sigKey<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">16</span><span style="color: #000066;">,</span> mem2<span style="color: #000066;">.</span><span style="color: #006600;">memory</span><span style="color: #000066;">^</span><span style="color: #000066;">,</span> mem2<span style="color: #000066;">.</span><span style="color: #006600;">size</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<p>Before making any changes to a save you should confirm that the signature you generate matches that already present on an unaltered save.</p>
<p>It&#8217;s worth bearing in mind that a lot of saves contain a checksum as well as a digital signature.  The most common being a CRC32 or a simple addition of bytes, you must recalculate this <strong>before</strong> the digital signature should you make any changes to the file.</p>
<h2>Conclusion</h2>
<p>The process of creating a digital signature for Xbox saves is fairly simple and can be summarized as</p>
<ul>
<li>SHA1 HMAC &#8220;XBE key&#8221; using &#8220;Xbox key&#8221;</li>
<li>Truncate resulting 160 bit digest to 16 bytes to create the &#8220;signature key&#8221;</li>
<li>SHA1 HMAC Save data using &#8221;signature key&#8221;</li>
<li>Compare resulting 160 bit digest to existing signature or write back to save file.</li>
</ul>
<p>If you use the information above to create anything or produce a unique save, drop me a line in the comments, sometimes the most interesting time in a games life is long after it was released..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2010/06/xbox-save-resigning-a-technical-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gelatin</title>
		<link>http://www.gothi.co.uk/2010/04/gelatin/</link>
		<comments>http://www.gothi.co.uk/2010/04/gelatin/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 22:33:38 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gelatin]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=225</guid>
		<description><![CDATA[This image disturbs me. Just what is that 1% Other?&#8230;]]></description>
				<content:encoded><![CDATA[<p>This image disturbs me.</p>
<p><img src="http://www.gothi.co.uk/uploads/Materials_Used_in_Gelatin_Production.jpg" alt="Materials used in Gelatin" /></p>
<p>Just what is that 1% Other?&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2010/04/gelatin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Halo Waypoint Top 5 Series returns</title>
		<link>http://www.gothi.co.uk/2010/03/halo-waypoint-top-5-series-returns/</link>
		<comments>http://www.gothi.co.uk/2010/03/halo-waypoint-top-5-series-returns/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:24:37 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Halo 3]]></category>
		<category><![CDATA[Halo Waypoint]]></category>
		<category><![CDATA[Xbox Live]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=222</guid>
		<description><![CDATA[I&#8217;m a big fan of the community features introduced in Halo 3 and always check out the latest screen shots and videos whilst waiting for a game to start. When Halo Waypoint was released I was pleased to see a regular feature on community videos and it became a regular feature for my Wednesdays. If, [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m a big fan of the community features introduced in Halo 3 and always check out the latest screen shots and videos whilst waiting for a game to start.  When Halo Waypoint was released I was pleased to see a regular feature on community videos and it became a regular feature for my Wednesdays.</p>
<p>If, like me, you were disappointed when season 1 ended you&#8217;ll be glad to hear that it&#8217;s made it&#8217;s return today with a top 5 entitled &#8220;Welcome Aboard&#8221; focusing on the art of boarding.</p>
<p>The video at number 2 might look <a href="http://www.gothi.co.uk/2009/06/skyjacktastic/" target="_blank">a little familiar</a> to those that were reading (and watching) my exploits back in June 2009&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2010/03/halo-waypoint-top-5-series-returns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing WP e-Commerce</title>
		<link>http://www.gothi.co.uk/2010/02/fixing-wp-e-commerce/</link>
		<comments>http://www.gothi.co.uk/2010/02/fixing-wp-e-commerce/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 16:48:23 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[e-Commerce]]></category>
		<category><![CDATA[Gold Cart]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=215</guid>
		<description><![CDATA[I&#8217;ve been implementing the WordPress e-Commerce plug-in on another site, it&#8217;s not a bad freebie but if you&#8217;re selling anything more than a handful of items then you&#8217;ll need to let your users search your products.  To add this functionality, along with a few other features, you need to purchase the $50 Gold Cart add-in. [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been implementing the WordPress e-Commerce plug-in on another site, it&#8217;s not a bad freebie but if you&#8217;re selling anything more than a handful of items then you&#8217;ll need to let your users search your products.  To add this functionality, along with a few other features, you need to purchase the $50 Gold Cart add-in.</p>
<p>I duly purchased and installed the update only to find that the &#8220;search&#8221; only looked at product titles, meaning that all the description text, additional description text and meta tags were being ignored.   Looking around it appears I wasn&#8217;t the only person who needed this functionality and I was able to get hold of some code to change in gold_shopping_cart.php.  I still didn&#8217;t get the results I was expecting so after checking out the Database table structure I went from</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code17'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21517"><td class="code" id="p215code17"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$category_list</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get_col<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT `id` FROM `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_PRODUCT_CATEGORIES<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;` WHERE `name` LIKE '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$search_string_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>to</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code18'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21518"><td class="code" id="p215code18"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$category_list</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get_col<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT id FROM `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_PRODUCT_LIST<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;` WHERE name LIKE '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$search_string_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' OR description LIKE '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$search_string_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' OR additional_description LIKE '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$search_string_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Notice the change in the table being searched.  The original code I found still looked in the WPSC_TABLE_PRODUCT_CATEGORIES table but this does not contain the additional_description field, an oversight on the original modders part.</p>
<p>Yet I still wasn&#8217;t getting the expected results.  A quick count of the $category_list array showed I was getting results but they were getting filtered out further on in the function by this little check:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code19'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21519"><td class="code" id="p215code19"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_list</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$category_assoc_list</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_col</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT DISTINCT `product_id` FROM `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_ITEM_CATEGORY_ASSOC<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;` WHERE `category_id` IN ('&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/implode"><span style="color: #990000;">implode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;', '&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category_list</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;')&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$category_sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;OR `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_PRODUCT_LIST<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;`.`id` IN ('&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/implode"><span style="color: #990000;">implode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;', '&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category_assoc_list</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;')&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Remember that I&#8217;m now searching products directly and the above code is looking to match the products unique ID against a category ID, clearly this will fail on 99% of searches.  A quick change to the search criteria is all that was needed to return valid results:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code20'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21520"><td class="code" id="p215code20"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_list</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$category_assoc_list</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_col</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT DISTINCT `product_id` FROM `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_ITEM_CATEGORY_ASSOC<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;` WHERE `product_id` IN ('&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/implode"><span style="color: #990000;">implode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;', '&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category_list</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;')&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$category_sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;OR `&quot;</span><span style="color: #339933;">.</span>WPSC_TABLE_PRODUCT_LIST<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;`.`id` IN ('&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/implode"><span style="color: #990000;">implode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;', '&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category_assoc_list</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;')&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>With that completed I looked at adding a separate search interface and came across WP e-Commerce Search Widget, a handy bit of code but unfortunately it doesn&#8217;t appear to be compatible with the latest version of WP e-Commerce so I had to quickly update</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code21'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21521"><td class="code" id="p215code21"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">'GET'</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">'product_search'</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;productsearchform&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php bloginfo('home');  ?&gt;/&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>to</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p215code22'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p21522"><td class="code" id="p215code22"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">'GET'</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">'product_search'</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;productsearchform&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php bloginfo('home');  ?&gt;/products-page/&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>WP e-Commerce is a lot of work, especially considering you have to pay $50 just to get basic functionality and then hack in the desired features.  Lets hope the checkout refresh bug doesn&#8217;t hit again&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2010/02/fixing-wp-e-commerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Bump&#8221; your way to hidden areas on ODST</title>
		<link>http://www.gothi.co.uk/2009/10/bump-your-way-to-hidden-areas-on-odst/</link>
		<comments>http://www.gothi.co.uk/2009/10/bump-your-way-to-hidden-areas-on-odst/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 17:36:04 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[glitch]]></category>
		<category><![CDATA[Halo 3]]></category>
		<category><![CDATA[ODST]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=208</guid>
		<description><![CDATA[The Secret Glyph Project have been hard at work and have figured out what was causing the doors in Sector 8 to disappear (see The ODST glyphs *DO NOT* unlock a door!&#8221; and Confirmed: ODST door disappearance is a glitch) and got in working in other sectors! They&#8217;ve wrapped it up nicely in this Youtube [...]]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://subculturelifestyle.com/forum/index.php?board=29.0" target="_blank">Secret Glyph Project</a> have been hard at work and have figured out what was causing the doors in Sector 8 to disappear (see <a href="http://www.gothi.co.uk/2009/10/the-odst-glyphs-do-not-unlock-a-door/" target="_blank">The ODST glyphs *DO NOT* unlock a door!&#8221;</a> and <a href="http://www.gothi.co.uk/2009/10/confirmed-odst-door-disappearance-is-a-glitch/" target="_blank">Confirmed: ODST door disappearance is a glitch</a>) and got in working in other sectors!</p>
<p>They&#8217;ve wrapped it up nicely in this Youtube video which servers as both a demonstration and tutorial.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/M4UrE8O8PMw&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/M4UrE8O8PMw&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>For detailed information on how to repeat it and how it works check out their <a href="http://subculturelifestyle.com/forum/index.php?topic=116.0" target="_blank">discussion forum</a> and get &#8220;bumping&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2009/10/bump-your-way-to-hidden-areas-on-odst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Confirmed: ODST door disappearance is a glitch</title>
		<link>http://www.gothi.co.uk/2009/10/confirmed-odst-door-disappearance-is-a-glitch/</link>
		<comments>http://www.gothi.co.uk/2009/10/confirmed-odst-door-disappearance-is-a-glitch/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 20:10:09 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[glitch]]></category>
		<category><![CDATA[Halo 3]]></category>
		<category><![CDATA[ODST]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=201</guid>
		<description><![CDATA[I&#8217;ve just gone back to the in-game video of me showing a friend the disappearing door in Sector 8 (see my previous post for details) and I checked out Sector 8 before and after the door disappears. This is nothing more than a repeatable glitch. In comparison to the fully loaded sector when the door [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve just gone back to the in-game video of me showing a friend the disappearing door in Sector 8 (see my previous post for details) and I checked out Sector 8 before and after the door disappears. This is nothing more than a repeatable glitch.</p>
<p>In comparison to the fully loaded sector when the door is missing the following applies:</p>
<p><b>3</b> areas used as the SI supply drops are now open (not just the 1 originally discovered).<br />
The grunts and turrets are not loaded in one of the circular areas.<br />
Adverts for cars are missing from the walls.<br />
Various items are not loaded such as the Opticon health dispensers and stand alone terminals (such as the one near the shotgun).</p>
<p>So it&#8217;s a case of good work on finding a glitch, now can we do this on other sectors to access even more areas that should be blocked off?</p>
<p>JSM26 has uploaded an ODST video to his Bungie.net file share showing <a href="http://www.bungie.net/Online/Halo3UserContentDetails.aspx?h3fileid=96810834" target="_blank">missing Opticon dispensers and de-loaded doors in the starting sector</a>.  Further evidence that the ODST modified Halo 3 engine has glitches, possibly exploitable to access other blocked off areas the designers never wanted us to get to&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2009/10/confirmed-odst-door-disappearance-is-a-glitch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The ODST glyphs *DO NOT* unlock a door!</title>
		<link>http://www.gothi.co.uk/2009/10/the-odst-glyphs-do-not-unlock-a-door/</link>
		<comments>http://www.gothi.co.uk/2009/10/the-odst-glyphs-do-not-unlock-a-door/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 17:05:24 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Halo 3]]></category>
		<category><![CDATA[ODST]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=193</guid>
		<description><![CDATA[There&#8217;s been quite a bit of excitement over at Bungie.net recently, someone noticed that if you look at some of the glowing Covenant glyphs in Sector 6 resulted in two doors in Sector 8 disappearing allowing access to a previously blocked off area and an empty supply drop.  The Secret Glyph Project got on the [...]]]></description>
				<content:encoded><![CDATA[<p>There&#8217;s been quite a bit of excitement over at Bungie.net recently, someone noticed that if you look at some of the glowing Covenant glyphs in Sector 6 resulted in two doors in Sector 8 disappearing allowing access to a previously blocked off area and an empty supply drop.  <a href="http://subculturelifestyle.com/forum/index.php?board=29.0" target="_blank">The Secret Glyph Project</a> got on the wagon and produced a video demonstrating the effect and a whole slew of sub-forums were created to track this phenomenon.</p>
<p>I&#8217;m sad to say that  the doors disappear from what appears to be a loading glitch, not from looking at any glyphs.  Here&#8217;s how I determined this, I encourage you to try this to replicate the results:</p>
<blockquote><p><em><span style="color: #ff0000;"><em><span style="color: #ff0000;">Having completed the game</span></em> I loaded up New Mombasa Streets,  immediately got myself a mongoose and headed to Sector 8 to check on the door.  At this point I should point out that at no time after getting the mongoose did I have the visor on.  The door was closed as expected.</span></em><em><span style="color: #ff0000;"><br />
</span></em><em><span style="color: #ff0000;"> I then drove over to Sector 6 and without turning on my visor walked up to the covenant sniper rifle next to the Elites, picked it up and got back on my mongoose (parked near to the Sector exit).  I then drove immediately back to the door which was now open with no glyphs sighted.</span></em></p>
<p><em><span style="color: #ff0000;"> </span></em><em><span style="color: #ff0000;">If you look at a map you&#8217;ll see that Sector 8 is actually a twisted mirror of Sector 3 and if you look closely you&#8217;ll see that Sector 3 also has a room with funny tiles on it matching the location and design of the one in Sector 8.  If you go to this area you&#8217;ll immediately feel at home and easily spot the Security door as placed in a mirror fashion to the one in Sector 8. This door opens&#8230;</span></em></p>
<p><em><span style="color: #ff0000;"> </span></em><em><span style="color: #ff0000;">So, it&#8217;s my belief that this is just fall out to the way the game engine loads the levels and nothing at all to do with the glyphs, it&#8217;s just coincidence that they are located in the area you need to go to de-load the doors.</span></em></p></blockquote>
<p>Certain glyphs lead you to keys areas so for me it&#8217;s pretty clear that the glyphs are there for player guidance and to add an air of mystery.  Give it it a go, try the experiment above and let me know your results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2009/10/the-odst-glyphs-do-not-unlock-a-door/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Halo 3 Asset-O-Matic R.I.P?</title>
		<link>http://www.gothi.co.uk/2009/09/halo-3-asset-o-matic-r-i-p/</link>
		<comments>http://www.gothi.co.uk/2009/09/halo-3-asset-o-matic-r-i-p/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 21:36:03 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Asset-O-Matic]]></category>
		<category><![CDATA[Halo 3]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=187</guid>
		<description><![CDATA[As expected, the redesign of Bungie.net; has stopped the Halo 3 Asset-O-Matic from working. I&#8217;m not sure if I will be updating the app to support the new layout, I&#8217;ll have to see how inspired I am with the release of ODST&#8230;;)]]></description>
				<content:encoded><![CDATA[<p>As expected, the redesign of <a href="http://www.bungie.net" target="_blank">Bungie.net</a>; has stopped the Halo 3 Asset-O-Matic from working.</p>
<p>I&#8217;m not sure if I will be updating the app to support the new layout, I&#8217;ll have to see how inspired I am with the release of ODST&#8230;;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2009/09/halo-3-asset-o-matic-r-i-p/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New 360 dash preview</title>
		<link>http://www.gothi.co.uk/2009/07/new-360-dash-preview/</link>
		<comments>http://www.gothi.co.uk/2009/07/new-360-dash-preview/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 07:08:28 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[Xbox360]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=184</guid>
		<description><![CDATA[So, I booted up my 360 this morning so I could experience the wonders of the new dash&#8230; Avatar props: They&#8217;ve missed the crucial factor here, impulse purchasing. Every thing&#8217;s priced too high, prices should range from 20G to 100G, if it were I&#8217;d have probably spent 800G this morning alone, but as it is [...]]]></description>
				<content:encoded><![CDATA[<p>So, I booted up my 360 this morning so I could experience the wonders of the new dash&#8230;</p>
<p>Avatar props:<br />
They&#8217;ve missed the crucial factor here, impulse purchasing.  Every thing&#8217;s priced too high, prices should range from 20G to 100G, if it were I&#8217;d have probably spent 800G this morning alone, but as it is I&#8217;ve bought nothing.  I&#8217;m not spending 320G on a remote control warthog that can only be seen on the dash, that&#8217;s almost half the price of a game!<br />
Stan&#8217;s Outfit should be 1 purchase, you shouldn&#8217;t have to buy the hat separately.<br />
I&#8217;ll be sticking to the freebies from games for a while until something that <strong>really</strong> appeals to my impulsive side turns up.</p>
<p>Dash speed:<br />
Yup, it&#8217;s true, the dash feels almost as responsive as the USA one did!  I was able to queue up 4 episodes of the guild in the time it would have previously taken to queue up a single episode.  I&#8217;m hoping that this responsiveness continues into the guide when you&#8217;re in game, I&#8217;ve nearly thrown my controller around the room before whilst waiting over 2 minutes for the guide to load up at a crucial part of an online game</p>
<p>The other stuff:</p>
<p>It&#8217;s all fluff apart from that.  I don&#8217;t need to tweak my display options, date stamps on saves are very useful but I rarely do anything with my saves as it is.  The change to my gamercard is very nice but I can live without it, as can most others I expect. The achievement browser is a useful indication of how few games I have 100% whored, I wish they&#8217;d taken this further showing games with easy achievements to reach, links to guides and strategies and the like.  Could have been a great cross promotional effort with IGN, as it is it&#8217;s just a nice bit of fluff.</p>
<p>It&#8217;s good, but it doesn&#8217;t have any of the exciting features such as Last.fm, Sky integration and the other cool features we&#8217;ve been promised at E3.  Still, nice to be on the first wave I guess <img src='http://www.gothi.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2009/07/new-360-dash-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
