The relation of the nfo file and the pcx file.
Moderator: Graphics Moderators
The relation of the nfo file and the pcx file.
Hello!
Can someone tell me how does the nfo file get the coordinates of the sprites? Also, which program aligns the sprites in the pcx file? Currently I'm trying to edit some grfs, replacing some sprites with my graphics, but I don't know how to use sprites that are not the same size as the original.
Can someone tell me how does the nfo file get the coordinates of the sprites? Also, which program aligns the sprites in the pcx file? Currently I'm trying to edit some grfs, replacing some sprites with my graphics, but I don't know how to use sprites that are not the same size as the original.
Re: The relation of the nfo file and the pcx file.
Maybe this can help
There is also more things You can read and learn about!
There is also more things You can read and learn about!
Last edited by ISA on 02 Aug 2009 22:06, edited 1 time in total.
TT-Screenshot Of The Month - 2012 July, winner!
TT-Screenshot Of The Month - 2013 May, winner tie with Purno!
TT-Screenshot Of The Month - 2014 February, winner!
TT-Screenshot Of The Month - 2014 June, winner tie with alluke!
TT-Screenshot Of The Month - 2014 April, winner!
My screen shot thread ---> Have a look
TT-Screenshot Of The Month - 2013 May, winner tie with Purno!
TT-Screenshot Of The Month - 2014 February, winner!
TT-Screenshot Of The Month - 2014 June, winner tie with alluke!
TT-Screenshot Of The Month - 2014 April, winner!
My screen shot thread ---> Have a look
Re: The relation of the nfo file and the pcx file.
The coordinates are written directly into the nfo file. So it gets it from whoever puts it in.W_neun wrote:Can someone tell me how does the nfo file get the coordinates of the sprites?
For new pcx files; any proper graphics editing program. For decoded newgrfs: grfcodec.W_neun wrote:Also, which program aligns the sprites in the pcx file?
See ISA's link.W_neun wrote:Currently I'm trying to edit some grfs, replacing some sprites with my graphics, but I don't know how to use sprites that are not the same size as the original.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: The relation of the nfo file and the pcx file.
Code: Select all
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
3 sprites/pcx/gui04.pcx 66 8 01 24 24 0 0
I propose to look at other NewGRF source as e.g. found at our DevZone and to look at the TTD graphics wiki at http://wiki.ttdpatch.net/tiki-index.php ... phicsSpecs
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: The relation of the nfo file and the pcx file.
I checked the grf wiki a long time ago, but didn't find the answer. (In the meantime I found the instructions in the grfcodec documentation). So if I understand it right, I just have to check the coordinates and the size of each sprite, and write them in the nfo. Not complicated, just a lot of work.
Anyway, thanks for your replies.
Anyway, thanks for your replies.
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: The relation of the nfo file and the pcx file.
Yeah. Only then one starts to really appreciate HOW much work the creation of such newgrf might be.W_neun wrote:Not complicated, just a lot of work.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: The relation of the nfo file and the pcx file.
why i always reorder the sprites to a template file, and then i can just copy/paste the code, and use CTRL-H (in most txteditors) to replace whatever is needed. usually just the name of the file
Re: The relation of the nfo file and the pcx file.
I found out, part of coding is also rearrange the sprites in a pcx, so it makes coding (alignment) easier. The sprites should be drawn, so you can use the same values for every sprite, just with offsets. Some use excel for such task, and then you see white borders, if that didn't work for all. 
[mäh, DJN was faster
]

[mäh, DJN was faster

Town Names:


Still work in progress: OpenGFX or/and OpenSFX - Please help!
Who is online
Users browsing this forum: No registered users and 9 guests