The International Simutrans Forum

PakSets and Customization => Pak128.Britain => Topic started by: wernieman on March 16, 2010, 09:34:17 AM

Title: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 09:34:17 AM
I plan to make the pak128.britain in the nightlys, but... how it would be generate??

sorry, but there is no info in the SVN.
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 09:50:44 AM
There is a MOSE script (makeALL.mos) in the pak128.Britain folder of SVN which I use to build the official releases.  Can you use this?  You will need to make sure the parameter.mos is correct for your system though.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 10:50:00 AM
Dou you generate at linux?

I must change the execude-flag of the script ...
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 11:00:38 AM
Yes, I run linux on my home machine.  I've not tried it on any other system, although I think some other pak128.Britain users have built the pak from source so they may have other points to add.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 11:16:47 AM
Could yo have some Problems with the pngs??
Quotelibpng warning: Invalid pHYs after IDAT

And .. the programm don´t stop automatikly ...
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 11:22:56 AM
I get the error messages, but it builds fine and plays fine.  I've always been confused why I get an error when there doesn't seem to be a problem!  Would be nice to remove the error message though if anyone knows what causes it.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 11:34:46 AM
It is an error Message from makeobj. The png is not good ... at example photoshop create pngs with this "Problem" ...

And what whe do with the "not automatikly stop"?
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 11:39:55 AM
I'm not sure what you mean about "not automatikly stop"?  For me, running the script produces the makeobj libpng warnings, but the output pak is perfectly playable.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 12:03:41 PM
If you start the script, its end with a pompt:
Quotelibpng warning: Invalid pHYs after IDAT
It seems that there is every thing right!
-----------------
!BUILD COMPLETE!



mose>

But .. when I call it in a cron-job, it must end the prompt too .....
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 12:46:44 PM
I see now.  Doesn't pak192 buils with MOSE?  If you used the same sort of setup for that would that work?  Michael 'Cruzer' helped me set up the script so maybe he knows better what to do.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 12:58:25 PM
Could it be that in you svn is an old Version of the mose script?

The mose fom PAK192 hafe a special parameter for this problem

Quote/usr/bin/python mose.py -x makeALL.mos

Title: Re: Generatin PAK128.britain
Post by: The Hood on March 16, 2010, 01:00:54 PM
I've had it about a year - I wasn't aware there was an update?
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 16, 2010, 01:13:51 PM
It must be more than 1 year .. there was an update when I make the nightly for PAK192 ....
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 17, 2010, 10:22:37 AM
I suspect we will need the help of the MOSE developers to sort this out.  Can you contact them in the german forum?
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 17, 2010, 11:35:26 AM
Have you test to try the mose from PAK192??
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 17, 2010, 11:46:48 AM
No - can you tell me where the sources and MOSE scripts are for pak192?
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 17, 2010, 12:10:22 PM
in the SVN ........

have you an EMail-Adresse?? Then I could send it to you ...
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 18, 2010, 09:52:55 AM
Hopefully you got my email address by PM now?
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 18, 2010, 10:47:40 AM
I send you an EMail ....
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 19, 2010, 11:06:33 AM
I get Info ...
QuoteDie Entwicklung von MOSE läuft auf http://moscript.sf.net/ (SVN Adresse dort) ab.

Look at http://moscript.sf.net/ (http://moscript.sf.net/) for the Mose-Script
Title: Re: Generatin PAK128.britain
Post by: Michael 'Cruzer' on March 19, 2010, 02:26:12 PM
The MOSE version in PAK128 SVN is "MOSE - MakeObj Script Environment [Version 0.3.4.0]" (type command 'ver', for check it) actuall version is "MOSE - MakeObj Script Environment [Version 0.4.2.1]".

I recommend that the MOSE runtime itself is not stored in the SVN. (Only the *.mos Script file, have to be saved in the SVN) Then it is the responsibility of the user to download MOSE from http://moscript.sf.net/ himself.


My recommendation:

1.) Delete the file "mose.py" out of svn.

2.) Download the MOSE-Runtime (ZIP-file for linux and EXE-file for windows) and...
- (LINUX) extract it to (for example) "/bin" and you can run the "makeAll.mos"-script with typing "/bin/mose.py -x makeAll.mos" out of the terminal.
- (WINDOWS) run the setup and you can run the "makeAll.mos"-script with double-clicking on it in file manager.


1.Note:
The command line argument "-x" is supported since MOSE 0.3.9 (2009-07-10)

2.Note:
Simutrans doesn't support more than 24bit Images. Most of the pak128.britain images are saved as 32bit Images, so the libpng waring appears!
The warning means that the PAK-files are currently unnecessary big, and perhaps errors could occur.
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 19, 2010, 02:43:02 PM
Thankyou.  So am I right in thinking that if wernieman uses the latest mose.py from moscript.sf.net and the makeALL.mos in pak128.Britain SVN, he won't get the problem of not exiting properly? 

