New Feature: .tar support
Moderator: OpenTTD Developers
New Feature: .tar support
As of tomorrows nightly you can enjoy .tar support in OpenTTD.
This feature is mostly meant for 32bpp PNGs and to allow GRF-packs, like for the coop guys. It works very simple:
Put which ever files you want packed in a dir, say: data_pack/, and put in it the dir-structure you need, like if it was in the root of your data/ dir. Remember: it doesn't matter WHERE the .tar file is, it works relative from the data/ dir. So putting it in data/tar/ doesn't change a thing.
Run, in the data_pack dir: tar cf ../data/mypack.tar *
Now start OpenTTD, and your files will be loaded like they were unpacked in the data/ dir. Simple, efficient, easy Of course you need *nix, or mingw to use 'tar' like that, but you get the point
Compression formats will _not_ be supported, as they are very slow. '.tar' is a container format, meaning it stores the files byte-by-byte (without any compression) in the file, keeping a header with the data.
If there are any bugs or questions, feel free to post them here.
This feature is mostly meant for 32bpp PNGs and to allow GRF-packs, like for the coop guys. It works very simple:
Put which ever files you want packed in a dir, say: data_pack/, and put in it the dir-structure you need, like if it was in the root of your data/ dir. Remember: it doesn't matter WHERE the .tar file is, it works relative from the data/ dir. So putting it in data/tar/ doesn't change a thing.
Run, in the data_pack dir: tar cf ../data/mypack.tar *
Now start OpenTTD, and your files will be loaded like they were unpacked in the data/ dir. Simple, efficient, easy Of course you need *nix, or mingw to use 'tar' like that, but you get the point
Compression formats will _not_ be supported, as they are very slow. '.tar' is a container format, meaning it stores the files byte-by-byte (without any compression) in the file, keeping a header with the data.
If there are any bugs or questions, feel free to post them here.
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: New Feature: .tar support
for windows users: there is also 7zip which allow to create tar archives, simply select the folder/files you want -> right click on the selection -> 7z add to archive and select tar from the dropdown list (you can chose between zip, 7z and tar)
Re: New Feature: .tar support
I have a question, will newgrf actions be supported in tar files someday?
Re: New Feature: .tar support
you already can use a newgrf with the actions and the external sprites in 32bpp in the folder with the same name of the newgrf (but the grf should have the sprites in it, i think is enough a blank sprite, as you can only replace them with the external ones in 32bpp, like the standard ones)
Re: New Feature: .tar support
For now, tar files are not supported by windows versions of openttd.Wolf01 wrote:for windows users: there is also 7zip which allow to create tar archives, simply select the folder/files you want -> right click on the selection -> 7z add to archive and select tar from the dropdown list (you can chose between zip, 7z and tar)
And tar made using 7z are not "valid" tar for openttd.
Re: New Feature: .tar support
And the time flies when you are having fun: the latest revision now also support 'old' tar format (read: 7z tars), and has a bunch of small fixes (like win32 support)
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: New Feature: .tar support
Still doesn't work for me an win32. The files get loaded correctly but are not used in game.
I've placed a file gui.tar into the data directory.
Within the tar I've files like "sprites\trg1r\680.png"
I run openttd -b 32bpp-anim.
So, what am I doing wrong? I tried it with 7-zip and GNU tar 1.15.1 files.
I've placed a file gui.tar into the data directory.
Within the tar I've files like "sprites\trg1r\680.png"
I run openttd -b 32bpp-anim.
So, what am I doing wrong? I tried it with 7-zip and GNU tar 1.15.1 files.
English™ - powered by Dictionary™
Re: New Feature: .tar support
Using a >=r11116 win32 build?
Re: New Feature: .tar support
Please post your .tar, so we can take a look at it.
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: New Feature: .tar support
It's attached...
edit: File removed, it was meant for testing purposes only and a collection I just made for myself
edit: File removed, it was meant for testing purposes only and a collection I just made for myself
Last edited by dannys9 on 16 Sep 2007 09:13, edited 1 time in total.
English™ - powered by Dictionary™
Re: New Feature: .tar support
Okay, tnx. This is a Windows only problem, as on Linux it runs just fine. We are looking into this problem. Tnx for the report!
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: New Feature: .tar support
In tomorrows nightly (and latest revision) the .tar problems for Windows are fixed.
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: New Feature: .tar support
Now everything's fine Tnx TrueLight!
English™ - powered by Dictionary™
Who is online
Users browsing this forum: No registered users and 21 guests