The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Yona-TYT on July 07, 2012, 07:38:24 PM

Title: preview the vehicles
Post by: Yona-TYT on July 07, 2012, 07:38:24 PM


happens that when I go to transporting goods, passengers, etc. I have to build a garage to see the vehicle that go to use.
my question is: there a list for all vehicles (with the features) that are available and of this manner know which one to use ...?
Title: Re: preview the vehicles
Post by: prissi on July 07, 2012, 07:41:12 PM
Even though it is often requested and almost trival to program (compared to other stuff), no one bothered to make a patch.
Title: Re: preview the vehicles
Post by: Yona-TYT on July 07, 2012, 07:48:50 PM
me think that is much needed
Title: Re: preview the vehicles
Post by: Ters on July 07, 2012, 09:36:19 PM
I've been working on an external tool that can show all parameters for all items in a pak set. Unfortunately, I'm having licensing concerns regarding some of the code libraries I've used that prevent me from providing runable binaries. It can export a PDF report with key information about all vehicles, factories, goods and attractions. The problem there is figuring which parameters make up the key values, and that distributing PDFs for pak sets won't take each players potential add-ons and simuconf.tab hack into account.
Title: Re: preview the vehicles
Post by: Yona-TYT on July 08, 2012, 12:11:19 AM
thank you very much for your answers... ;)
Title: Re: preview the vehicles
Post by: greenling on July 08, 2012, 07:53:36 AM
good moring ters
i have be read that you work on a program that can be read and uplist the dataparameter form pakfiles.
I think that you programm be very usefull it to keep a overview of existing pakfiles and there combinationen.
And it help to find missing part of paksets.
I self have a problem to keep a overview of my Pakfile liberty. I must by each pakfile open the writeprogram that than
the names from the objects they are in the pakfiles exist can to read.
Title: Re: preview the vehicles
Post by: Ters on July 08, 2012, 09:31:36 AM
I've uploaded an updated example of a pak set report for pak64 at http://simutrans-germany.com/files/upload/pak64.pdf (http://simutrans-germany.com/files/upload/pak64.pdf)
Title: Re: preview the vehicles
Post by: Vonjo on July 08, 2012, 03:00:50 PM
Quote from: Ters on July 08, 2012, 09:31:36 AM
I've uploaded an updated example of a pak set report for pak64 at http://simutrans-germany.com/files/upload/pak64.pdf (http://simutrans-germany.com/files/upload/pak64.pdf)
Wow really nice! It even have the images. :) It will be nicer if it can be made into CSV format too.
Title: Re: preview the vehicles
Post by: Yona-TYT on July 08, 2012, 03:27:09 PM
very good the pdf... :D
make this a patch would be the next step
Title: Re: preview the vehicles
Post by: Ters on July 08, 2012, 04:04:29 PM
Quote from: tadeoadeo on July 08, 2012, 03:27:09 PM
very good the pdf... :D
make this a patch would be the next step

This can't be made into a patch. It's made by a standalone program made using different technology.

Quote from: Vonjo on July 08, 2012, 03:00:50 PM
Wow really nice! It even have the images. :) It will be nicer if it can be made into CSV format too.

CSV can't have images, and it's a bit messy for the complete report, but here is what the program can already do.
Title: Re: preview the vehicles
Post by: Fabio on July 08, 2012, 06:04:12 PM
A pdf could be generated for each official release of a pakset and be bundled with it as a sort of manual. This way distribution of the tool wouldn't even be needed.
Title: Re: preview the vehicles
Post by: IgorEliezer on July 08, 2012, 06:10:36 PM
Quote from: Fabio on July 08, 2012, 06:04:12 PM
A pdf could be generated for each official release of a pakset and be bundled with it as a sort of manual.
Perhaps a website? ;)

A "script" collects data from the paksets and generates a page, on query or every update. Plus, PDF/CSV files available for download would be handy for pakset maintainers.
Title: Re: preview the vehicles
Post by: Ters on July 08, 2012, 07:07:15 PM
For vehicles, there is something like my report on the Simutrans translator website. It should be enough for those that want a CSV to do various analyzes.

The code I've written to generate my reports can easily be used to drive a web site, but it can't run on the typical web servers that can be rented. It needs something more advanced, and more costly.
Title: Re: preview the vehicles
Post by: greenling on July 08, 2012, 07:33:08 PM
The Program must work without internet.
Title: Re: preview the vehicles
Post by: Yona-TYT on July 08, 2012, 08:42:15 PM
Quote from: Fabio on July 08, 2012, 06:04:12 PM
A pdf could be generated for each official release of a pakset and be bundled with it as a sort of manual. This way distribution of the tool wouldn't even be needed.
works also but I still think it would be view more practical this list in the game himself
Title: Re: preview the vehicles
Post by: Vonjo on July 09, 2012, 07:41:20 PM
Quote from: Ters on July 08, 2012, 04:04:29 PM
CSV can't have images, and it's a bit messy for the complete report, but here is what the program can already do.
Thank you for the CSV. It is quite messy however. Hard to parse. ;D But it is a good start. :D
Title: Re: preview the vehicles
Post by: MagnusA on July 11, 2012, 05:33:01 PM
About a year ago I made some CSV files for pak64 from the .dat files. http://forum.simutrans.com/index.php?topic=7033.0. Maybe time to blow the dust off that script?
Title: Re: preview the vehicles
Post by: IgorEliezer on August 02, 2012, 05:03:01 AM
Quote from: MagnusA on July 11, 2012, 05:33:01 PM
Maybe time to blow the dust off that script?
Why not? :) I believe it's worth a try.
Title: Re: preview the vehicles
Post by: Yona-TYT on August 04, 2012, 03:34:36 AM
a pdf would be a good start. maybe in the future can be integrated to the executable
Title: Re: preview the vehicles
Post by: Ters on August 04, 2012, 08:00:13 AM
That could easily make PDF generation the biggest part of the game.
Title: Re: preview the vehicles
Post by: eipi on August 04, 2012, 01:21:48 PM
I recently used PHP to batch process csv files into vocabulary cards.
One could take MagnusA's script to produce csv files, then run the php script to make latex files from them and in the end run pdflatex on the latex files to produce the pdf.
Shouldn't be too difficult, I guess :)
Title: Re: preview the vehicles
Post by: Ters on August 04, 2012, 02:54:25 PM
But why do that, when a single program, that is already written, can make a PDF directly from pak files? And what advantage does a PDF version of a CSV have over the CSV itself? Though I have difficulties distributing a binary version of my program due to licensing issues, anyone who can jump through all those hoops should be able to build my program from source, in which case the license issues don't apply.
Title: Re: preview the vehicles
Post by: el_slapper on August 06, 2012, 09:09:08 AM
Quote from: Ters on August 04, 2012, 02:54:25 PM
(.../...) And what advantage does a PDF version of a CSV have over the CSV itself? (.../...)

Readability, especially for non-geeks, or for people missing csv reader programs on their machine(i.e. excel). PDF is a highly readable standard.
Title: Re: preview the vehicles
Post by: Ters on August 06, 2012, 09:39:01 AM
It's readable, but not sortable as far as I know. HTML might be better if support for people without spreadsheet programs are important.

Still, it's not exactly ideal to use CSV as an intermediate file format. First of all, you lose the graphics. In addition, as pak data is tree shaped, some data won't fit nicely into the row based CSV format.