How to add my Values ?

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Borisov
Engineer
Engineer
Posts: 65
Joined: 11 Jul 2004 16:00
Contact:

How to add my Values ?

Post by Borisov »

I want to add my values /values of my contry/. Can you help me, please I want to play with them.
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Me too! Let's hope someone can answer :wink:
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

You could start by reading this.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
Borisov
Engineer
Engineer
Posts: 65
Joined: 11 Jul 2004 16:00
Contact:

Post 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]
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post 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.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
Borisov
Engineer
Engineer
Posts: 65
Joined: 11 Jul 2004 16:00
Contact:

Post by Borisov »

Yes I ran the mkpttxt.exe but It hasn't effect.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post 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
what are you looking at? it's a signature!
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Is this the same for language editing? Or am I way off here? :)
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

yes, ttdpttxt.txt contain all texts that are displayed by TTDPatch, to get wide translations
what are you looking at? it's a signature!
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post 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 :)
Borisov
Engineer
Engineer
Posts: 65
Joined: 11 Jul 2004 16:00
Contact:

Post by Borisov »

rename ttdpttxt.txt (to backup it) - To rename it but will be the new name ?
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post 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.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post 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 :(
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post 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
what are you looking at? it's a signature!
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post 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? :?
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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.
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Well, tried that one too, without much luck..
Is there something I'm missing? :?
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post 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
what are you looking at? it's a signature!
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post 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!
Last edited by fire87 on 23 Aug 2004 18:09, edited 1 time in total.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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"
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 7 guests