Change Name train?
Moderator: OpenTTD Developers
Change Name train?
Hello All !
I have a question about the "Name Train", but from another sight...
Window in every "Name Train" has a just 25 places for letters. Is possible to expand and have more places ? (for example 40) ?
Thanks
I have a question about the "Name Train", but from another sight...
Window in every "Name Train" has a just 25 places for letters. Is possible to expand and have more places ? (for example 40) ?
Thanks
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: Change Name train?
Well... as proven by this picture, you have in fact a limit of 30 characters.
Problem with raising limits is that it will never be good enough for everyone.
So it's a matter of stating at one point: Here's what we believe is good enough for everyone.
Ho... and here is a little code snipset...
Problem with raising limits is that it will never be good enough for everyone.
So it's a matter of stating at one point: Here's what we believe is good enough for everyone.
Ho... and here is a little code snipset...
Code: Select all
enum {
MAX_LENGTH_VEHICLE_NAME_BYTES = 31, ///< The maximum length of a vehicle name in bytes including '\0'
MAX_LENGTH_VEHICLE_NAME_PIXELS = 150, ///< The maximum length of a vehicle name in pixels
};
- Attachments
-
- HoLook_30Chars.png (25.95 KiB) Viewed 4384 times
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: Change Name train?
I never knew you could change the name of a train! Is that just for an individual train or a whole model?
Re: Change Name train?
You can change both.Wasila wrote:I never knew you could change the name of a train! Is that just for an individual train or a whole model?
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: Change Name train?
Yes, both, indeed. As BOTH screenshots have shown
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: Change Name train?
Wasila, I have every train named by real train names of Europe, cos I don't like just simple Train 1,Train 2,Train 3... For me is it very opacity.Wasila wrote:I never knew you could change the name of a train! Is that just for an individual train or a whole model?
Where can I find this items ? I've opened openttd.cfg but it wasn't there...Thanksbelugas wrote:Ho... and here is a little code snipset...Code: Select all
enum { MAX_LENGTH_VEHICLE_NAME_BYTES = 31, ///< The maximum length of a vehicle name in bytes including '\0' MAX_LENGTH_VEHICLE_NAME_PIXELS = 150, ///< The maximum length of a vehicle name in pixels };
Re: Change Name train?
You'll find it in some code-file, meaning you'll have to recompile the game to use it.Rocker wrote:Where can I find this items ? I've opened openttd.cfg but it wasn't there...Thanksbelugas wrote:Ho... and here is a little code snipset...
Re: Change Name train?
And do you know the name of the code file ? or something further about him...(download...)Yexo wrote:You'll find it in some code-file, meaning you'll have to recompile the game to use it.
I think I should start the google...
Re: Change Name train?
Split topic from where Rocker had replied, as it had NOTHING to do with it. Rocker, please make sure next time you post a reply it is related to the topic
The only thing necessary for the triumph of evil is for good men to do nothing.
Re: Change Name train?
Come on, just do a search on the src folder for files containing "MAX_LENGTH_VEHICLE_NAME_BYTES". I don't know what kind of OS you're using, but it should be possible..Rocker wrote:And do you know the name of the code file ? or something further about him...(download...)Yexo wrote:You'll find it in some code-file, meaning you'll have to recompile the game to use it.
I think I should start the google...
Information on downloading the source and compiling the game is found here: http://wiki.openttd.org/FAQ_development
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: Change Name train?
It's incredible how much stuff Googles knows about OpenTTD.
Yes, believe me...
Just do a search for that MAX_LENGTH_VEHICLE_NAME_BYTES string, and check the results...
Man...
that reminds me....
http://2.bp.blogspot.com/_n4mb9JPongU/S ... 0074_2.JPG
Not the one I had in mind... but still...
Yes, believe me...
Just do a search for that MAX_LENGTH_VEHICLE_NAME_BYTES string, and check the results...
Man...
that reminds me....
http://2.bp.blogspot.com/_n4mb9JPongU/S ... 0074_2.JPG
Not the one I had in mind... but still...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: Change Name train?
Alright,
I have OpenTTD 0.7.2 source, OpenTTD 0.7.2 windows-win32 but the name of the train is still 25 characters...
I overwrote numbers in MAX_LENGTH_VEHICLE_NAME_BYTES ,PIXELS but it still without changes...
Can someone help please ? Thanks
I have OpenTTD 0.7.2 source, OpenTTD 0.7.2 windows-win32 but the name of the train is still 25 characters...
I overwrote numbers in MAX_LENGTH_VEHICLE_NAME_BYTES ,PIXELS but it still without changes...
Can someone help please ? Thanks
Last edited by Rocker on 01 Aug 2009 14:16, edited 1 time in total.
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: Change Name train?
Did you compile the code? You have to build a custom exe file.Rocker wrote:Alright,
I have OpenTTD 0.7.2 source, OpenTTD 0.7.2 windows-win32 but the name of the train is still 25 characters...
I overwrote numbers in MAX_LENGTH_VEHICLE_NAME_BYTES ,PIXELS but is it still without changes...
Can someone help please ? Thanks
Re: Change Name train?
(in the same way that a hard-copy of a Word file does not change when you change the computer file, the compiled program of OpenTTD does not change when you change the source).
To make a new OpenTTD program with your changes in it, you'll have to compile the modified source yourself, there is a wiki page on how to do that.
(which is easy to find so don't bother asking).
To make a new OpenTTD program with your changes in it, you'll have to compile the modified source yourself, there is a wiki page on how to do that.
(which is easy to find so don't bother asking).
Who is online
Users browsing this forum: No registered users and 1 guest