Change city names
Moderator: Graphics Moderators
-
- Engineer
- Posts: 2
- Joined: 28 Sep 2004 22:52
- Location: Galapagar - Madrid (SPAIN)
Change city names
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!
Thanks a lot!
by SmOOtHRuNNeR© 2006
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
I think then You cant make that grf yourself eather!Brunost wrote: but the tutorial Dalestan presented didn't make sense to me.

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
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?
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
Jbartle, I think Dalestan just likes to provide minimal information so people can challenge themselves.
But there really is no excuse for ISA...
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.

Brunost: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.
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.
- Redirect Left
- Tycoon
- Posts: 7425
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
- Born Acorn
- Tycoon
- Posts: 7596
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
jebartle wrote:So this how we treat new TTD users?
The man asked for some help and all we do is insult him!



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
- Redirect Left
- Tycoon
- Posts: 7425
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
True. Next time I try to give expression in better wayCaptain_Kirk76 wrote: i dont think you ment it is badly as it sounded

Probably yes!Captain_Kirk76 wrote:English error

OK try to go back on topic

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
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.
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.
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.

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
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".jebartle wrote: as I understand
02 action 02
00 vehicle type trains
09 set ID
81 variable action 2
Yep, this byte tells the action 2 which variable to check the value of.0C current callback? variable
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".00 Not quite sure.
FF Not sure again.
Correct.08 00 refers to another action 02 set ID
This is the range of values for which to return the preceding result (08 00).33 33 a call back, why two? (sound)
Correct. These last two bits show the action 2 to go to if none of the preceding results match.11 00 refers to another action 02 set ID
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.
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
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
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 23 guests