I will implement your recommendations in pak128.Britain SVN.  Presumably what you say about 32-bit images can therefore be removed if I change all the images to 24-bit?  It may take some time, but if it results in smaller pak sizes, I will do it.
Title: Re: Generatin PAK128.britain
Post by: wlindley on March 20, 2010, 02:13:30 PM
TheHood -- to do mass conversions, try the ImageMagick tools, specifically this one:

http://www.imagemagick.org/script/convert.php

Once installed, you could try:

$ convert -depth 24 */*.png */*/*.png

Ta-da!

(And some folks wonder why we like command-line interfaces.)
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 22, 2010, 10:28:08 AM
I need only the mose.py from the zipfile??
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 22, 2010, 10:50:49 AM
You need mose.py from the latest zipfile on http://moscript.sf.net/ as Cruzer said (ignore the one in pak128.Britain SVN - it is out of date).  You still need makeALL.mos from pak128.Britain SVN though.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 22, 2010, 12:03:01 PM
Not only the make.py, the sript "cry" about a makeobj.py
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 22, 2010, 12:50:27 PM
Isn't the makeobj.py also in the makeobj download? 
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 22, 2010, 01:00:12 PM
no it is in the mose download ....
Title: Re: Generatin PAK128.britain
Post by: ansgar on March 22, 2010, 02:15:32 PM
wernieman: You could try and use the shell script I wrote to build pak128.britain in Debian for now.  It is available from http://svn.debian.org/viewsvn/pkg-games/packages/trunk/simutrans-pak128.britain/debian/build?revision=10814&view=markup.
It's far easier to understand and use than an extra script.  If only Windows would have a POSIX shell... ;)
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 22, 2010, 02:25:34 PM
Bit it is not good, when we use different scipts for nightly and developer... it is better only to use 1 scipt ;o)
Title: Re: Generatin PAK128.britain
Post by: The Hood on March 22, 2010, 02:46:08 PM
@wernieman

I meant mose download not makeobj download, like you say.
Title: Re: Generatin PAK128.britain
Post by: wernieman on March 22, 2010, 03:17:16 PM
O.K ... I try it .. ;o)
Title: Re: Generatin PAK128.britain
Post by: Michael 'Cruzer' on March 22, 2010, 03:18:07 PM
Quote from: wernieman on March 22, 2010, 10:28:08 AM
I need only the mose.py from the zipfile??

No sorry, you need all *.py files out of the ZIP.
(There should also be a makeobj.py in the MOSE zip-file.)
Title: Re: Generatin PAK128.britain
Post by: The Hood on April 14, 2010, 09:52:03 AM
Did we get anywhere with this, or do I still need to do something?
Title: Re: Generatin PAK128.britain
Post by: wernieman on April 14, 2010, 10:07:15 AM
At the Moment I have some Problem with the Harddisk/SATA-Controller on the Maschine, so I don´t make it working.

My Tests was positiv ....

(I don´t write in this Forum the Problem, only in the German :o )
Title: Re: Generatin PAK128.britain
Post by: The Hood on April 14, 2010, 10:08:00 AM
OK no worries.  Hope you get the computer fixed :)
Title: Re: Generatin PAK128.britain
Post by: wernieman on April 14, 2010, 10:12:31 AM
I hope too
Title: Re: Generatin PAK128.britain
Post by: neroden on April 18, 2010, 12:50:15 AM
Quote from: wlindley on March 20, 2010, 02:13:30 PM
TheHood -- to do mass conversions, try the ImageMagick tools, specifically this one:

http://www.imagemagick.org/script/convert.php

Once installed, you could try:

$ convert -depth 24 */*.png */*/*.png

Ta-da!

(And some folks wonder why we like command-line interfaces.)

Ohhh.  We should do this.
Title: Re: Generatin PAK128.britain
Post by: The Hood on April 18, 2010, 09:41:13 AM
I'd forgotten about that.  I have imagemagick installed for other purposes, so this should be pretty easy for me to do.  Added to the to-do list...
Title: Re: Generatin PAK128.britain
Post by: wernieman on April 19, 2010, 06:51:42 AM
Bit there is an "error".

When you use
convert -depth 24 */*.png */*/*.png

You get not working pngs ... it must be
convert -depth 8 */*.png */*/*.png

Look at the ImageMagick Doku
Title: Re: Generatin PAK128.britain
Post by: wernieman on April 22, 2010, 10:23:59 AM
Just to informe ...

making nightly (O.K. Weekly) of PAK128.britain is online ....

see: http://nightly.simutrans-germany.com/ (http://nightly.simutrans-germany.com/)
Title: Re: Generatin PAK128.britain
Post by: jamespetts on April 22, 2010, 12:31:59 PM
Excellent!
Title: Re: Generatin PAK128.britain
Post by: The Hood on April 22, 2010, 12:39:29 PM
Great news!  Now all we need is for the pak developers to actually commit some changes... :::) [ahem]