The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: tlp on December 20, 2008, 02:11:56 PM

Title: simutrans-src-100-0.zip missing some files
Post by: tlp on December 20, 2008, 02:11:56 PM
I'm looking into adding simutrans to the FreeBSD package system, but the simutrans-src-100-0.zip source code misses the files listed below. Could a fixed package be uploaded to sf.net? Or am I missing something and can these files be generated somehow?

simutrans/text/be.tab
simutrans/text/ca.tab
simutrans/text/cn.tab
simutrans/text/cz.tab
simutrans/text/de.tab
simutrans/text/dk.tab
simutrans/text/en.tab
simutrans/text/es.tab
simutrans/text/et.tab
simutrans/text/fi.tab
simutrans/text/fr.tab
simutrans/text/hr.tab
simutrans/text/hu.tab
simutrans/text/id.tab
simutrans/text/it.tab
simutrans/text/ja.tab
simutrans/text/nl.tab
simutrans/text/no.tab
simutrans/text/pl.tab
simutrans/text/pt.tab
simutrans/text/ro.tab
simutrans/text/ru.tab
simutrans/text/sk.tab
simutrans/text/sv.tab
simutrans/text/zh.tab
Title: Re: simutrans-src-100-0.zip misses some files
Post by: jamespetts on December 20, 2008, 02:35:15 PM
Those look like localisation files...
Title: Re: simutrans-src-100-0.zip missing some files
Post by: DirrrtyDirk on December 20, 2008, 03:07:35 PM
These are the "Simutrans Base Translation Files". They are not part of the Simutrans source code but get added into a realease version from another external source (=Simutranslator (http://simutranslator.simutrans-germany.com/), an online database for all texts and translations).
Title: Re: simutrans-src-100-0.zip missing some files
Post by: wernieman on December 20, 2008, 04:08:47 PM
Do you compile für FreeBSD?

Do you compilelike Linux ore do you make a spezial run?
Title: Re: simutrans-src-100-0.zip missing some files
Post by: tlp on December 21, 2008, 11:41:28 AM
Quote from: DirrrtyDirk on December 20, 2008, 03:07:35 PMThese are the "Simutrans Base Translation Files". They are not part of the Simutrans source code but get added into a realease version from another external source (=Simutranslator (http://simutranslator.simutrans-germany.com/), an online database for all texts and translations).
Ok, I understand they are kept in different repositories, but when you make a release I think you should add them in the zip archive, or perhaps in a separate zip archive. Currently, to build a working FreeBSD binary I need to download both the source code and the linux package, which is a bit redundant.

Quote from: wernieman on December 20, 2008, 04:08:47 PMDo you compile für FreeBSD?
Do you compilelike Linux ore do you make a spezial run?
I compile on FreeBSD with "make BACKEND=mixer_sdl COLOUR_DEPTH=16 OSTYPE=freebsd"
Title: Re: simutrans-src-100-0.zip missing some files
Post by: prissi on December 21, 2008, 04:41:48 PM
YOu need to download the translations directly from simutranslator. There is even a point: Download all as zip archive.
Title: Re: simutrans-src-100-0.zip missing some files
Post by: tlp on December 21, 2008, 11:34:02 PM
I really hate to bug you with this, but where exactly is this zip? All I can find is http://www.simutrans-germany.com/translator/script/wrap.php (http://www.simutrans-germany.com/translator/script/wrap.php).
Title: Re: simutrans-src-100-0.zip missing some files
Post by: prissi on December 21, 2008, 11:47:37 PM
Use wget, you will find in the svn a distribution.sh that does the trick.
Title: Re: simutrans-src-100-0.zip missing some files
Post by: Frank on December 22, 2008, 12:03:04 AM
Quote from: tlp on December 21, 2008, 11:34:02 PM
I really hate to bug you with this, but where exactly is this zip? All I can find is http://www.simutrans-germany.com/translator/script/wrap.php (http://www.simutrans-germany.com/translator/script/wrap.php).

for this option you need an account

Quote from: prissi on December 21, 2008, 11:47:37 PM
Use wget, you will find in the svn a distribution.sh that does the trick.

these are the data from the old translator
Title: Re: simutrans-src-100-0.zip missing some files
Post by: tlp on December 22, 2008, 10:28:45 PM
Ok, but this is not really what is needed. A package building system downloads the source code, applies extra patches (if needed), builds for some architecture (x86,ppc,sparc,...), installs everything into a temporary location and then adds all those installed files together with some meta data like a description into a compressed package, which is then uploaded to distribution servers and mirrors. This is all fully automated and therefore all downloaded files are checked against known checksums (MD5,SHA256,...) to detect corrupted downloads and prevent tampering. It's because of this that I can't download from Simutranslator because the checksums would change everytime someone changes a translation.

Right now I can download simulinux-100-0.zip to get those base translation files, so I'm settled, but since it contains many files that are already in the src zip, it's redundant.
Title: Re: simutrans-src-100-0.zip missing some files
Post by: prissi on December 22, 2008, 10:51:48 PM
Since the translator is meant to be dynamic, there is not proper way doing it otherwise.
Title: Re: simutrans-src-100-0.zip missing some files
Post by: Frank on December 23, 2008, 11:15:24 AM
language_pack-Base+texts.zip (http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip)