too many names defined

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
MeTo
Traffic Manager
Traffic Manager
Posts: 129
Joined: 06 Apr 2003 14:02
Location: UnL; Czech Republic
Contact:

too many names defined

Post by MeTo »

Hello,
It looks, I have reached some limit of own names of stations/busses/trains/signs..... The message "too many names defined" suddenly appears..... Does there exist any way how to make this limit higher, please ? Yes, I admit, I have really many own names in the game.... however... I just wanted to create a very large city transport network (own station names, bus numbers etc.....) :(
User avatar
StopRightThere
Chief Executive
Chief Executive
Posts: 761
Joined: 18 Dec 2005 20:10
Location: United Kingdom

Post by StopRightThere »

AFAIK, it is a hard coded limit in the game.
Bye Bye OpenBVE :(
Official TT-Hot young ginger Doctor Who assistant FanClub
Formerly known as AdditionalData
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7432
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Post by Redirect Left »

gamezguy wrote:AFAIK, it is a hard coded limit in the game.
That is correct im sure.

Have you tried renaming stations? that is the only way too pput more statioons in a town AFAIK
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
Slace
Transport Coordinator
Transport Coordinator
Posts: 368
Joined: 15 Mar 2004 10:20

Post by Slace »

there's a limit to the number of names a town can automatically name (that's why you get similar named stations).

Rename some of the town's station's and that should fix it
User avatar
MeTo
Traffic Manager
Traffic Manager
Posts: 129
Joined: 06 Apr 2003 14:02
Location: UnL; Czech Republic
Contact:

Post by MeTo »

But I have a different problem..... It is caused just because I have OWN names of stations/buses/trains/signs..... The game just does not allow me to rename any more station/bus/sign... It is not connected with a city, but with the whole map.... I can build stations.... but I can't rename them.... the same problem is with new vehicles.... I just can't change for example the name "Road Vehicle 99" to anything else.... It looks that there is just some limit of OWN names....
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

The limit there is, I believe, 512.

This was pointed out several months ago, but as far as I know, nothing has been changed.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
MeTo
Traffic Manager
Traffic Manager
Posts: 129
Joined: 06 Apr 2003 14:02
Location: UnL; Czech Republic
Contact:

Post by MeTo »

Well.... Yes, that limit seems to be 512 :)
However.... I tried to change this number in the file "misc.c" on line 26 and "oldloader.c" on line 393... I changed it to 1024 and compiled the game again.... but..... now, it looks, I can make more and more signs... But if I try to change name of a road vehicle/train/station, the game crashes... Does anybody know, if it is possible to make this limit higher for rvs/trains/stations higher too ? In which file ?
Note : I can rename rvs/trains/stations....but just only in the limit 512.... My game is somewhere very close to this limit... so when I rename something as soon as I start the game, it is OK.... but if I create about 20 signs (I am sure, it exceeds the 512 limit), I can't rename rvs/trains/stations then...
User avatar
devah
Engineer
Engineer
Posts: 22
Joined: 03 Jul 2007 16:30
Location: Warsaw, Poland
Contact:

Post by devah »

Has somebody found solution for custom names limit? I'm creating a large map and when it's in 75% done I experienced this error message.

Any help?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

devah wrote:Has somebody found solution for custom names limit? I'm creating a large map and when it's in 75% done I experienced this error message.

Any help?
I thought this "issue" was fixed in trunk a while ago.
User avatar
devah
Engineer
Engineer
Posts: 22
Joined: 03 Jul 2007 16:30
Location: Warsaw, Poland
Contact:

Post by devah »

Even in the latest nightly build there is limit of 512 custom names.

There exists a patch (see: http://www.tt-forums.net/viewtopic.php?t=21768 ). I've modified it to patch my MiniIN source but it won't work - there are errors during compilation with functions related to pool.c/h -> there is now oldpool.c/h and it seems to be incompatible. My C knowledge is too small to make it working :(
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Post by Bilbo »

Hmmm ... does the limit apply also to custom city names when making map in scenario editor? If yes, I may run in some troubles with map I plan to make ...

Any chance to raise that limit to "unlimited" in trunk?
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
devah
Engineer
Engineer
Posts: 22
Joined: 03 Jul 2007 16:30
Location: Warsaw, Poland
Contact:

Post by devah »

Yes, and my scenario is done in 75%! After few days of work I realized it's pointless... ;(
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Post by XeryusTC »

You could always stretch up _name_array a bit, but it is not recommended.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
User avatar
devah
Engineer
Engineer
Posts: 22
Joined: 03 Jul 2007 16:30
Location: Warsaw, Poland
Contact:

Post by devah »

when stretched to 1024 it crashes with assertion fail or sth
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Post by XeryusTC »

I guess it isn't possible to increase the amount of strings then, only the length of strings.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
User avatar
devah
Engineer
Engineer
Posts: 22
Joined: 03 Jul 2007 16:30
Location: Warsaw, Poland
Contact:

Post by devah »

but length is not our problem. has anyone else an idea?
Attachments
Error after increasing the array size
Error after increasing the array size
clipboard1183667167.jpg (16.15 KiB) Viewed 2617 times
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 4 guests