{"id":214,"date":"2006-02-27T22:32:19","date_gmt":"2006-02-28T06:32:19","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=214"},"modified":"2006-03-04T12:06:02","modified_gmt":"2006-03-04T20:06:02","slug":"meet-mlbms","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/meet-mlbms\/","title":{"rendered":"Meet mlbms"},"content":{"rendered":"<p>Janusz Dziemidowicz has been making some nifty progress with his <a href=\"http:\/\/fusepak.sourceforge.net\/bms.php\">mlbms program<\/a> for mounting game resource archive format (GRAF) files. Check this out:<\/p>\n<pre>\r\n$ mlbms bms\/alg-lib.bms resource-files\/alg-lib\/maddog.lib mount\/\r\n$ ls -al mount\/\r\ntotal 1\r\ndr-xr-xr-x  2 melanson users       0 Feb 26 23:05 .\r\ndrwxr-xr-x  7 melanson users    1120 Feb 26 19:07 ..\r\n-r--r--r--  1 melanson users  305172 Feb 26 23:05 alg.mm\r\n-r--r--r--  1 melanson users   24912 Feb 26 23:05 credits.mm\r\n-r--r--r--  1 melanson users  314245 Feb 26 23:05 ibmlogo.mm\r\n-r--r--r--  1 melanson users  338277 Feb 26 23:05 scen110a.mm\r\n-r--r--r--  1 melanson users  278177 Feb 26 23:05 scen112a.mm\r\n[... ad nauseum ...]\r\n<\/pre>\n<p>Slick, huh? I knew you&#8217;d think so. This command mounts the <a href=\"http:\/\/wiki.xentax.com\/index.php\/American_Laser_Games_LIB\">LIB GRAF<\/a> from <em>Mad Dog McCree<\/em> as part of the normal filesystem.<\/p>\n<p><!--more--><\/p>\n<p>This is the <a href=\"http:\/\/wiki.xentax.com\/index.php\/BMS\">BMS script<\/a> I used for parsing (might not be 100% compatible with other BMS-using programs in existence):<\/p>\n<pre>\r\nGoTo 2 0;\r\nGet IndexOffset Long 0;\r\nGoTo IndexOffset 0;\r\nGet IndexLength Int 0;\r\nMath IndexLength \/= 17;\r\nMath IndexLength -= 1;\r\nFor File = 1 to IndexLength;\r\nGet FileOffset Long 0;\r\nGetDString Filename 13 0;\r\nSavePos PreJump 0;\r\nGoTo FileOffset 0;\r\nGet FileSize Long 0;\r\nMath FileOffset += 4;\r\nLog Filename FileOffset FileSize 0 0;\r\nGoTo PreJump 0;\r\nNext File;\r\n<\/pre>\n<p>BMS development presents an interesting challenge for me since I can&#8217;t presently compile mlbms on my main AMD64 machine (x-wing). I also have a little headless x86 box (yavin4) that serves some other duties. It can compile mlbms so I am using the 2 machines in tandem to develop BMS scripts. Behold the incredible flexibility of Linux filesystems:<\/p>\n<ul>\n<li>Mount the CD-ROM on x-wing via normal Linux kernel facilities.<\/li>\n<li>Mount x-wing&#8217;s CD-ROM mountpoint on yavin4 via sshfs\/FUSE.<\/li>\n<li>Mount the maddog.lib GRAF onto yavin4&#8217;s filesystem via mlbms\/FUSE.<\/li>\n<li>Mount yavin4&#8217;s GRAF mountpoint on x-wing via sshfs\/FUSE.<\/li>\n<li>Read and play the files inside the GRAF using multimedia programs on x-wing.<\/li>\n<\/ul>\n<p>Oh, how I&#8217;m grateful that sshfs frees me from actually having to <em>think<\/em> about setting up NFS or Samba just to do basic file sharing between PCs on a local network. <a href=\"http:\/\/fuse.sourceforge.net\/\">FUSE<\/a> rocks.<\/p>\n<p>According to the mlbms page, Janusz is using this as a teaching tool for his lectures. What an awesome academic example!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The FUSE-BMS system takes shape&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-open-source-multimedia"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":0,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}