How to remove train size limit and station spread limits.
Posted: 24 Feb 2011 10:52
Hello,
I know a lot of developers and players will think I'm stupid for posting this, but each player plays the game his or her own way. I also understand that limitations are set in the game so that people don't do stupid things and then complain because the game is too slow. However... Since we all DO play the game differently, I imagine some people like myself want to play without some limitations just for fun.
Two annoying limitations I found for how I play are the limits on the length of train, and the spread limitation on stations (64 tiles max). So I dug out the code and just removed those. I won't supply a patch, but I will tell you how to do it which should work in all versions of the game thus far.
And for this, I am assuming you know how to compile the game. If you don't, well this isn't for you. I compile in Visual Studio 10 and I won't be providing anyone with tutorials on how to do that.
Open src/table/settings.h and look for a line like this
and change it to
This will remove the limit on the station spread allowing you to have airports, bus stations, and train stations all over the place within a 255 tile radius that all belong to the same station increasing your cargo.
Now while still in the same file look for the line that reads...
and change it to this...
That will allow you to build trains up to 255 tiles long.
These changes to the source come with some drawbacks so don't expect the game to run perfectly, or smoothly if you build very large maps and very large stations.
I hope the developers don't yell at me for this And I look for any feedback from them on drawbacks and all of that. I just like to play the game at an extreme level. I assume others might be out there like me.
Enjoy,
Bill
I know a lot of developers and players will think I'm stupid for posting this, but each player plays the game his or her own way. I also understand that limitations are set in the game so that people don't do stupid things and then complain because the game is too slow. However... Since we all DO play the game differently, I imagine some people like myself want to play without some limitations just for fun.
Two annoying limitations I found for how I play are the limits on the length of train, and the spread limitation on stations (64 tiles max). So I dug out the code and just removed those. I won't supply a patch, but I will tell you how to do it which should work in all versions of the game thus far.
And for this, I am assuming you know how to compile the game. If you don't, well this isn't for you. I compile in Visual Studio 10 and I won't be providing anyone with tutorials on how to do that.
Open src/table/settings.h and look for a line like this
Code: Select all
SDT_VAR(GameSettings, station.station_spread, SLE_UINT8,
0, 0, 12, 4, 64, 0, STR_CONFIG_SETTING_STATION_SPREAD,
Code: Select all
SDT_VAR(GameSettings, station.station_spread, SLE_UINT8,
0, 0, 12, 4, 255, 0, STR_CONFIG_SETTING_STATION_SPREAD,
Now while still in the same file look for the line that reads...
Code: Select all
SDT_CONDVAR(GameSettings, vehicle.max_train_length, SLE_UINT8,159, SL_MAX_VERSION,
0, 0, 7, 1, 7, 1, STR_CONFIG_SETTING_TRAIN_LENGTH,
Code: Select all
SDT_CONDVAR(GameSettings, vehicle.max_train_length, SLE_UINT8,159, SL_MAX_VERSION,
0, 0, 7, 1, 255, 1, STR_CONFIG_SETTING_TRAIN_LENGTH,
These changes to the source come with some drawbacks so don't expect the game to run perfectly, or smoothly if you build very large maps and very large stations.
I hope the developers don't yell at me for this And I look for any feedback from them on drawbacks and all of that. I just like to play the game at an extreme level. I assume others might be out there like me.
Enjoy,
Bill