darpified wrote:I believe that someone is talking out of their ass.
// read a compressed .ab file
#include <fstream>
#include <iostream>
#include <zlib.h>
#include "abformat.h"
int main(int argc, char *argv[])
{
for(int fiter = 1; fiter < argc; fiter++)
{
std::cerr << "Unpacking " << argv[fiter] << "\n";
abfile fin(argv[fiter]);
std::string dest = "poop";
if (fin.details.size() >= 4)
dest = fin.details[3];
std::cerr << "Writing to directory " << dest << "\n";
system(("mkdir " + dest + " 2>&1").c_str());
dest += "/";
for(size_t i = 0; i < fin.size(); i++)
{
const file_header &fh = fin[i];
std::cerr << "Name=\"" << fh.name << "\" ";
std::cerr << "Time=" << ctime((time_t *)&fh.date);
// std::cerr << "Position of file is pos=0x" << std::hex << fh.pos << " size=0x" << fh.size <<
// " " << "original size=0x" << fh.orig_size << "\n";
// std::cerr << "stored crc = 0x" << std::hex << std::setw(8) << std::setfill('0') << fh.crc << "\n";
// std::cerr << "unknowns " << std::hex << " 0x" << fh.unk0 <<
// " 0x" << fh.unk1 << " 0x" << int(fh.unk2) << " 0x" << int(fh.unk3) << " 0x" << fh.unk4 <<
// " 0x" << fh.unk5 << " 0x" << fh.unk6 << "\n";
// lpos = fh.pos + fh.size;
unsigned char *data = fin.getFile(fh);
std::string fn = dest + std::string(fh.name);
bool present = false;
{
std::ifstream fin(fn.c_str());
if (fin) present = true;
}
// if (present) std::cerr << "Over writing " << fn << "\n";
std::ofstream fout(fn.c_str());
fout.write((char *)data, fh.orig_size);
delete [] data;
}
}
}
61bfe0ab023c143d wrote:Or, if you want to use the code I have written, email me. It's not particularly pretty, but it works.
as a user of GPL greyware software like LAME or free codec pack
No doubt my apathy will overcome my outrage and I'll buy it some day.
I was instantly wary of the $40 product which uses ab40k files
Also isn't ab40k.org infringing on LW's trademark?
IBBoard wrote:It'd be great if you could have a look at some of the C# code and see what you can contribute. My day job is in Java and I do C# in the evenings, and I don't notice too big a difference.
I think they're only "greyware" in the US. AFAIK things like LAME normally do patented stuff, but Europe doesn't officially support software patents the last I read (although some companies were trying, of course).
since LW can't make money without data files, and since making those data files directly is even more legally dubious for them, and since AB40K covers one of the larger markets then I guess they let them be.
karlthepagan wrote:It is grounds to invalidate the trademark if they do not enforce it. At the least it is grounds that anyone can use the "AB" acronym.
Some names, pictures, avatars etc on this site are trademarks of Games Workshop Limited. Used without permission. No challenge to their status is intended. All pictures and artwork taken from Games Workshop's products and used on this site can be thought of as © Copyright Games Workshop Limited 2005. Please check out our fuller list of Trade Marks.
This forum is completely unofficial and in no way endorsed by Games Workshop Limited.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group