Eddi wrote:of course, python is slow, but if you can still get orders of magnitude of speedups, you should invest in it anyway.
Indeed, the compile farm compiles 6 times faster than my current setup, so there is a huge room for improvement.
TadeuszD wrote:Transportman wrote:I want to try compiling on Windows 8 (the OS my laptop actually runs) to see if that is a bit faster, but make is not supported by Windows. So I was wondering if it is possible to do and if there is a step by step guide on how to do it and which programs to install to compile NewGRFs using the make system on Windows?
I compile my set (Polish PKP Set 2.0) on Windows 7 every time. I hope that my post will be useful on Windows 8 too.
As planetmaker wrote, firstly you need to install MinGW environment in your Windows system. Next you should download NMLC executable for Windows (
http://bundles.openttdcoop.org/nml/nightlies/LATEST/ ). To optimize your work you should add GCC and NMLC directories to 'PATH' environment variable. After that you can compile your set using batch file, similar to my(
http://dev.openttdcoop.org/projects/pkp ... try/cc.bat), or using make directive, of course...

That works, it just compiled the whole thing in less than a minute using your method, but I'm not completely happy. Some automatic replacements I use with the makefile are not replaced ({TITLE}, REPO_REVISION and others), but at least it shows that the improvement is possible.
Trying to compile using make gives me some errors. I first had to update my makefile, there was a
bug that blocked compiling, grabbed findversion.sh that is needed, and I got a whole bunch of these errors:
Code: Select all
File "<string>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'days'
And then it fails with a
Code: Select all
Makefile:388: *** multiple target patterns. Stop.
Compiling on the VM is a bit faster now, but still quite slow (from 8-10 to 5-6 minutes).