
The script looks ok too
About the initializing problem, I don't know what causes it, but I haven't got access to 10.1, only 10.2 and 10.3, so 10.1 is untested
you have to test something to get an idea of what might cause the problem
Try to start OTTD from terminal with ./ttd (I think the startscript is still called ttd. It will change from next release)
use the arguments:
-m NULL (disables video)
-s NULL (disables sound)
-m NULL (disalbes music)
if that works, try to enable them one at the time to find out which one causes the problem. Hopefully this can be fixed by something as simple as disabling music. It also gives a clue to where in the source to look