Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Feb 27, 2017 4:30 am

All times are UTC




Post new topic  Reply to topic  [ 37 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Fri Sep 20, 2013 2:17 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4516
Location: /home/sweden
Could you provide all input data that you have used. Including the config file.

With that, someone could try to reproduce your error with little effort and not by mistake doing something different from what you did.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Sun Sep 22, 2013 4:04 pm 
Offline
Engineer
Engineer

Joined: Fri Oct 22, 2004 7:27 pm
Posts: 91
grf: http://bundles.openttdcoop.org/finnishtrainset/releases/0.5.7/finnishtrainset-0.5.7.tar.zip

Config file: https://dev.openttdcoop.org/attachments/download/5454/fts_057.ini

Musa: newest version, fresh checkout using TortoiseSVN

Command used to run musa.py
Code:
python musa.py -c fts_057.ini -d -u juzza1 -p XXX finnishtrainset.grf

_________________
Projects I'm involved with


Top
   
PostPosted: Sun Sep 22, 2013 10:23 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4516
Location: /home/sweden
This patch does seem to fix the issue.

For some reason the result value from get_grfid() is not an int on Windows. Later the data type is verified to be an int. Which fails and you get the error that you have reported. The attached patch force the result of get_grfid() to be an integer. It may however cast away error states as well. So a proper fix may need to check if the value is null before casting to int.


Attachments:
newgref-uniqueid-type.patch [407 Bytes]
Downloaded 65 times

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Top
   
PostPosted: Mon Sep 23, 2013 12:30 am 
Offline
Engineer
Engineer

Joined: Fri Oct 22, 2004 7:27 pm
Posts: 91
Thanks for the patch, I am now able to package the grf. Dry run works ok. However, attempting to upload the grf gave me these errors:
Code:
are you one of the authors of this content, if so answer 'yes I am': yes I am

Traceback (most recent call last):
  File "C:\TTDp\musa\musa.py", line 183, in <module>
    main()
  File "C:\TTDp\musa\musa.py", line 167, in main
    send_file(sock, tar_file)
  File "C:\TTDp\musa\musa.py", line 137, in send_file
    send_data(sock, data, True)
  File "C:\TTDp\musa\musa.py", line 120, in send_data
    sock.send(data)
  File "C:\Python27\lib\ssl.py", line 198, in send
    v = self._sslobj.write(data)
socket.error: [Errno 10054] An existing connection was forcibly closed by the re
mote host


Input files are the same as previously, plus changelog.txt, readme.txt and readme_fi.txt. Cmd was run as administrator. I don't have any external firewalls or routers blocking my connection.

_________________
Projects I'm involved with


Top
   
PostPosted: Mon Dec 09, 2013 1:31 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon Dec 19, 2011 7:54 am
Posts: 341
Location: Washington State, USA
Maybe this was answered elsewhere, but was there a solution found to the problem in the post above? I am getting the exact same error, and have no idea what it means. :)

_________________
WSF Ferry Set [WIP] || American Road Replacement Set || NightGFX Base Graphics Set || Wasteland [WIP]


Top
   
PostPosted: Tue Dec 10, 2013 7:30 pm 
Offline
Engineer
Engineer

Joined: Fri Oct 22, 2004 7:27 pm
Posts: 91
Just tried to upload the newest Finnish Trainset, getting the same as above except for the actual error:
Code:
socket.error: [Errno 32] Broken pipe


Dry run works ok. If the devs need any help with grunt work/testing/whatever I might be able to help with, let me know.

_________________
Projects I'm involved with


Top
   
PostPosted: Tue Dec 10, 2013 9:57 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Thu Feb 09, 2006 7:15 pm
Posts: 3815
juzza1's upload worked and the one I made, maybe others work as well. Looks like the code at the server wasn't updated, so it was still running some old version. Furthermore it seems to lose its connection with the database, so now it creates a new one for each upload instead of keeping a single connection.


Top
   
PostPosted: Sun May 25, 2014 2:36 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sat Nov 30, 2013 5:04 pm
Posts: 18
Location: Bohemia (CzechRepublic)
I can not update the GRF.

Code:
C:\Python27\musa>C:\Python27\python C:\Python27\musa\musa.py -c C:\Python27\musa
\jrdtrain.ini -d -u JRD -p xxx D:\nmlcodec\Projekty\JRD_SET\JRD_EURO_trai
n_set.grf
packaging files... (might take a while)
are you one of the authors of this content, if so answer 'yes I am': yes I am
error: dependency NewGRF:4A520101:e8e8d036b568ee1d7b86aff276cac42c not in banana
s
an error occurred and the content is not uploaded


or:

Code:
packaging files... (might take a while)
are you one of the authors of this content, if so answer 'yes I am': yes I am
metadata validated at server side
not uploading tarball due to dry run


Can you advise ?

_________________
Ahoj
..... MY OTTD Web


Top
   
PostPosted: Sun May 25, 2014 2:54 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4516
Location: /home/sweden
The first error is that you've declared a dependency that appears to not exist in bananas. Which NewGRF is it that you try to declare as dependency?

