Skip to main content
Topic: Extension request: export object guide search results to file (Read 13903 times) previous topic - next topic

Extension request: export object guide search results to file

Related with this topic, I would like to make a request. Would be possible to export object's guide or vehicle's list search results to an external file (plain text, xls or ods, I don't mind the format).

This request is specially focused on getting vehicle's info in an easy way. The file would contain all avaliable attributes and if possible others that are not implicit (some examples from pak128 vehicle tables here)

Futhermore, I think it would be usefull for:
  • Pak maintainers: quick access to latest objects info for balancing paksets and objects and stablish a clear object's timeline.
  • Players: improve timeline experience providing more info about intro-retire dates. They could plan better strategies at long term.
  • Object developers: easy access to a lot of references, to create good and balanced objects.
  • The community: we may avoid those info requests

From my point of view it seems pretty easy to implement. You only have to redirect the database query to an external document instead of to screen. You output the file headers, gather the content and load it in the file...simple, isn't it?  ;)

What do you think? Would it be possible?

Re: Extension request: export object guide search results to file

Reply #1
Since some cleaning is needed after making C&P from the translator web, I'd also like some kind of external (i.e. csv) file format output for this.

Re: Extension request: export object guide search results to file

Reply #2
With the framework I already have, such a tool would be relatively easy... but in Python :P

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Extension request: export object guide search results to file

Reply #3
Simutranslator is implemented with PHP, so I would say it's even easier than using Python... ::)

Re: Extension request: export object guide search results to file

Reply #4
Yes. On the other hand, you can not run it on arbitrary set of data.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

 

Re: Extension request: export object guide search results to file

Reply #5
The main problem here could be that the data in the translator is not updated regularly. Imho pak maintainers do not upload every changed dat-file to the translator. This will happen mainly if the name of the object is changed (or a new object is uploaded).

The statistic is only implemented for vehicles. Any other request must be implemented. Only for vehicles a query on all objects with parameters is available yet.

Moreover, the vehicle statistic is unsorted if everything is displayed. Here, some sorting would make this more user-friendly.

Your request is realizable, preferably as CVS-export. However this relies essentially whether the data is up to date.

Thanks Dwachs for help translating

Re: Extension request: export object guide search results to file

Reply #6
The main problem here could be that the data in the translator is not updated regularly. Imho pak maintainers do not upload every changed dat-file to the translator. This will happen mainly if the name of the object is changed (or a new object is uploaded).

True, but keep data updated is a problem of pak mantainers not yours, you know. Indeed, is Translator supposed to host development dat files? imho, It wasn't implemented for that.

Your request is realizable, preferably as CVS-export. However this relies essentially whether the data is up to date.

The output format really doesn't matter whenever would be in a file, not only in screen.

Another thing. When you talk about statistics, you actually mean object attributes, don't you? Anyway, my request was only focused on vehicles mainly because this is the type of Simutrans object that interacts more with players, unlike city buildings or tourist attractions, so imho it's usual that pak maintainers and players want an place where they can get all info to improve their strategy, rebalance a set of vehicles or just draw a timeline diagram.

In any case, would be a good idea to leave the door open to new requests in a near future related with other types of objects, but this time vehicles are the priority.


Re: Extension request: export object guide search results to file

Reply #7
No, translator is for translation. Frequent uploads should go the the SVN instead.