Page 1 of 2

How to add my Values ?

Posted: 04 Aug 2004 15:03
by Borisov
I want to add my values /values of my contry/. Can you help me, please I want to play with them.

Posted: 04 Aug 2004 15:10
by fire87
Me too! Let's hope someone can answer :wink:

Posted: 04 Aug 2004 15:18
by Rob
You could start by reading this.

Posted: 04 Aug 2004 15:29
by Borisov
I made Hungarien value to be my value

I made this on ttdpttxt.dat :

Bulgarian Leva (Lv) Polish Zloty (zl) ........

and this on ttdpttxt.txt :

curr_LEV="Bulgarian Leva (Lv)\00\00\00\00\00\00"
curr_PLN="Polish Zloty (zl)\00\00\00\00\00\00"

..........
But the Hungarien Value again is in the game ? Where is my mistake ?[/b]

Posted: 04 Aug 2004 15:41
by Rob
Did you run the mpkttxt.exe file that came with your copy of TTDpatch?
This execute file writes your changes of ttdptxt.txt into ttdptxt.dat, the file that is used by the patch. :?:
Better delete the old ttdptxt.dat (not ttdptxt.txt!!) first.

Posted: 04 Aug 2004 18:33
by Borisov
Yes I ran the mkpttxt.exe but It hasn't effect.

Posted: 04 Aug 2004 20:16
by SHADOW-XIII
first of all you edited ttdptxt.txt wrong:
read, as Rob said, here: http://wiki.ttdpatch.net/tiki-index.php ... ncyEntries

then learn start from the beginning:
delete ttdpttxt.dat
rename ttdpttxt.txt (to backup it)
run mkpttxt.exe
edit ttdpttxt.txt
(DO NOT EDIT ttdpttxt.dat)
run mkpttxt.exe

Posted: 04 Aug 2004 20:23
by fire87
Is this the same for language editing? Or am I way off here? :)

Posted: 04 Aug 2004 21:15
by SHADOW-XIII
yes, ttdpttxt.txt contain all texts that are displayed by TTDPatch, to get wide translations

Posted: 05 Aug 2004 08:56
by fire87
Ah, cool :D I've seen a language text in OpenTTD.. Wonder if it's allowed to use them just to see how it can be.. Oh, well. I should search around and ask then :)

Posted: 05 Aug 2004 12:38
by Borisov
rename ttdpttxt.txt (to backup it) - To rename it but will be the new name ?

Posted: 05 Aug 2004 12:44
by Rob
Rename it to ttdpttxt.old or ttdpttxt.bak or whatever you want.
Running mkpttxt.exe wil cretate a new ttdpttxt.dat file using the data you entered in ttdpttxt.txt.
If you do something horribly wrong you can get back the original ttdpttxt.txt file.

Posted: 23 Aug 2004 16:51
by fire87
Sorry for bringing this one back, but I didn't want to start a new topic for it..

I tried to add Norwegian Krone (Nkr) in the game, but it wont get in to it.. I have read the wiki, and tried to do as it says there, but it still wouldn't get in the game :?
So I'm just wondering, what have I missed?

I deleted the ttdpttxt.dat, ran the mkpttxt.exe, edited the ttdpttxt.txt (Did of course do a backup first), and ran the mkpttxt.exe again.. Nothing happened :(

Posted: 23 Aug 2004 16:59
by SHADOW-XIII
I managed to add fictional HUZ curreny
by following this: http://wiki.ttdpatch.net/tiki-index.php ... ncyEntries

copy the example at the bottom ... replace curr_HUF or other (because you have to replace something) and edit text on the right of the equality sign (=)

like:

Code: Select all

curr_HUF="Currency Name (SHORT))\00375620\00.\01\00SHORT \00 SHORT\002008\00"
(well SHORT is short best '2-3 letters' value sign and 'Currency Name' is the name which will eb displayed in options

Posted: 23 Aug 2004 17:05
by fire87
I followed that one on the wiki and added:

curr_NOK="Norwegian Krone (Nkr)\001230\00.\00Nkr\000\00"

Well.. I guess there are some mistakes (or maybe A LOT), so I'm wondering what the line SHOULD be.. :P

Do I need to have all the lines included really? :?

Posted: 23 Aug 2004 17:28
by Patchman
fire87 wrote:I followed that one on the wiki and added:

curr_NOK="Norwegian Krone (Nkr)\001230\00.\00Nkr\000\00"
You have to change an existing entry, and you can't change its name. Since curr_NOK is unknown, it won't be included. Try changing one of the existing strings, like curr_SEK.

Posted: 23 Aug 2004 17:38
by fire87
Well, tried that one too, without much luck..
Is there something I'm missing? :?

Posted: 23 Aug 2004 17:54
by SHADOW-XIII
I replace curr_HUF

Code: Select all

curr_HUF="Norwegian Krone (Nkr)\001230\00.\00Nkr\000\00"
(replaced!) and run mkpttxt.exe and I had that currency

Posted: 23 Aug 2004 18:06
by fire87
Okey.. Should try one more time then :)

EDIT: Now it worked! :D I guess the only thing I did wrong was to replace curr_HUF to curr_NOK :P

Thanks guys!

Posted: 23 Aug 2004 18:08
by Patchman
fire87 wrote:Well, tried that one too, without much luck..
Is there something I'm missing? :?
Well, maybe I wasn't clear, but don't change it into curr_NOK= but instead leave the curr_SEK= and put the NOK stuff after it, like

Code: Select all

curr_SEK="Norwegian Krone (Nkr)\001230\00.\00Nkr\000\00"