Posted in DrSchnz on November 13th, 2011 by drschnz – 3 Comments
Run a C program such as
int main() {
int t;
for (t = 0;;t++) {
putchar((t >> 6 | t | t >> (t >> 16)) * 10 + ((t >> 11) & 7));
}
}
and you’ll get pseudo-random gibberish, but pipe the output of the same program into a 8-bit 8kHz pcm sound device and you’ll get something not far from a chip-tune symphony. There’s been a recent trend in the demoscene community of making simple, short programs that produce surprisingly complex music. Now, I don’t have anything for the hardcore demoscene artists who want to fit a techno song in a 12 byte program, but I do have something for those who want to experiment with algorithmic music.

Bit Orchestra is a tool for quickly testing and prototyping expressions for create interesting noises (and sometimes even music!). It has some helpful music related functions and allows you to hear the output immediately. You can download Bit Orchestra here (sorry, Windows only, at the moment at least) or view the (MIT-licensed) source here. Once you’ve download it, load and try out the included samples.
Also look at this.
Posted in C0BRA on October 7th, 2011 by C0BRA – Be the first to comment
I was looking for a way to do this not to long ago; I came across some examples that used a third party libary and was over complicated, so I created this class based of one of MSDNs examples.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Packaging;
using System.IO;
public class ZipSticle
{
Package package;
public ZipSticle(Stream s)
{
package = ZipPackage.Open(s, FileMode.Create);
}
public void Add(Stream stream, string Name)
{
Uri partUriDocument = PackUriHelper.CreatePartUri(new Uri(Name, UriKind.Relative));
PackagePart packagePartDocument = package.CreatePart(partUriDocument, "");
CopyStream(stream, packagePartDocument.GetStream());
stream.Close();
}
private static void CopyStream(Stream source, Stream target)
{
const int bufSize = 0x1000;
byte[] buf = new byte[bufSize];
int bytesRead = 0;
while ((bytesRead = source.Read(buf, 0, bufSize)) > 0)
target.Write(buf, 0, bytesRead);
}
public void Close()
{
package.Close();
}
}
You can then use it like this:
FileStream str = File.Open("MyAwesomeZip.zip", FileMode.Create);
ZipSticle zip = new ZipSticle(str);
zip.Add(File.OpenRead("C:/Users/C0BRA/SimpleFile.txt"), "Some directory/SimpleFile.txt");
zip.Add(File.OpenRead("C:/Users/C0BRA/Hurp.derp"), "hurp.Derp");
zip.Close();
str.Close();
You can pass a MemoryStream (or any Stream) to ZipSticle.Add such as:
FileStream str = File.Open("MyAwesomeZip.zip", FileMode.Create);
ZipSticle zip = new ZipSticle(str);
byte[] fileinmem = new byte[1000];
// Do stuff to FileInMemory
MemoryStream memstr = new MemoryStream(fileinmem);
zip.Add(memstr, "Some directory/SimpleFile.txt");
memstr.Close();
zip.Close();
str.Close();
Posted in MineViewer on May 26th, 2011 by C0BRA – 8 Comments
Added the new block types:
- Booster
- TrackPressurePad
- TrapDoor
- Bed
- Web
- TallGrass
- DeadShrubs
And fixed a bug that stopped you from opening your save while Minecraft is currently running.
Download:
MediaFire
Posted in MineViewer on March 22nd, 2011 by C0BRA – 26 Comments
Sorry about the delay, I had (lots) of course work for college, and DrSchnz is working on other things, I was planning on doing it in some free time I had, but I kept procrastinating though, that’s when I received a message from AndruinGreydawn, he fixed the loading code so all I needed to do was fix the main menu (Thanks!), which turned out okay
Not much to say, it’s fixed to support your 1.3 maps, if you wan’t to open the older < 1.2 maps then you will need the older version of MineViewer, and added the Lua constant for the new repeater block, oh and the menu changed a little too, not a grave deal you should see though, just behind the scenes.
Here is a complimatry image of the new menu:

Download:
FileSmelt
MediaFire (Still has 8 protocol version)
Posted in DrSchnz on January 31st, 2011 by drschnz – 2 Comments

OpenTKGUI, a GUI library I’ve made for future projects is now in a stable (kindof) usable state. For the few who are interested, you can download the above demo application here or the library here. I will be updating the wiki with tutorials and information in my spare time.
Posted in MineViewer on January 20th, 2011 by C0BRA – 30 Comments
MineViewer has been updated to support new blocks in Minecraft beta, sorry about the delay, I was working on getting MineViewer to connect to SMP servers (Don’t worry server admins, read further down), which I wanted to come with this update, unfortunately it is not complete and is buggy, so use it with caution, transparency is another new feature which has been implented.
For server admins who are concerned and do not want MineViewer to connect to their server, add “-nc” to the very start of your motd and MineViewer will refuse to connect.
Picture time


(Ill get more screen shots when minecraft.net comes back up)
Oh, just make sure you click the little “^” button on the chat form and select force map download, this will move the player around slightly so the server sends us those precious chunks (just make sure you unload the chunks and reload them).
Download
Source code on github
EDIT: Updated MineViewer to connect with the new launcher.
EDIT 2: Is he doing this on purpose? Fixed auth again.