Coding trouble. Malta bus project

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
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Coding trouble. Malta bus project

Post by VoroninY »

Good morning\ day\ evening to everybody!
After 5 days of reading website wiki.ttdpatch.net I drew some test grafiks (it will be a Malteese bus). And now I am not in the best situation: I understood, that I don`t understand everything at all: how and in where make .nfo files, and about hex. I have read the example text of .nfo file, understood only where to write the location of file .pcx, understood meaning of numbers (in the beginning of lines)/ And no more/ Aren`t there any more coding tutorials? If i made mistake- give link. Searching didn`t give a result.
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Re: Coding trouble. Malta bus project

Post by Samwise »

Not that I'm aware of.. If I'm correct the only NFO tutorial is on wiki..
Image
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

Oh, it`s really bad for me... :( Dut, I heard about programm GRFMaker- what can you say about it?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Coding trouble. Malta bus project

Post by DaleStan »

The answer depends on who you talk to, but most people agree that it use of GRFMaker just glosses over the fiddly details of NFO, but still requires the same level of general NFO knowledge. Depending on the desired effect, it may also require full knowledge, as some things are not supported.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

OK, I will read about NFO again. And I`ll try to understand. So, thanks for help.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Coding trouble. Malta bus project

Post by PikkaBird »

DaleStan wrote:The answer depends on who you talk to, but most people agree that it use of GRFMaker just glosses over the fiddly details of NFO, but still requires the same level of general NFO knowledge. Depending on the desired effect, it may also require full knowledge, as some things are not supported.
It also makes it very difficult for anyone familiar with NFO but not with grfmaker to help you when you run into problems.
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Re: Coding trouble. Malta bus project

Post by AndersI »

PikkaBird wrote:It also makes it very difficult for anyone familiar with NFO but not with grfmaker to help you when you run into problems.
Not necessarily. GRFMaker can always write an NFO file, which can be used when discussing the problem. When it comes to implementing the solution with GRFMaker, you're probably right.
User avatar
dev|ant
Traffic Manager
Traffic Manager
Posts: 140
Joined: 30 Nov 2005 11:26
Location: melbourne.au

Re: Coding trouble. Malta bus project

Post by dev|ant »

VoroninY wrote:OK, I will read about NFO again. And I`ll try to understand. So, thanks for help.
Where are you running into trouble? Have you got any of the .nfo written yet? If you have post it up here and we'll be able to help. A Maltese bus set would be cool. :lol:
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

Trouble now- i don`t understand, from what point count parameters of ysize xsize xrel yrel and xpos ypos. Looking though tutorials and pictures didn`t help. What can you say about it? And can I use codes from bus for replacement?
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Coding trouble. Malta bus project

Post by michael blunck »

VoroninY wrote:i don`t understand, from what point count parameters of ysize xsize xrel yrel and xpos ypos. Looking though tutorials and pictures didn`t help. What can you say about it?
http://wiki.ttdpatch.net/tiki-index.php ... oordinates

regards
Michael
Image
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

OK, thank.
User avatar
dev|ant
Traffic Manager
Traffic Manager
Posts: 140
Joined: 30 Nov 2005 11:26
Location: melbourne.au

Re: Coding trouble. Malta bus project

Post by dev|ant »

VoroninY wrote:Trouble now- i don`t understand, from what point count parameters of ysize xsize xrel yrel and xpos ypos. Looking though tutorials and pictures didn`t help. What can you say about it? And can I use codes from bus for replacement?
Have a read of the link Michael gave you, that should help.

I will say this though, GRFMaker makes things like this a breeze. It can handle the simple NFO stuff very well, and at any time you can view the NFO to see what it's done and then try and work out why it's done like that. I think you can learn NFO much quicker when you are using a tool that shows you the code that you need, not a generic example on the Internet.
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

Ok, what about it?
0*length(I`ll count myself later) 04 01 02 num-ent offset 4f 6c 64 20 61 6c 74 65 65 73 65 20 62 75 73 00(Old malteese bus)
What about it?
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: Coding trouble. Malta bus project

Post by VoroninY »

dev|ant wrote:
VoroninY wrote:Trouble now- i don`t understand, from what point count parameters of ysize xsize xrel yrel and xpos ypos. Looking though tutorials and pictures didn`t help. What can you say about it? And can I use codes from bus for replacement?
Have a read of the link Michael gave you, that should help.

I will say this though, GRFMaker makes things like this a breeze. It can handle the simple NFO stuff very well, and at any time you can view the NFO to see what it's done and then try and work out why it's done like that. I think you can learn NFO much quicker when you are using a tool that shows you the code that you need, not a generic example on the Internet.
I have made code of normal sprites already. It`s really easy thing!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 29 guests