Trouble in the NML tutorial (link not working)
Moderator: Graphics Moderators
Trouble in the NML tutorial (link not working)
Hi everyone. I'm following the following NML tutorial ( https://www.tt-wiki.net/wiki/NMLTutorial/Installation ) and I'm on Ubuntu (Linux) and I can't open the link to the rpm package that the tutorial gives us (wich is http://bundles.openttdcoop.org/nml/nigh ... TEST/rpms/ ). Does someone know a way around this? Thank you.
P.S.: I want to follow the method "Installing NML as precompiled binary (recommended)".
P.S.: I want to follow the method "Installing NML as precompiled binary (recommended)".
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
Simply erase last "/rpms" and go to the This adress.
I can advice You GRFMaker as the sprite-drawing table.
I can advice You GRFMaker as the sprite-drawing table.
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
What file am I supposed to get then? I thought it was an rpm package (I don't know what that is, yet). I downloaded the file "nml-v6379-afad0c76c40b.tar.gz" and I don't know what I need to do with it. I've extracted it and i tried doing "sudo python3 setup.py install" but it gave me an error on line 9 I think.
I'll be using GRFMaker then =]
Thanks
EDIT: I don't know if this helps but I'm on Ubuntu 32-bit and i686 architecture.
I'll be using GRFMaker then =]
Thanks
EDIT: I don't know if this helps but I'm on Ubuntu 32-bit and i686 architecture.
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
Then download ver. With 'linux' and '32bit' in name. I am on the Windows, but think what It will be work. GRFMaker has good graphic redactor, but it's NFO coding.
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
Am I looking in the wrong place? Because I'm pretty sure there isn't one with linux and 32 on it.
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
No, there are many versions in that place http://bundles.openttdcoop.org/nml/nightlies/LATEST/ simply download version with "Linux" and "32bit" in the filename.
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
I'm sorry but can you send me a screenshot? I can't find the file that has both linux and 32 in its name.
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
Try this file: http://bundles.openttdcoop.org/nml/nigh ... _64.tar.gz.
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
Thank you. Now what do I do with it? Do I extract it? Where?
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
Sorry, but I don't know anything other about Linux, I can't help
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
Ok. I might try on windows if I can't manage to get it working =]
Thanks.
Thanks.
Re: Trouble in the NML tutorial (link not working)
----- This is for linux users only! -----
Managed to get it to work! I downloaded "nml-v6379-afad0c76c40b.tar.gz", extracted it in my Desktop, then opened the terminal and did:
But got an error that said: "ImportError: No module named 'setuptools'". So i installed setuptools for python3:
and tried again to install using the second command shown in this 'reply'.
I think everything went ok, so I'm going to proceed with the tutorial. If anything wrong happens, I'll let you know here.
Managed to get it to work! I downloaded "nml-v6379-afad0c76c40b.tar.gz", extracted it in my Desktop, then opened the terminal and did:
Code: Select all
cd Desktop/nml-v6379-afad0c76c40b/
Code: Select all
sudo python3 setup.py install
Code: Select all
sudo apt-get install python3-setuptools
I think everything went ok, so I'm going to proceed with the tutorial. If anything wrong happens, I'll let you know here.
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
It's great, good luck with learning NML
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
Thanks Tony. I'm very excited to start making my own NewGRF =].
Again, encountered another problem: After installing, i tried running the commands 'nmlc' and 'nmlc -h' but it showed a lot of lines and at the bottom it said 'ImportError: No module named 'ply'". So I did more web searching and the solution was going to this link: " " and downloaded the tar.gz to my Desktop. After that, I just opened the terminal and changed my directory to the extracted file ( ) and did " ". Now the command works.
Again, encountered another problem: After installing, i tried running the commands 'nmlc' and 'nmlc -h' but it showed a lot of lines and at the bottom it said 'ImportError: No module named 'ply'". So I did more web searching and the solution was going to this link: " " and downloaded the tar.gz to my Desktop. After that, I just opened the terminal and changed my directory to the extracted file (
Code: Select all
cd Desktop/foldername
Code: Select all
sudo python3 setup.py install
-
- Route Supervisor
- Posts: 459
- Joined: 14 Oct 2017 11:06
- Location: Ukraine
Re: Trouble in the NML tutorial (link not working)
All right!
Sprite artist and NewGRF developer, coding in NML. My projects:
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Tony Pixel's Subway Equipment Set (frozen)
Screenshots: New York City Subway Episodes
Re: Trouble in the NML tutorial (link not working)
Yep. All working! Compiled at the first try and the game was able to 'scan' it!
Re: Trouble in the NML tutorial (link not working)
Hello
Nearly every trap you ran into is mentioned in the readme.txt you would be able to read on the download server. Sometimes it would be so simple.
Sole exception is the package "Python setuptools". IMHO it should be mentioned in the section "Required dependencies" because it seems not to be installed by default on every system.
Tschö, Auge
Nearly every trap you ran into is mentioned in the readme.txt you would be able to read on the download server. Sometimes it would be so simple.
Sole exception is the package "Python setuptools". IMHO it should be mentioned in the section "Required dependencies" because it seems not to be installed by default on every system.
Tschö, Auge
Re: Trouble in the NML tutorial (link not working)
You're right. It could be avoided. But the readme.txt doesn't teach unexperienced people how to properly install the dependencies on Linux.
Re: Trouble in the NML tutorial (link not working)
This depends on the flavour of Linux that you use, and how you want to install it.Genix wrote:You're right. It could be avoided. But the readme.txt doesn't teach unexperienced people how to properly install the dependencies on Linux.
There are at least 3 main flavours: Debian/Ubuntu, Fedora, and Suse, and a few others, like like RHEL, Slackware, Mint. The list is not complete though, there are about 40 different Linuces available.
Aside from the Linux flavour, there is also the programming language flavour. Python has setuptools and PyPI, Perl and Ruby have their own way of distributing.
As for the way of installing, there is system-wide install, user-install, and (for many programs, including NML) never install at all, just unpack the source and run it.
(Under the assumption that its dependencies can be found. If you have to install those too, there are at least 3 main flavours: ....)
As you can see, you cannot explain "install" in a few lines in the NML readme file without making a lot of assumptions on knowledge of the reader. There are just too many options and considerations why one option is better for you than another option.
It really belongs in a proper Linux manual, and all the major Linuces have such a manual explaining it.
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: Trouble in the NML tutorial (link not working)
Couldn't have said it better myself. I've managed to unintentionally break Ubuntu once but it is so much fun to use if you know what you're doing.
Who is online
Users browsing this forum: No registered users and 5 guests