public Tileset(byte[] buf) {
			int[] off = new int[1];
			off[0] = 0;
			fl = Utils.ub(buf[off[0]++]);
			int flnum = 0;
			if (Config.showFlavors)
				flnum = Utils.uint16d(buf, off[0]);
			off[0] += 2;
			flavprob = Utils.uint16d(buf, off[0]);
			off[0] += 2;
			fln = new String[flnum];
			flv = new int[flnum];
			flw = new int[flnum];
			for (int i = 0; i < flnum; i++) {
				fln[i] = Utils.strd(buf, off);
				flv[i] = Utils.uint16d(buf, off[0]);
				off[0] += 2;
				flw[i] = Utils.ub(buf[off[0]++]);
			}
		}