Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Aug 16, 2018 9:37 pm

All times are UTC

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jul 30, 2004 10:40 pm 

Joined: Fri Jul 30, 2004 9:21 pm
Posts: 1
Location: Brazil
Hi All

First of all, sorry my bad english!!!

It will be nice to be allowed to change the ordem of parameters in strings


that (if i'm not wrong) make the name of industries.... where
{CITY} can be "Pubourne"
and {STRING} can be "Sawmill"
we have "Pubourne Sawmill", a nice industry name, but in english!!!
in other languages like Portuguese (and Spanish) the better way is:
"Serralheria Pubourne"

If you try STR_4801 :{WHITE}{STRING} {CITY}
we get an error from strgen (a warning, and strgen ignores the wrong string), and would crash openttd if strgen let it pass... (be cause of the way DecodeString() fetches params)

So, my suggestion is to be allowed to add and index in string, like:
STR_4801 :{WHITE}{STRING:2} {CITY:1}
so, DecodeString() can fetch the right param (perhaps it will need a total DecodeString() rewrite)

BTW, why not the default sprintf() format?


 Post subject:
PostPosted: Sat Jul 31, 2004 6:57 pm 
Traffic Manager
Traffic Manager
User avatar

Joined: Thu Jul 22, 2004 9:25 pm
Posts: 217
Location: Jablonec nad Nisou, Czech republic
I had an idea to make an exception for STR_4801 (to allow this form: STR_4801 :{WHITE}{STRING} {CITY} )
I've already thought about some changes in the format of these regular expressions - wouldn't it be nice if there will be "<" and ">" (HTML- or XML-like) brackets instead of "{" and "}". I know some keyboard layouts in Windows doesn't have these characters (some Czech layouts).
The further thing in formatting of these strings (I can show that on an example): <white>&string; &city; - replacing another parentheses with "character entities"!
Use or refuse my ideas, but think about it for a moment :)

Edit: Maybe these are a bit stupid and unuseful ideas...

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.