Trouble in the NML tutorial (link not working)

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Trouble in the NML tutorial (link not working)

Post by Genix »

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)".
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

Simply erase last "/rpms" and go to the This adress.
I can advice You GRFMaker as the sprite-drawing table.
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

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.
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

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.
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

Am I looking in the wrong place? Because I'm pretty sure there isn't one with linux and 32 on it.
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

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.
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

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.
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

Thank you. Now what do I do with it? Do I extract it? Where?
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

Sorry, but I don't know anything other about Linux, I can't help :(
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

Ok. I might try on windows if I can't manage to get it working =]

Thanks.
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

----- 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:

Code: Select all

cd Desktop/nml-v6379-afad0c76c40b/

Code: Select all

sudo python3 setup.py install
But got an error that said: "ImportError: No module named 'setuptools'". So i installed setuptools for python3:

Code: Select all

sudo apt-get install python3-setuptools
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.
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

It's great, good luck with learning NML :)
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

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: "
[+] Spoiler
https://pypi.python.org/pypi/ply#downloads
" 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
) and did "

Code: Select all

sudo python3 setup.py install
". Now the command works.
Tony Pixel
Route Supervisor
Route Supervisor
Posts: 459
Joined: 14 Oct 2017 11:06
Location: Ukraine

Re: Trouble in the NML tutorial (link not working)

Post by Tony Pixel »

All right!
Image Image
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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

Yep. All working! Compiled at the first try and the game was able to 'scan' it!
Auge
Director
Director
Posts: 632
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Trouble in the NML tutorial (link not working)

Post by Auge »

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
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

You're right. It could be avoided. But the readme.txt doesn't teach unexperienced people how to properly install the dependencies on Linux.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: Trouble in the NML tutorial (link not working)

Post by Alberth »

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.
This depends on the flavour of Linux that you use, and how you want to install it.

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.
User avatar
Genix
Engineer
Engineer
Posts: 11
Joined: 21 Mar 2018 22:38

Re: Trouble in the NML tutorial (link not working)

Post by Genix »

Couldn't have said it better myself. I've managed to unintentionally break Ubuntu once :lol: but it is so much fun to use if you know what you're doing.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests