Page 1 of 1

Nr-TTD

Posted: 10 Aug 2006 14:11
by SpComb
Nr-TTD is an installer for TTD Patch that I made some time ago using batch files. I noticed today that I've never created a topic for it, so here we go, an official topic for it.

Nr-TTD is meant as an installer for TTD Patch, so you can download the zip into a empty folder, run install.bat, and end up with a ttdpatchw.exe that you can run and enjoy the full features of TTD Patch.

Currently (version 0.11), Nr-TTD does the following things:
  • Download and extract TTD
  • Download and extract TTD Patch
  • Download and extract newgrf files, and add them to newgrfw.cfg
  • Download and extract TTDPC
  • Support for HTTP proxies, and able to find the IE settings from the registry
  • Support for mirroring of the nr-ttd files
Nr-TTD downloads all parts induvidually (nr-ttd.zip only contains the code and utilities needed for this, File list, the source tree itself is also available online), and thence does not (to the best of my knowledge) violate TTD Patch's or any newgrf's license. Legal iffyness comes from the fact that it downloads a zip of TTD from my server, but such is life. If you run it on top of an existing TTD install, it will not download TTD itself, it will just use the ones you provide.

So hopefully this topic can raise awareness of nr-ttd and come up with some possible improvements or discussion :)

Possible future ideas (TODO) :
  • Drag 'n Drop .zip or .grf files onto newgrf.bat to install them into newgrf/ and newgrfw.cfg

Posted: 14 Mar 2007 14:30
by SpComb
I just wanted to announce that I've done the drag&drop newgrf installation in release 0.13.

The file in question is tools\install_newgrf.bat in the folder that you installed Nr-TTD into. Simply drag&drop a .grf file, a .zip file or a .url file onto it, and it will download, unzip, copy and modify newgrfw.cfg as necessary.

There are a couple ways to use this
  • Drag&drop a link from your web browser onto your desktop or some folder. Rename the resulting file so it doesn't have any spaces in it (e.g. aisdfjoisajdffd is a good name :) ), and then drag&drop that file onto install_newgrf.bat
  • Save the .zip or the .grf file to disk like normal, but then just drag&drop it onto install_newgrf.bat
  • Tell your browser to 'Open With' the .zip or .grf file using install_newgrf.bat. For firefox: Click the download link, select "Open With", choose "Other" from the list, browse to the tools folder, type in install_newgrf.bat into the file name field at the bottom, hit Open and then OK.
Notes of caution:
  • File names may not have spaces in them, due to how silly explorer is with them.
  • It does not do very much error checking, but it should work OK in most conditions.
  • If the .grf file already exists in newgrf\, it will let you overwrite it or skip it.
  • It does NOT check if the file already exists in newgrfw.cfg, and will add it in a second time, regardless.
  • Tell me if you know of a saner way to get urls from a browser to a .bat file
  • The first method (drag&drop link from browser) only works for .zip files currently. It's also too clunky to be worth making it work for both.
This should make installing newgrfs even easier :)
Comments, questions and suggestions are, as always, welcome.

Re: Nr-TTD

Posted: 14 May 2008 13:51
by Seraphyn
I installed TTD using your install.bat. In order to get the game to operate, I had to use runforcenoreg.bat file. Because when I used the patch to open TTD I got registry error 2 come up. The game opened, but in a small screen. How do I enable full screen operation? :?:

Re: Nr-TTD

Posted: 14 May 2008 14:25
by Seraphyn
Seraphyn wrote:I installed TTD using your install.bat. In order to get the game to operate, I had to use runforcenoreg.bat file. Because when I used the patch to open TTD I got registry error 2 come up. The game opened, but in a small screen. How do I enable full screen operation? :?:

Ok I found how to increase the actual window size in TTDPC.EXE in the dasic tree and increasing the window to fit my monitor now the problem is that the windows that pop up in the game are very small. Any way to increase the size of those?

Re: Nr-TTD

Posted: 14 May 2008 16:27
by DaleStan
The in-game windows are the same size they always were. Except the map window; that one likes to grow to consume your screen.

If they've got a resizing handle in the lower-right corner, you can make them bigger.

Re: Nr-TTD

Posted: 14 May 2008 19:13
by Seraphyn
DaleStan wrote:The in-game windows are the same size they always were. Except the map window; that one likes to grow to consume your screen.

If they've got a resizing handle in the lower-right corner, you can make them bigger.
I think you have misunderstood what I am trying to say. All the window boxes and text are extremly small. I am putting in an image to demonstrate what I am trying to say.

Image

Re: Nr-TTD

Posted: 14 May 2008 20:07
by DaleStan
No, they are the same size they always were. Count pixels if you don't believe me.

Re: Nr-TTD

Posted: 14 May 2008 20:46
by AndersI
If you set the configuration switches resolutionheight and resolutionwidth to something smaller than your screen resolution (say 820 x 512) and turn on full screen it should be easier to read the text.

Re: Nr-TTD

Posted: 14 May 2008 22:23
by Seraphyn
AndersI wrote:If you set the configuration switches resolutionheight and resolutionwidth to something smaller than your screen resolution (say 820 x 512) and turn on full screen it should be easier to read the text.
I tried what you suggested but the max button on the window is greyed out.

Re: Nr-TTD

Posted: 15 May 2008 00:02
by stevenh
Correct... that would be 'Maximising' the window and not setting it to 'Full Screen' in the configuration.
You need to double-click the little green fish program (ttconfig) in your TTDP dir and then set to 'full-screen game pointer' or some such to get real 'Full Screen'... then hope you're not using an LCD monitor, as you'll blur all your pixels if you don't have a proper 1:1 mapping of resolutions.

Re: Nr-TTD

Posted: 15 May 2008 07:21
by Seraphyn
I tried double clicking on the file, nothing happened. To answer your question on my monitor, it is a LCD monitor. I'm wondering if I should just remove all the files and reinstall, or would I still have the same problem?

Re: Nr-TTD

Posted: 15 May 2008 12:46
by Seraphyn
I got it sorted. I went into the TTDPC.EXE and went under interface and into the windows option and there was a selection there to stretch windows, it was off and I turnt it on and it all come up right. Thank you for your help.