Compiling on Windows Guide - Feedback needed
Moderator: Graphics Moderators
-
- Engineer
- Posts: 3
- Joined: 05 Feb 2015 11:48
Re: Compiling on Windows Guide - Feedback needed
Hi, I'm new to compiling nml files. I've followed Trnsportman's guide, passed the path checks with flying colours. Compiled the example swedish rails grf in a tar. Now I' trying to compile the latest nightly from frissrails, which I'm going to modify into something like a nutracks for the subarctic. (personal use only)
I'm stuck at the moment GIMP has to turn the sprite xcf file into a png file, n: command not found. Further on the python (both 2.7 and 3.x) fails. I tried to change some of the scripting with no luck. Anyone any comments, I'd like to learn more about coding and development.
At the moment, I'm working on a Windows 8.1 machine. If needed I can switch to Ubuntu/Linux Mint using a VM.
I'm stuck at the moment GIMP has to turn the sprite xcf file into a png file, n: command not found. Further on the python (both 2.7 and 3.x) fails. I tried to change some of the scripting with no luck. Anyone any comments, I'd like to learn more about coding and development.
At the moment, I'm working on a Windows 8.1 machine. If needed I can switch to Ubuntu/Linux Mint using a VM.
Re: Compiling on Windows Guide - Feedback needed
GIMP is not part of nml. if a GRF relies on this program, you must install it separately.
-
- Engineer
- Posts: 3
- Joined: 05 Feb 2015 11:48
Re: Compiling on Windows Guide - Feedback needed
Sorry to mention it, but Transportman's guide mentions GIMP as one of the programs you have to install and I've followed the guide almost to the letter, and a little beyond. It could be that it is because GIMP nowadays is GIMP 2 (yes, I've removed the space in the directory and thus in PATH).
My best guess - for what it's worth - is that scripting is outdated due to evolving auxiliary programs like GIMP(2). However I'm definitely not an expert at using GIMP or PS.
My best guess - for what it's worth - is that scripting is outdated due to evolving auxiliary programs like GIMP(2). However I'm definitely not an expert at using GIMP or PS.
Re: Compiling on Windows Guide - Feedback needed
my guess is that some path has changed, and thus cannot be found even though it is installed.
-
- Tycoon
- Posts: 2792
- Joined: 22 Feb 2011 18:34
Re: Compiling on Windows Guide - Feedback needed
My guide does not mention GIMP as one of the programs you have to install. The full list of programs you need is:Farbarn_Jr wrote:Sorry to mention it, but Transportman's guide mentions GIMP as one of the programs you have to install
Setting up a Windows compile environment wrote:The following programs will be installed on your computer during this guide:
*NML
*TortoiseHg
*Python (version 2.7.x)
*MinGW and MSYS
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Re: Compiling on Windows Guide - Feedback needed
Python 2.7?
NML uses Python 3 (at least anything recent)
You may want to update that.
NML uses Python 3 (at least anything recent)
You may want to update that.
Being a retired OpenTTD developer does not mean I know what I am doing.
-
- Engineer
- Posts: 3
- Joined: 05 Feb 2015 11:48
Re: Compiling on Windows Guide - Feedback needed
Sorry Transportman, GIMP was mentioned by the Friss-lads if anyone would like to build from source. Their requirements did mention Numpy and SciPy too. Scipy doesn't install with python3.x just yet... (docs say otherwise...) Numpy appears to be happy.
Still figuring out how to get it working. I'll try to edit the scipting if I got the time to figure it all out.
Still figuring out how to get it working. I'll try to edit the scipting if I got the time to figure it all out.
-
- Tycoon
- Posts: 2792
- Joined: 22 Feb 2011 18:34
Re: Compiling on Windows Guide - Feedback needed
Nope, it is correct. The Python 2.7 is for the version-number script (which does not work with Python 3), and NML comes with its own Python on Windows, so it all works fineAlberth wrote:Python 2.7?
NML uses Python 3 (at least anything recent)
You may want to update that.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
-
- Tycoon
- Posts: 2792
- Joined: 22 Feb 2011 18:34
Re: Compiling on Windows Guide - Feedback needed
Just a small update, for Windows 10 with the Anniversary update it is possible to use Windows Subsystem for Linux, allowing to run bash from Windows itself. I just spend the morning getting it to work (and having to thrash the whole thing several times).
I will write a guide next week so that others can also set it up. Then my old laptop also has the update, so that I have a clean environment to work on.
I will write a guide next week so that others can also set it up. Then my old laptop also has the update, so that I have a clean environment to work on.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
-
- Tycoon
- Posts: 2792
- Joined: 22 Feb 2011 18:34
Re: Compiling on Windows Guide - Feedback needed
Shameless triple post, I finished the guide for W10 Anniversary update, it can be found here. Any feedback is appreciated.
I have no exact timings available, but the compile time for of the 2cc Trains In NML has been greatly reduced. My laptop on which I previously used the compile set-up as described in the old guide, took 5-10 minutes to compile the set (if not longer), while with the new set-up it only took 2 minutes and 15 seconds, even beating the DevZone compile farm by 15 seconds.
I have no exact timings available, but the compile time for of the 2cc Trains In NML has been greatly reduced. My laptop on which I previously used the compile set-up as described in the old guide, took 5-10 minutes to compile the set (if not longer), while with the new set-up it only took 2 minutes and 15 seconds, even beating the DevZone compile farm by 15 seconds.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Re: Compiling on Windows Guide - Feedback needed
Nicely done.
Who is online
Users browsing this forum: No registered users and 15 guests