Page 1 of 1

too many names defined

Posted: 30 Jul 2006 18:39
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.....) :(

Posted: 30 Jul 2006 20:30
by StopRightThere
AFAIK, it is a hard coded limit in the game.

Posted: 30 Jul 2006 21:39
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

Posted: 30 Jul 2006 23:07
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

Posted: 31 Jul 2006 12:54
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....

Posted: 31 Jul 2006 16:35
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.

Posted: 31 Jul 2006 20:13
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...

Posted: 05 Jul 2007 15:10
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?

Posted: 05 Jul 2007 15:11
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.

Posted: 05 Jul 2007 15:54
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 :(

Posted: 05 Jul 2007 19:42
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?

Posted: 05 Jul 2007 20:05
by devah
Yes, and my scenario is done in 75%! After few days of work I realized it's pointless... ;(

Posted: 05 Jul 2007 20:07
by XeryusTC
You could always stretch up _name_array a bit, but it is not recommended.

Posted: 05 Jul 2007 20:13
by devah
when stretched to 1024 it crashes with assertion fail or sth

Posted: 05 Jul 2007 20:16
by XeryusTC
I guess it isn't possible to increase the amount of strings then, only the length of strings.

Posted: 05 Jul 2007 20:23
by devah
but length is not our problem. has anyone else an idea?