The International Simutrans Forum

 

Author Topic: Generatin PAK128.britain  (Read 9956 times)

0 Members and 1 Guest are viewing this topic.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Generatin PAK128.britain
« 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.

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #1 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.
« Last Edit: March 16, 2010, 10:02:39 AM by The Hood »

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #2 on: March 16, 2010, 10:50:00 AM »
Dou you generate at linux?

I must change the execude-flag of the script ...

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #3 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #4 on: March 16, 2010, 11:16:47 AM »
Could yo have some Problems with the pngs??
Quote
libpng warning: Invalid pHYs after IDAT

And .. the programm don´t stop automatikly ...

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #5 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #6 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"?

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #7 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #8 on: March 16, 2010, 12:03:41 PM »
If you start the script, its end with a pompt:
Quote
libpng 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 .....

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #9 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #10 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


Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #11 on: March 16, 2010, 01:00:54 PM »
I've had it about a year - I wasn't aware there was an update?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #12 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 ....

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #13 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?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #14 on: March 17, 2010, 11:35:26 AM »
Have you test to try the mose from PAK192??

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #15 on: March 17, 2010, 11:46:48 AM »
No - can you tell me where the sources and MOSE scripts are for pak192?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #16 on: March 17, 2010, 12:10:22 PM »
in the SVN ........

have you an EMail-Adresse?? Then I could send it to you ...

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #17 on: March 18, 2010, 09:52:55 AM »
Hopefully you got my email address by PM now?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #18 on: March 18, 2010, 10:47:40 AM »
I send you an EMail ....

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #19 on: March 19, 2010, 11:06:33 AM »
I get Info ...
Quote
Die Entwicklung von MOSE läuft auf http://moscript.sf.net/ (SVN Adresse dort) ab.

Look at http://moscript.sf.net/ for the Mose-Script

Offline Michael 'Cruzer'

  • Devotee
  • *
  • Posts: 196
  • Founder of pak192.comic
    • Marktplatz für Parkplätze
  • Languages: DE, EN
Re: Generatin PAK128.britain
« Reply #20 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.
« Last Edit: March 19, 2010, 02:35:42 PM by Michael 'Cruzer' »

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #21 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.

Offline wlindley us

  • Devotee
  • *
  • Posts: 978
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: Generatin PAK128.britain
« Reply #22 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.)

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #23 on: March 22, 2010, 10:28:08 AM »
I need only the mose.py from the zipfile??

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #24 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.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #25 on: March 22, 2010, 12:03:01 PM »
Not only the make.py, the sript "cry" about a makeobj.py

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #26 on: March 22, 2010, 12:50:27 PM »
Isn't the makeobj.py also in the makeobj download? 

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #27 on: March 22, 2010, 01:00:12 PM »
no it is in the mose download ....

Offline ansgar

  • *
  • Posts: 80
Re: Generatin PAK128.britain
« Reply #28 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... ;)

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #29 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)

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #30 on: March 22, 2010, 02:46:08 PM »
@wernieman

I meant mose download not makeobj download, like you say.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #31 on: March 22, 2010, 03:17:16 PM »
O.K ... I try it .. ;o)

Offline Michael 'Cruzer'

  • Devotee
  • *
  • Posts: 196
  • Founder of pak192.comic
    • Marktplatz für Parkplätze
  • Languages: DE, EN
Re: Generatin PAK128.britain
« Reply #32 on: March 22, 2010, 03:18:07 PM »
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.)

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Generatin PAK128.britain
« Reply #33 on: April 14, 2010, 09:52:03 AM »
Did we get anywhere with this, or do I still need to do something?

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: Generatin PAK128.britain
« Reply #34 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 )