<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Redump Forum — Inclusion of SBI files in the dat?]]></title>
	<link rel="self" href="http://forum.redump.org/feed/atom/topic/4313/" />
	<updated>2009-04-25T15:53:16Z</updated>
	<generator version="1.4.4">PunBB</generator>
	<id>http://forum.redump.org/topic/4313/inclusion-of-sbi-files-in-the-dat/</id>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17365/#p17365" />
			<content type="html"><![CDATA[<p>oh<br />that&#039;s great then it would be really nice to have those in .dat</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-25T15:53:16Z</updated>
			<id>http://forum.redump.org/post/17365/#p17365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17362/#p17362" />
			<content type="html"><![CDATA[<p>Redump can actually generate SBI files with CRC-16 (and without extra header), just replace &quot;sbi&quot; with &quot;lsd&quot;, for example: <a href="http://redump.org/disc/2371/lsd/">http://redump.org/disc/2371/lsd/</a><br />The format of the file is simple: 3 bytes for MSF and 12 bytes for Q-channel data.</p>]]></content>
			<author>
				<name><![CDATA[Dremora]]></name>
				<uri>http://forum.redump.org/user/2/</uri>
			</author>
			<updated>2009-04-25T12:41:23Z</updated>
			<id>http://forum.redump.org/post/17362/#p17362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17360/#p17360" />
			<content type="html"><![CDATA[<p>...<br />You&#039;re sick. No comments.</p>]]></content>
			<author>
				<name><![CDATA[F1ReB4LL]]></name>
				<uri>http://forum.redump.org/user/13/</uri>
			</author>
			<updated>2009-04-25T10:08:48Z</updated>
			<id>http://forum.redump.org/post/17360/#p17360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17354/#p17354" />
			<content type="html"><![CDATA[<p>to be honest, i don&#039;t want to<br />i could have made .sbi optional at all so it would rather be .cue-&gt;.ccd+.bin<br />but it could get out of control, then, as i see it<br />people might convert images and reupload them without referencing redump.org at all<br />and those would likely get more popular than ours because of application ease<br />so while they&#039;d still be valid images<br />a lot of project&#039;s meaning would be lost and redump.org would have to compete with it&#039;s own subset<br />i don&#039;t want that to hapen,<br />i think this also might be one of reasons why Dremora didn&#039;t create such program<br />so i chose to make it as specific as possible</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-25T03:19:10Z</updated>
			<id>http://forum.redump.org/post/17354/#p17354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17347/#p17347" />
			<content type="html"><![CDATA[<p>Why not to make XOR optional, so it will be possible to use non-libcrypt .sbi files for input?</p>]]></content>
			<author>
				<name><![CDATA[F1ReB4LL]]></name>
				<uri>http://forum.redump.org/user/13/</uri>
			</author>
			<updated>2009-04-24T19:15:48Z</updated>
			<id>http://forum.redump.org/post/17347/#p17347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17346/#p17346" />
			<content type="html"><![CDATA[<p>.dat is meant as a container from where to retrieve sizes, instead of actual .bin files, when they&#039;re not accessible<br />or when 1st pass is done &amp; .img, etc. created, <br />execution of program with .dat will overwrite only .sub &amp; .ccd, not .img itself<br />so it&#039;s slightly faster and less HDD killing, for those cases when only testing of $8001 vs $0080 is required</p><div class="quotebox"><blockquote><p>lol, Dremora can&#039;t manage to write such a tool in 3 years time and you do it in 1 day (and you both live in Latvia? <img src="http://forum.redump.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" />)</p><p>So the sbi format is missing relevant data that cannot be generated again? How about a tool which loads the libcrypt sectors from the database instead of using the sbi file? <img src="http://forum.redump.org/img/smilies/cool.png" width="15" height="15" alt="cool" /></p></blockquote></div><p>no, no, Dremora had most of it done in psxt001z for a long time - there is SUB generator, it just doesn&#039;t take TOC as an input<br />i guess he had his reasons not to make it or really is very busy<br />and so did i - i had written very similar program recently, to make .SUBs for those saturn ring tests<br />so just had to make few little changes here and there - it&#039;s not a big deal<br />thanks though <img src="http://forum.redump.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>did few more tests - i&#039;ve masked first one MSF column, then 2nd in Crash Bash <br />and it didn&#039;t pass both of the times, no matter the CRC value<br />so it isn&#039;t threshold (any CRCs pass, but moded MSFs do not)<br />it&#039;s strange - i really thought this would be it<br />maybe there really is nothing more to this?</p><p>and so far all records in db belong to one of those two patterns, afaict, <br />so it&#039;s 50:50 for about 100 records, <br />not that bad if somebody wants to just burn some CDs</p><p>but for sake of preservation SBI, as it is now do not fit, imho <br />belonging to exact pattern is lost, so if there would be no more DB<br />guessing would be all that&#039;s left and still even if both values would pass on PSX<br />this information itself would be lost</p><p>batch reading from db is possible, cHrI8l3 would know better than i<br />but i think it wouldn&#039;t be good to to that - ther&#039;s no simple way, imho<br />it would retrive those 100 records whole, every time<br />things like that basically could kill server</p><p>one single reading to save manual labour making a backup in .txt or so - for later processing, <br />on the other hand, would do no harm</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-24T18:54:45Z</updated>
			<id>http://forum.redump.org/post/17346/#p17346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17345/#p17345" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Usage:&nbsp; sbi2sub file.cue file.sbi XOR <strong>[file.dat]</strong></p><p>Where:&nbsp; XOR is either $0080 or $8001</p><p>Example:<br />&nbsp; &nbsp; &nbsp; &nbsp; sbi2sub Game.cue Game.sbi $8001<br />&nbsp; &nbsp; &nbsp; &nbsp; sbi2sub Game.cue Game.sbi $0080 <strong>PSX.dat</strong></p></blockquote></div><p>What&#039;s that?</p>]]></content>
			<author>
				<name><![CDATA[F1ReB4LL]]></name>
				<uri>http://forum.redump.org/user/13/</uri>
			</author>
			<updated>2009-04-24T17:13:17Z</updated>
			<id>http://forum.redump.org/post/17345/#p17345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17344/#p17344" />
			<content type="html"><![CDATA[<p>lol, Dremora can&#039;t manage to write such a tool in 3 years time and you do it in 1 day (and you both live in Latvia? <img src="http://forum.redump.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" />)</p><p>So the sbi format is missing relevant data that cannot be generated again? How about a tool which loads the libcrypt sectors from the database instead of using the sbi file? <img src="http://forum.redump.org/img/smilies/cool.png" width="15" height="15" alt="cool" /></p>]]></content>
			<author>
				<name><![CDATA[Jackal]]></name>
				<uri>http://forum.redump.org/user/8/</uri>
			</author>
			<updated>2009-04-24T15:58:35Z</updated>
			<id>http://forum.redump.org/post/17344/#p17344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17341/#p17341" />
			<content type="html"><![CDATA[<p>well ok, <br />i&#039;ve made a program that would convert .sbi -&gt; .sub taking magic value as an input parameter<br /><a href="https://www.yousendit.com/download/dVlxWmdqRndqV0IzZUE9PQ">sbi2sub</a></p><p>processed following images with it:<br /><a href="http://redump.org/disc/5483/">Crash Bash</a><br /><a href="http://redump.org/disc/1250/">Speed Freaks</a></p><p>and tested with ePSXE 1.70</p><p><em>plugins that do not appear to read subcode at all (they crashed @LC):</em><br /><span style="color: red">SaPu&#039;s CD-ROM<br />Xeven&#039;s Cdr</span><br /><em>plugins that would have to work but didn&#039;t (both games hanged prior LC with those):</em><br /><span style="color: orange">P.E.Op.S. CDR<br />Pete&#039;s CDR</span><br /><em>plugins that did worked:</em><br /><span style="color: green">ePSXe CDR</span> &lt;- only one that passed and would run actual CDs instead of images<br /><span style="color: green">Moby2 cd disk image driver<br />and additionaly ePSXe&#039;s Run ISO command</span></p><p>without subcode:<br /><em>Crash Bash</em> would crash on loading screen after character select &amp; intro, before stage select<br /><em>Speed Freaks</em> hangs while Neon City stage is loading</p><p>with subcode those parts passed on both XOR patterns ($8001 &amp; $0080)<br />i didn&#039;t test further though:<br />maybe there are later checks that wouldn&#039;t<br />maybe there is certain threshold, so for example: <br />byte from each MSF + 2 CRC bytes = 4&nbsp; - maybe half of them passing is sufficient<br />but CD-R recorded this way would degrade much faster<br />maybe hardware or even other emulators act different<br />so i didn&#039;t test all those things - i&#039;ll take a closer look later with debugger - it&#039;s quite interesting</p><p>but consider this:<br />if those CRCs are there for the kicks only - completely unneeded to pass LibCrypt<br />it&#039;s a huge flaw in protection then, imho - this pattern gives away those special blocks<br />so what if Sony removed it later?<br />what if there are LC versions without modified CRCs or at least without constant (maybe even for USA or Japan)?<br />we wouldn&#039;t pick those currently, right?<br />the only way would be to clear subchannel a lot - with multiple rereads <br />and compare it later on with the ones from different CD, made in a similar way<br />psxt001z is capable of doing this, afaik, but nobody would - it takes forever<br />it&#039;s such a drag, not everyone would even test CDs with fast option</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-24T14:11:49Z</updated>
			<id>http://forum.redump.org/post/17341/#p17341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17327/#p17327" />
			<content type="html"><![CDATA[<p>but CRCs are modified as well - <br />it&#039;s either (CRC from clean block or CRC from modified block) XORed with one of predefined values: <br />0x0080 or 0x8001<br />so what is this all about? why would Sony bother XORing then? <br />to tell people where LC is, so it could be copied with ease?<br />maybe emulators cheat? have you tested on console?</p><p>i don&#039;t think SBI author did really understand how LibCrypt works,<br />since ther&#039;s that possiblility to include only one of MSFs (saving 7 bytes?) -<br />on LibCrypt this seems to never happen - it&#039;s always both or none, afaict<br />so CRC can even be sole value modified:<br /><a href="http://redump.org/disc/1128/">http://redump.org/disc/1128/</a><br />those sectors are known to be LC, <br />with them pattern looks complete: 32 total sectors divided in groups of 16<br />3rd entry is @offset 0x20 in SBI, containing only valid bytes<br />how can modified data be recreated from unmodified values?<br />btw such blocks would be skipped with original plugin - it only stores ones with modified MSFs</p><p>so this complexity of format - it appears completely irrational and quite useless,<br />it could have been just MSF+entire Q<br />overcomplication often is a result of lack of understanding</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-23T19:26:32Z</updated>
			<id>http://forum.redump.org/post/17327/#p17327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17325/#p17325" />
			<content type="html"><![CDATA[<p>CRCs are unneeded for ingame libcrypt validation, only MSFs and AMSFs are important.</p>]]></content>
			<author>
				<name><![CDATA[F1ReB4LL]]></name>
				<uri>http://forum.redump.org/user/13/</uri>
			</author>
			<updated>2009-04-23T19:07:06Z</updated>
			<id>http://forum.redump.org/post/17325/#p17325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17317/#p17317" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>One thing I can suggest though is that we do need something added to the site to give us a list of the games that do have sbi files on them so that we can quickly know what games have been proven to have LibCrypt protection on them without having to look at each game separately.</p></blockquote></div><p><a href="http://redump.org/discs/system/psx/libcrypt/2/">http://redump.org/discs/system/psx/libcrypt/2/</a></p><br /><p>btw, do those SBIs even work?</p><p>there appears to be no CRC stored within them,<br />so it&#039;s supposed to be recreated i guess<br />but since there are multiple patterns,<br />how would you tell whether to XOR with 0x0080 or with 0x8001?<br />if it&#039;s byte right after MSF, something&#039;s wrong then - it&#039;s never different from 0x01</p><p>for example:<br /></p><div class="codebox"><pre><code>same changes on CDs with different patterns:

                      C/A TNO IND M   S   F   Zro aM  aS  aF  CRC      Unmd   LC1    CRC      Real   LC2
MSF: 03:08:05 Q-Data: 41  01  01  07* 06  05  00 *23  08  05  ffb8 xor b838 = 4780 | ffb8 xor ff38 = 0080
MSF: 03:08:05 Q-Data: 41  01  01  07* 06  05  00 *23  08  05  3839 xor b838 = 8001 | 3839 xor ff38 = c701

in SBI CRC is lost:

                      C/A TNO IND M   S   F   Zro aM  aS  aF  CRC      Unmd   LC1    CRC      Real   LC2
MSF: 03:08:05 Q-Data: 41  01  01  07* 06  05  00 *23  08  05  ???? xor b838 = 4780 | ???? xor ff38 = 0080
MSF: 03:08:05 Q-Data: 41  01  01  07* 06  05  00 *23  08  05  ???? xor b838 = 8001 | ???? xor ff38 = c701</code></pre></div><p>so to recalculate CRC it could be either one of those algorithms:<br />a) Real XOR 0080<br />b) Unmd XOR 8001<br />but only one of them is valid for each CD</p><p>i.e.<br />this is as far as SBI goes:<br />MSF: 03:08:05 Q-Data: 41&nbsp; 01&nbsp; 01&nbsp; 07* 06&nbsp; 05&nbsp; 00 *23&nbsp; 08&nbsp; 05<br />those bytes are the same for both CDs <br /><a href="http://redump.org/disc/592/">http://redump.org/disc/592/</a><br /><a href="http://redump.org/disc/798/">http://redump.org/disc/798/</a><br />but each has different pattern in DB</p><p>it can&#039;t be right...</p><p>edit:<br />from what i can tell from cdr sources <br />0x01 following MSF indicate both time values being modified<br />and that&#039;s as much as SBI can hold<br />other options are 0x02 and 0x03 - for storing only relative or absolute MSFs<br />so i&#039;d say ther&#039;s no way for SBI to hold CRCs - it&#039;s an unfortunate limitation of format</p><p>so what are those SBIs then good for at all?</p>]]></content>
			<author>
				<name><![CDATA[themabus]]></name>
				<uri>http://forum.redump.org/user/2174/</uri>
			</author>
			<updated>2009-04-23T13:00:55Z</updated>
			<id>http://forum.redump.org/post/17317/#p17317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17114/#p17114" />
			<content type="html"><![CDATA[<p>SBI files should always be the same, else the libcrypt protection would fail.</p><p>SBI files are needed to actually preserve the digital data, so it should be included when replicating data. (Though it is bad that it is done in a binary format which is poorly documented)</p>]]></content>
			<author>
				<name><![CDATA[Sotho Tal Ker]]></name>
				<uri>http://forum.redump.org/user/4396/</uri>
			</author>
			<updated>2009-04-17T05:01:40Z</updated>
			<id>http://forum.redump.org/post/17114/#p17114</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/17112/#p17112" />
			<content type="html"><![CDATA[<p>I believe SBI info should not be in the Dat file if it can&#039;t be verified, as that was not what i remember this site purpose was.</p><p>for me having info about packiso images CRC or SBI info in a dat is not right, and it should be the responsibilities of the uploaders to download those SBI files and share them with the dumps. also if someone have some packiso images generating a new dat file for those take just few clicks, having that info and regularly update it when ever there is a change related to that image in redump.org DB will only make maintaining the DB hard.</p><p>PS: i would rather like the dat file to be updated so that the naming scheme of the files can be updated to reflect more proper game name then having these info.</p>]]></content>
			<author>
				<name><![CDATA[BadSector]]></name>
				<uri>http://forum.redump.org/user/4334/</uri>
			</author>
			<updated>2009-04-17T04:46:04Z</updated>
			<id>http://forum.redump.org/post/17112/#p17112</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inclusion of SBI files in the dat?]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/16825/#p16825" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Haldrie wrote:</cite><blockquote><p>Hm...ok now that I think about it a little more I guess it wouldn&#039;t hurt. I&#039;m just seeing way too much stuff around here with people wanting to make this more &quot;emulator friendly&quot; when that was never what this started out to be in the first place but yes I guess a CRC of the sbi file is possible since the site generates the checksums for the cue files as well. I just wish Dremora (or someone here that can program) would make something that can inject the SBI data in to a generated CloneCD sub file for people like me who want to burn the images and run them on the real system.</p></blockquote></div><br /><p>Indeed,&nbsp; directly onthefly injection of&nbsp; the subchannel-data when mounting/burning a dump would be the best solution, but until someone comes up with way to use them, we are stuck to the sbi-files and therefor should be referenced in the dats.</p><p>Just like some MAME versions ago, where you need to use some special files (xor tables) to break protection of CPS3 games. Ofcourse MAME had references to those files in it&#039;s internal database. Now that MAME can emulate the protection itself without the need to &#039;crack&#039; it, the xor-tables arn&#039;t needed anymore and has been removed from the rom-db.</p>]]></content>
			<author>
				<name><![CDATA[topkat]]></name>
				<uri>http://forum.redump.org/user/1634/</uri>
			</author>
			<updated>2009-04-08T15:10:09Z</updated>
			<id>http://forum.redump.org/post/16825/#p16825</id>
		</entry>
</feed>
