Change city names

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
SmOOtHRuNNeR
Engineer
Engineer
Posts: 2
Joined: 28 Sep 2004 22:52
Location: Galapagar - Madrid (SPAIN)

Change city names

Post by SmOOtHRuNNeR »

I'd like know if it possible to make a file with the name of the cities, in order to TTDX use them when i create a new game instead the usual TTDX names? I'd like to make a file with the names of spanish cities ..

Thanks a lot!
by SmOOtHRuNNeR© 2006
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

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
Brunost
Engineer
Engineer
Posts: 2
Joined: 31 May 2006 16:24

Post by Brunost »

Could somebody please explain that further?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Further explanation?

"Yes, it is possible. You have to create a grf file which defines a town name set, using action F."
Brunost
Engineer
Engineer
Posts: 2
Joined: 31 May 2006 16:24

Post by Brunost »

I understood that part, but what's a grf file? How do I create it? What does the words and symbols in the "Action F" site mean?

Sorry for being dumb, but the tutorial Dalestan presented didn't make sense to me.
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Post by ISA »

Brunost wrote: but the tutorial Dalestan presented didn't make sense to me.
I think then You cant make that grf yourself eather! :roll:
jebartle
Engineer
Engineer
Posts: 88
Joined: 19 May 2003 22:37

Post by jebartle »

So this how we treat new TTD users?

The man asked for some help and all we do is insult him!

As great as most menbers are, I have sensed a lack of
a helping hand.

So why is it that those who know are so stingy to share
with those who are just learning.

How many good people with good ideals have gotten
this and been discouraged or worst.

I really do respect those who have worked hard to learn
the in and out of NFO. But why not give a lift up to
those who want to breath life into their ideals.

There are constant pleas for coders but how can we
get new coders if we don't train them?

So why do we put down the learners?
Author of GRFreader and NFOalter
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

Jbartle, I think Dalestan just likes to provide minimal information so people can challenge themselves. ;) But there really is no excuse for ISA...
Brunost wrote:I understood that part, but what's a grf file? How do I create it? What does the words and symbols in the "Action F" site mean?

Sorry for being dumb, but the tutorial Dalestan presented didn't make sense to me.
Brunost:

A grf file is a file that contains new graphics for TTDPatch or OTTD. It's written using a language called NFO and then compiled into a .grf file using grfcodec. The page Dalestan pointed you to has the NFO code for Action F, which is new town name descriptors.

There is the beginnings of an NFO writing tutorial here. If all you want in your grf file is the new town names, you can pretty much skip the first page of the tutorial: all you will need is:

The headers
sprite 0
action 8 (GRF ID and description)
the action F which describes the town names.

If you get stuck and want any specific help with creating the action F, probably your best option is to come into the IRC channel (#tycoon on quakenet) and ask there.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7425
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post by Redirect Left »

jebartle wrote:So this how we treat new TTD users?
Dont worry, it was like that to me at first, it gets better as they get to know you, indeed many of them surprise you, they are nice people really ;)
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

If they survive the first 10 posts they can be allowed to live, is the rule. :P
Image
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Post by ISA »

jebartle wrote:So this how we treat new TTD users?
The man asked for some help and all we do is insult him!
:shock: :oops: What I ment was that he try to read more seriously. And You start screaming :? sry guys
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7425
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post by Redirect Left »

dont worry ISA, i think it might have been a little misunderstanding, i dont think hyou ment it is badly as it sounded, English error ;)
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
ISA
Tycoon
Tycoon
Posts: 3384
Joined: 17 Oct 2005 20:56
Location: Estonia

Post by ISA »

Captain_Kirk76 wrote: i dont think you ment it is badly as it sounded
True. Next time I try to give expression in better way :)
Captain_Kirk76 wrote:English error ;)
Probably yes! :?

OK try to go back on topic ;)
jebartle
Engineer
Engineer
Posts: 88
Joined: 19 May 2003 22:37

Post by jebartle »

Well I said it as I felt it seems to be. I didn't intend to
disrespect the skill or efforts of these fine people. It
just is very!!! frustrating to read something over and
over again and not understand it enough to get your
code to work. Yet I have had some sucess and enjoy
many unique engines in a personal set. But it is cut,
fix and paste.

As for getting help I'm not sure how to ask the
right question to interest someone in helping.

I understand most of what I read, but some of the
details get confusing, because I think there is a lot
of information missing simply because it is assumed
I already know it? So perhaps a chapter on terms
and such would be helpful.


For example:

181 * 14 02 00 09 81 0C 00 FF 01 08 00 33 33 11 00

as I understand
02 action 02
00 vehicle type trains
09 set ID
81 variable action 2
0C current callback? variable
00 Not quite sure.
FF Not sure again.
08 00 refers to another action 02 set ID
33 33 a call back, why two? (sound)
11 00 refers to another action 02 set ID

I think thats what it is. If I'm wrong and this is not stupid
to ask, then a little help, please. :oops:

When I wrote my grfreader program, NFO code was pretty
simple. I got away from it for awhile because of other things
going on in my family. When I got back to it, NFO had expanded
so fast I wasn't able to keep up. Anyway I posted the pgm I
had and asked for help. NO ONE offered any. So how was I
to know how to procede since there seemed to be no interest.

Yet no one has yet written a true GRF Reader like I started.

Is there still any interest in a Grf Reader??

JEB

ps I also did a NFO alter program, that was maybe 4 years ago.
It was a quick and dirty type program. It worked okay for
the time.
Author of GRFreader and NFOalter
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

jebartle wrote: as I understand
02 action 02
00 vehicle type trains
09 set ID
81 variable action 2
Correct. More specifically, the 81 means "the variable we are checking is either a general one or belongs to this vehicle, and the value we get from the variable will be one byte in length".
0C current callback? variable
Yep, this byte tells the action 2 which variable to check the value of.
00 Not quite sure.
FF Not sure again.
These are the SHIFT and AND operators which are applied to the value before it is checked. 00 FF is "do nothing". And you left out the "01", which means "we will check 1 range of values".
08 00 refers to another action 02 set ID
Correct.
33 33 a call back, why two? (sound)
This is the range of values for which to return the preceding result (08 00).
11 00 refers to another action 02 set ID
Correct. These last two bits show the action 2 to go to if none of the preceding results match.

So in english, what this action 2 says is:

If the current callback of this train vehicle is between 0x33 and 0x33 inclusive, go to 08. Otherwise, go to 11.
jebartle
Engineer
Engineer
Posts: 88
Joined: 19 May 2003 22:37

Post by jebartle »

To Pikkabird

Thank you for the explainations. They indeed help and I am
most grateful! I do have other quetions but I will try to ask
them only as I need. Knowing that there is someone who
will explain these very simple things is good to know.,

Again thank you !!

JEB
Author of GRFreader and NFOalter
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 22 guests