32bpp tar files question.

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

32bpp tar files question.

Post by neob »

i use the tar files from the OpenTTD gfxdev file repository
my OTTD couldnt read the tar files so i extracted them into main and everything worked fine
my only point of concern was that some tar files had batch files included a call to pngcodec

with commands similar to this:

Code: Select all

pngcodec r 2344_z0.png x_offs=-253 y_offs=-354
what its for and should i get pngcodec and execute the batches in the relevant folders?
Image
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: 32bpp tar files question.

Post by maquinista »

neob wrote:i use the tar files from the OpenTTD gfxdev file repository
my OTTD couldnt read the tar files so i extracted them into main and everything worked fine
my only point of concern was that some tar files had batch files included a call to pngcodec

with commands similar to this:

Code: Select all

pngcodec r 2344_z0.png x_offs=-253 y_offs=-354
what its for and should i get pngcodec and execute the batches in the relevant folders?
Not, I included these files to help people that wants modify the graphics.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

thank you.
Image
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

i have another question regarding the left bus tar, how do i make it work?

loading tar files doesnt work for me, so like usual i extract its content into the data folder
but this didnt work, after changing the setting the bus does drive on the left side but the sprite stays the same (the door is on the wrong side)

i checked the tar structure and its sprites located in the 'sprites\trg1r\' folder, replacing those in 'ogfx1_base' with them worked but that doesnt seem right (plus its f*** the right side buses), what am i missing?


edited.
Last edited by neob on 15 Jan 2010 15:09, edited 1 time in total.
Image
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: 32bpp tar files question.

Post by maquinista »

You should use only the file that You want. If You want left buses, You need have only the left buses file in your data folder.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
Varivar
Traffic Manager
Traffic Manager
Posts: 255
Joined: 07 Aug 2008 17:31
Location: The Netherlands
Contact:

Re: 32bpp tar files question.

Post by Varivar »

If you want to use left side buses you have to change the vehicle drive side to left at the options menu.
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

Varivar wrote:If you want to use left side buses you have to change the vehicle drive side to left at the options menu.
of course i did :wink: and bus is driving on the other side but the sprite stays the same, you can see the door is on the wrong side. (i edited my previous post to make it clear)
maybe its has to do with the sprites located in 'sprites\trg1r\' ?

since all the other are located in either of those folders (since they replace the sprites in opengfx grf with the same name)
ogfx1_base
ogfxc_arctic
ogfxe_extra
ogfxh_tropical

and there no trg1r.grf in opengfx neither there a trg1r.grf provided with file like the other tars...
Image
Varivar
Traffic Manager
Traffic Manager
Posts: 255
Joined: 07 Aug 2008 17:31
Location: The Netherlands
Contact:

Re: 32bpp tar files question.

Post by Varivar »

I just checked the left bus tar file, and those sprites are actually right side buses. So it's a bug of the tar file. Maquinista, can you fix this?
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: 32bpp tar files question.

Post by maquinista »

Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

thanks for fixing it so fast, but i am using the new tar file and still have the same problem :(
Untitled.png
Untitled.png (45.2 KiB) Viewed 3274 times
Image
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: 32bpp tar files question.

Post by GeekToo »

Please see this: http://www.tt-forums.net/viewtopic.php?p=848718#p848718

If you use opengfx, and the tar file is also using the opengfx directories, you only have to untar the opengfx tars, and put the files in the data directory mentioned in the link.

If you use opengfx, and the tar file is using the 'old' grf-name directories, like trg(1)r etc, then you need to untar the tar with the sprites and rename it to it's opengfx equivalent, like ogfx1_base (and you can tar it again if you want). You also need to untar the opengfx tars.

If you don't use opengfx, and the tar is for the old dir-name, you don't need to do anything, it will work out of the box

And if you don't use opengfx, ant the tar has opengfx paths in it, untar it (and delete it!), and rename the directories to the old names.

In other cases, the sprites won't appear.

All this mess can be prevented if the tars would have been packed with a symbolic link between the directories (or individual sprites, can't remember exactly), which is very easy to do on Linux, but I don't know if it can be done on Windows.

http://www.tt-forums.net/viewtopic.php? ... 3&p=708618
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

GeekToo wrote:Please see this: http://www.tt-forums.net/viewtopic.php?p=848718#p848718

If you use opengfx, and the tar file is also using the opengfx directories, you only have to untar the opengfx tars, and put the files in the data directory mentioned in the link.

If you use opengfx, and the tar file is using the 'old' grf-name directories, like trg(1)r etc, then you need to untar the tar with the sprites and rename it to it's opengfx equivalent, like ogfx1_base (and you can tar it again if you want). You also need to untar the opengfx tars.

If you don't use opengfx, and the tar is for the old dir-name, you don't need to do anything, it will work out of the box

And if you don't use opengfx, ant the tar has opengfx paths in it, untar it (and delete it!), and rename the directories to the old names.

In other cases, the sprites won't appear.

All this mess can be prevented if the tars would have been packed with a symbolic link between the directories (or individual sprites, can't remember exactly), which is very easy to do on Linux, but I don't know if it can be done on Windows.

http://www.tt-forums.net/viewtopic.php? ... 3&p=708618
thank you, i bolded the appropriate part - i use opengfx and in the tar the png files stored under 'sprites\trg1r\'
so like you suggested, i already tried to change the folder name to 'ogfx1_base' but then the 'left bus' files have to overwrite the 'right bus' files which named the same...

its not that i cannot make left bus but that i can make either left or right bus available by overwriting the other set, dont they suppose to have different names?
Image
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: 32bpp tar files question.

Post by maquinista »

neob wrote:
GeekToo wrote:Please see this: http://www.tt-forums.net/viewtopic.php?p=848718#p848718

If you use opengfx, and the tar file is also using the opengfx directories, you only have to untar the opengfx tars, and put the files in the data directory mentioned in the link.

If you use opengfx, and the tar file is using the 'old' grf-name directories, like trg(1)r etc, then you need to untar the tar with the sprites and rename it to it's opengfx equivalent, like ogfx1_base (and you can tar it again if you want). You also need to untar the opengfx tars.

If you don't use opengfx, and the tar is for the old dir-name, you don't need to do anything, it will work out of the box

And if you don't use opengfx, ant the tar has opengfx paths in it, untar it (and delete it!), and rename the directories to the old names.

In other cases, the sprites won't appear.

All this mess can be prevented if the tars would have been packed with a symbolic link between the directories (or individual sprites, can't remember exactly), which is very easy to do on Linux, but I don't know if it can be done on Windows.

http://www.tt-forums.net/viewtopic.php? ... 3&p=708618
thank you, i bolded the appropriate part - i use opengfx and in the tar the png files stored under 'sprites\trg1r\'
so like you suggested, i already tried to change the folder name to 'ogfx1_base' but then the 'left bus' files have to overwrite the 'right bus' files which named the same...

its not that i cannot make left bus but that i can make either left or right bus available by overwriting the other set, dont they suppose to have different names?
You should use only one TAR file for the bus, not the two TAR files.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
neob
Chief Executive
Chief Executive
Posts: 687
Joined: 29 Dec 2009 02:56

Re: 32bpp tar files question.

Post by neob »

maquinista wrote:You should use only one TAR file for the bus, not the two TAR files.
i see... i thought there was an option to use them both.
maybe it should be considered a use of grf like for the 'gresley_a4' 'jubilee' from the train tar.
so its can be turned on and off from the menus without overwriting files.

anyway thanks for the help.
Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 20 guests