The second error is probably because you supplied an argument to only make a dry run.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Sun May 25, 2014 3:06 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sat Nov 30, 2013 5:04 pm
Posts: 18
Location: Bohemia (CzechRepublic)
OK thank you.

_________________
Ahoj
..... MY OTTD Web


Top
   
PostPosted: Fri Jul 25, 2014 4:27 pm 
Offline
Engineer
Engineer

Joined: Fri Oct 22, 2004 7:27 pm
Posts: 91
A typo in the help text:

musa.py --help wrote:
Code:
Usage: musa.py -c <config> [-dhqv] [-x <regexp>] [-u username] [-p password] <files>

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -r, --recursive       search for files recursively
  -v, --verbose         print extra debug information
  -c FILE, --config=FILE
                        the configuration file
  -x EXCLUDE, --exclude=EXCLUDE
                        regular expressions of files to not include
  -d, --dryrun          perform a dry run where all tests, including remote
                        tests, are performed but the content is not uploaded
                        into the content system
  -u USERNAME, --username=USERNAME
                        the username for uploading content
  -p PASSWORD, --password=PASSWORD
                        the password for uploading content

-q is mentioned in the usage line, but it is not available in the source. -r is not mentioned in the usage line, but is available in the source.

_________________
Projects I'm involved with


Top
   
PostPosted: Fri Jul 25, 2014 4:53 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Thu Jul 16, 2009 10:04 am
Posts: 321
Additional note: about uploading a Game Script with musa

I struggled a little bit on that question, thus I add here some info. In order to upload an entire Game Script, you need to give, as target, all the necessary files which are needed by the script.

Thus, the command will look something like:

Code:
/path/to/musa.py -c config-file.ini -u user -p password *.nut readme.txt


Note that you don't need to include your own license text, because a complete license is already included in musa, for all supported license's types. You even should avoid including your own license.txt. In my case, musa complained about it.

(And thanks juzza1 for the help.)

_________________
Patch - Let's timetable depot waiting time with the Wait in depot patch.
GameScript - Searching a new way to make your cities growing ? Try the Renewed City Growth GameScript.
My screenshots thread.


Top
   
PostPosted: Sat Jul 26, 2014 6:16 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4516
Location: /home/sweden
keoz wrote:
Thus, the command will look something like:

Code:
/path/to/musa.py -c config-file.ini -u user -p password *.nut readme.txt


Don't forget lang/*.txt too.

You may be interested in upload.sh from Beginner Tutorial

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Thu Aug 28, 2014 2:15 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Thu Jul 16, 2009 10:04 am
Posts: 321
Ok, I did a mistake.

To include a file in /lang, I launched musa giving as parameter /lang instead of /lang/*.txt (thinking that musa would either include the file automatically, either complain), which resulted in an incomplete upload :/

Any chance that someone could remove the just uploaded last version (3) of Renewed City Growth GS ? If possible, I'd like to avoid incrementing the version number just for a missing file.

Edit: Ok, it's fine. I could manage to solve the issue by updating bananas with a minor version number and making a fake change in the code.

I'd like to suggest some improvements to musa:
- As it already is true for AI's or NewGRF's, it'd be worth allowing to give a simple .tar to musa as input GS.
- alternatively, add a message about /lang being not a valid objet or search automatically in /lang for text files.

If I find time, I'll try myself to build and propose some little patch for that. Will be the good occasion to learn python again.

_________________
Patch - Let's timetable depot waiting time with the Wait in depot patch.
GameScript - Searching a new way to make your cities growing ? Try the Renewed City Growth GameScript.
My screenshots thread.


Top
   
PostPosted: Sun Jan 04, 2015 7:30 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 950
Location: Aschaffenburg
musa (and depgen) is now also available as a windows executable from
http://bundles.openttdcoop.org/musa/push/LATEST/

If execution fails due to missing MSVCR libraries or due to an invalid application configuration or similar error, you need to install
http://www.microsoft.com/en-us/download ... aspx?id=29

If you have trouble with creating the ini file for musa, some projects started to include the musa configuration file into the source repository, so you can have a look there:(Including the configuration file into the source repository makes it very easy to update the bananas entry without having to look up the meta data every time)

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁


Top
   
PostPosted: Sun Jan 04, 2015 8:30 pm 
Offline
Tycoon
Tycoon

Joined: Tue Feb 22, 2011 6:34 pm
Posts: 2451
I will try it the next time I upload something to BaNaNaS, looks interesting.

Other question, is it with musa possible to directly upload releases from the DevZone to BaNaNaS?

_________________
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML


Top
   
PostPosted: Sun Jan 04, 2015 10:03 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 950
Location: Aschaffenburg
Transportman wrote:
Other question, is it with musa possible to directly upload releases from the DevZone to BaNaNaS?
In theory yes, but there are many questions to answer before that can be done: https://dev.openttdcoop.org/issues/6824

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 37 posts ]  Go to page Previous 1 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.