Introducing: musa. The new BaNaNaS upload tool

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
stefino_cz
Traffic Manager
Traffic Manager
Posts: 186
Joined: 02 Jul 2015 08:05
Location: Czech Republic
Contact:

Re: Introducing: musa. The new BaNaNaS upload tool

Post by stefino_cz » 25 Dec 2018 11:28

Yes, but when I write "yes I am" it writes that I'm not author of this grf :D I think, problem is in "keyborad". Our Czech keyboard has switched Y and Z :) So if I write zes I am, I can confirms it but this socket error apears.
Image

rowdog
Engineer
Engineer
Posts: 49
Joined: 24 May 2017 12:51
Location: East Texas

Re: Introducing: musa. The new BaNaNaS upload tool

Post by rowdog » 26 Dec 2018 02:28

I looked over the code for musa and I agree that the problem is probably in the "keyboard" (how Python or the Windows terminal deal with Unicode.) Sadly, I can't read Czech and I don't know how to machine translate from an image file.

I think it would help for you to run musa again with the verbose option (-v) and then give us a text version of the error message.

User avatar
stefino_cz
Traffic Manager
Traffic Manager
Posts: 186
Joined: 02 Jul 2015 08:05
Location: Czech Republic
Contact:

Re: Introducing: musa. The new BaNaNaS upload tool

Post by stefino_cz » 26 Dec 2018 10:08

The program is really funny cause 9/10 it calls that I am not an author of grf - I tried all options (yes i am, yes I am, zes i am, zes I am)...sometimes I can confirm it with "zes i am" sometimes with "yes i am". But result is the same. Last sentence is again in Czech. As I wrote, something that the connection was end by remote host. My friend - programmer - got the same result in two different PCs. I thought that it was due firewall so I switched off everything and nothing was changed.
Výstřižek.JPG
Výstřižek.JPG (61.99 KiB) Viewed 2591 times
Image

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Introducing: musa. The new BaNaNaS upload tool

Post by planetmaker » 02 Jan 2019 22:03

Does that grf already exist / is it an update? If so: What's its grfID? Or is it a NewGRF yet unknown to bananas?
How does your bananas.ini look like? What was the output when you tried the --dry-run option?

All I can say so far: it's not a general problem. Musa successfully updated my OpenGFX+Airports to bananas on 1st try.

The directory I uploaded and the musa call looked like

Code: Select all

ogfx-airports$ ls ogfx-airports-0.5.0
bananas.ini  changelog.txt  license.txt  ogfx-airports.grf  readme.txt

ogfx-airports$ musa -c ogfx-airports-0.5.0/bananas.ini -x bananas.ini -x license.txt -u planetmaker -p BLABLABLA -r ogfx-airports-0.5.0/*
Note that I exclude all files from the release directory which I don't want to upload.

my corresponding bananas.ini (which I excluded from upload):

Code: Select all

[musa]
type = NewGRF

# The name for the content; at most 32 characters.
name = OpenGFX+ Airports

# The version of the content; at most 16 characters.
version = 0.5.0

# Description for the content; at most 512 characters.
# If the description_file key exists, then that file is read. Otherwise
# description_text is used. Please not that with description_text it is
# not possible to have newlines in the description.
#description_file = my_description.txt
description_text = Adds rotations and ground awareness to the default airports

# URL to get to the home page of the content.
url = https://dev.openttdcoop.org/projects/airportsplus
license = GPL v2

# A comma separated list of tags for the content. Each tag may be at most 32
# characters long.
tags = opengfx, airport, snow, rotation

# It is preferred to use the nightly revision as that allows your content to
# be visible by the betas and release candidates of the stable release as well.
# openttd_minimum_supported_version = 1.2 r23456
openttd_minimum_supported_version = 1.2 r22518
openttd_maximum_supported_version =
# openttd_maximum_supported_version = 1.3.0

# A comma separated list of objects this content depends on.
dependencies =

# The case sensitive comma separated list of usernames of the authors that may
# update this content in the content system. The uploading author must be one of
# these specified authors.
authors = planetmaker, openttdcoop
(Note, that bananas.ini is the only way you can *add* contributor access to the NewGRF entry so that several people can update it)


Cheers,
planetmaker.

User avatar
vasatko
Engineer
Engineer
Posts: 15
Joined: 01 Feb 2018 12:36
Location: Czech Republic, Ostrava

Re: Introducing: musa. The new BaNaNaS upload tool

Post by vasatko » 03 Jan 2019 11:51

planetmaker wrote:Does that grf already exist / is it an update? If so: What's its grfID? Or is it a NewGRF yet unknown to bananas?
How does your bananas.ini look like? What was the output when you tried the --dry-run option?

All I can say so far: it's not a general problem. Musa successfully updated my OpenGFX+Airports to bananas on 1st try.
...
Cheers,
planetmaker.
Hi,

as you can see in stefino_cz screenshoot, that script links to c:\Python27 (same in my computer). But we hasnt this folder. I download Python 2.7 and unzip it to C:\Python27. But still I have same error (only more detail stacktrace).
Image

Now I tried it from linux. But same error:
Image

GRF allready exist (its update), but same error is for not exist GRF. Bananas.ini and other files is in ZIP (attached to this post). Option --dry-run is not allowed by musa.py.

Can you other idea, where can be problem?

Thank you
Attachments
musa.png
(36.3 KiB) Not downloaded yet
CZTR_Ground.zip
(23.55 MiB) Downloaded 37 times
musa_error_win_2019-01-03.png
(27.63 KiB) Not downloaded yet
Image

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Introducing: musa. The new BaNaNaS upload tool

Post by planetmaker » 03 Jan 2019 22:53

well, it's --dryrun or simply -d. As its integrated help via --help or -h tells me. And again: what does the ini file look like?

User avatar
vasatko
Engineer
Engineer
Posts: 15
Joined: 01 Feb 2018 12:36
Location: Czech Republic, Ostrava

Re: Introducing: musa. The new BaNaNaS upload tool

Post by vasatko » 04 Jan 2019 08:58

vasatko wrote:Bananas.ini and other files is in ZIP (attached to this post).
and with -d option is same
Image

agentw4b
Traffic Manager
Traffic Manager
Posts: 155
Joined: 14 Apr 2017 15:51
Location: Czech Republic

Re: Introducing: musa. The new BaNaNaS upload tool

Post by agentw4b » 04 Jan 2019 09:29

How do I find the user accounts that added the Newgrf file to the Bananas server? Do not see authors in the game and https://bananas.openttd.org/en/ shows the author for the last 10 recordings only?
Owner and admin of servers:Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779), Experimental games 04 (92.63.57.152:3679), Experimental games 05 (92.63.57.152:3579).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS

User avatar
stefino_cz
Traffic Manager
Traffic Manager
Posts: 186
Joined: 02 Jul 2015 08:05
Location: Czech Republic
Contact:

Re: Introducing: musa. The new BaNaNaS upload tool

Post by stefino_cz » 04 Jan 2019 15:22

Yes, it was due to wrong authors in .ini (I wrote CZTR Team before - when I use stefino_cz like my account nick, it is OK) and maybe wrong minimum version too. I uploaded it few minut ago so all is OK now. Thanks :)
Image


Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 4 guests