Page 1 of 1

Change city names

Posted: 04 Mar 2006 04:45
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!

Posted: 04 Mar 2006 04:47
by DaleStan

Posted: 31 May 2006 16:26
by Brunost
Could somebody please explain that further?

Posted: 31 May 2006 19:23
by PikkaBird
Further explanation?

"Yes, it is possible. You have to create a grf file which defines a town name set, using action F."

Posted: 31 May 2006 19:44
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.

Posted: 31 May 2006 19:56
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:

Posted: 31 May 2006 21:59
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?

Posted: 31 May 2006 22:49
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.

Posted: 01 Jun 2006 00:15
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 ;)

Posted: 01 Jun 2006 13:22
by Born Acorn
If they survive the first 10 posts they can be allowed to live, is the rule. :P

Posted: 01 Jun 2006 17:56
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

Posted: 01 Jun 2006 22:06
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 ;)

Posted: 01 Jun 2006 23:11
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 ;)

Posted: 01 Jun 2006 23:59
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.

Posted: 02 Jun 2006 00:56
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.

Posted: 03 Jun 2006 14:21
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