Author Topic: Simupak Explorer  (Read 8359 times)

0 Members and 1 Guest are viewing this topic.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Simupak Explorer
« on: August 05, 2012, 10:53:43 AM »
Notice:
The name of the project was changed 2013-06-10 to Simupak Explorer to avoid confusion/conflict with other products, primarily within the Simutrans community, but also outside it. This name seems unused inside the googlable universe, and hopefully also outside it.



In case anyone is interested, here's the source code for what I call PakViewer, version 1.1. Java 7 SDK and Gradle 1.0 is required to build it, and Java 7 is also required to run it. Other dependencies will be downloaded automatically by Gradle (Internet connectivity also required during build). The command "gradle run" will build and run the program, while "gradle installApp" will create a directory (that can be moved to a more suitable location) containing everything needed to run the program and some batch scripts to launch the program.

As stated elsewhere earlier, I won't be providing a binary release as it is too much work for me to fullfill the license requirements for that.

To inspect a pak set, open the pak set directory (with the pak files, not the source dats). If the pak sets lie in the simutrans directory, the main simuconf.tab will be loaded automatically. This can also be done manually, but there isn't much that needs simuconf.tab anyway.

http://simutrans-germany.com/files/upload/pakviewer-1.1.zip
« Last Edit: June 10, 2013, 08:58:23 AM by Ters »

Offline greenling

  • Lounger
  • *
  • Posts: 1729
  • Total likes: 2
  • Helpful: 15
  • Simutransarchology it my hobby!
  • Languages: DE,EN
Re: PakViewer
« Reply #1 on: August 05, 2012, 12:24:23 PM »
Ters
I have a problem!
I can Grandle not install!I Have a Windows 7 64bit and not a mac. ::'(
Version 1.1. Java 7 SDK have i not on my computer. ::'(
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #2 on: August 05, 2012, 12:29:25 PM »
I also have Windows 7 64-bit, and I don't see how Gradle is harder to install on Windows than on Mac. I would almost have expected the opposite. Command line experience should be required either way.

Offline greenling

  • Lounger
  • *
  • Posts: 1729
  • Total likes: 2
  • Helpful: 15
  • Simutransarchology it my hobby!
  • Languages: DE,EN
Re: PakViewer
« Reply #3 on: August 05, 2012, 12:54:06 PM »
Ters
Can you step by step declare how i Install and start gradle?
I am the it correctly.
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #4 on: August 05, 2012, 12:59:17 PM »
There's instructions at gradle.org (Getting started). I can't do any better than that.

Offline greenling

  • Lounger
  • *
  • Posts: 1729
  • Total likes: 2
  • Helpful: 15
  • Simutransarchology it my hobby!
  • Languages: DE,EN
Re: PakViewer
« Reply #5 on: August 05, 2012, 01:52:15 PM »
Ters
The Install guide on gradle.org have i not understand.
My english it not the best!
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #6 on: August 05, 2012, 02:00:05 PM »
Then I certainly won't do any better. It'll be confusion both ways.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #7 on: January 27, 2013, 08:25:47 PM »
Inspired by a report tool made by someone else, I've begun adding HTML report generation to PakViewer. It doesn't have the same good looks or interactive sorting for the time being. Another difference is that this report is generated from the pak files, not the dat files, so it works on closed sourced pak sets as well. I also try to keep PakViewer synchronized with the pak loading in Simutrans, so it should understand all format versions Simutrans can load (very old building formats are currently not implemented).

I've put up a demo from pak64+food+waste (hence M in the revision number) on http://simutrans-germany.com/files/upload/pak64_html-report.zip There might be some bugs.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8764
  • Total likes: 307
  • Helpful: 229
  • Languages: De,EN,JP
Re: PakViewer
« Reply #8 on: January 28, 2013, 03:25:43 PM »
Good type and capacity might be also requested. Otherwise great tool, espeically for building automated overviews for paksets.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #9 on: January 28, 2013, 04:20:14 PM »
Good type and capacity might be also requested. Otherwise great tool, espeically for building automated overviews for paksets.

In the vehicle list? Sure. It's far from complete. I don't think I want to list all possible goods there, though.
 
EDIT:
New update with sorting, vehicle timeline bars, the columns prissi mentioned and slightly better looks for the tables: http://simutrans-germany.com/files/upload/pak64_html-report_2.zip
« Last Edit: January 29, 2013, 06:19:42 AM by Ters »

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #10 on: February 02, 2013, 04:34:04 PM »
I've added a list of factories, factory pages showing suppliers and consumers, and details page for goods showing vehicles, producers and consumers. This reveals the two "hidden" factories in pak64 (I'm not thinking of those from the food or waste add-ons also included in this report). The factory details page contains some cryptic information, and probably lacks some other stuff.

http://simutrans-germany.com/files/upload/pak64_html-report_3.zip

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4849
  • Total likes: 25
  • Helpful: 63
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: PakViewer
« Reply #11 on: February 04, 2013, 09:51:52 AM »
Nice output :) I like what you do with these!

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!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #12 on: February 15, 2013, 06:08:33 PM »
Another update: http://simutrans-germany.com/files/upload/pak64_html-report_4.zip

Names are now translated using the English translation.

SaschaP

  • Guest
Re: PakViewer
« Reply #13 on: February 22, 2013, 09:36:39 PM »
Hey,

I really would like to have a binary version for Windows 7 32 bit, because the "getting started" of this program is really nothing! They are not saying, where to install, how and so on... especially not how on a Windows pc and i must say, that I boycott programs, that stick on Mac OS Usern.

I mean, for what do we have all java on the computer, if not for sharing the binaries?

but a question, does this programm also view the new versions of pak128german correctly? on the old 0.4 version you get always funny properties, like "1000km/h" speed

mfg sascha

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #14 on: February 23, 2013, 08:31:28 AM »
Unfortunately, I consider it too much work to fulfil the demands of the licenses of some 3rd party libraries for a binary release. I could do a binary release of PakViewer itself and let the end-users hunt down the libraries themselves, but that's hardly any easier than just compiling themselves. I also need to review the license for PakViewer itself before a new source release, but reading legaleese not something I look forward to.

but a question, does this programm also view the new versions of pak128german correctly? on the old 0.4 version you get always funny properties, like "1000km/h" speed
I have no idea. All I've ever used is pak64.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #15 on: February 24, 2013, 10:01:32 AM »
I've made some hacks to PakViewer that allows it to run without the libraries with the most complicated licenses, albeit without a few features. The features should automatically spring back to life once the required libraries are put in the lib directory (file name including version number must match, or the batch file must be edited assuming no API changes).

That leaves only various variants of BSD and MIT licenses, plus Apache License 2.0. I think and hope this binary release complies with these licenses now. It's surprisingly hard to find good examples on how to comply with these.

I've uploaded such a light binary release of PakViewer 1.2 at http://simutrans-germany.com/files/upload/pakviewer-gui-1.2.zip (It is also light because at 1.2 MB, it is 1/8 of a theoretical full binary distribution.) The "gui" in the file name means that this does not include the html report generator, which I've not managed to decouple from LGPL libraries, and because Gradle doesn't have a built in way of generating a zip with more than one program in it.

Offline SaschaPascalS

Re: PakViewer
« Reply #16 on: May 21, 2013, 09:30:06 PM »
Hey, do you have the Pakviewer1.2 Version, because I had a headcrash, so I lost the downloaded Pakviewer-1.2 :(

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #17 on: May 22, 2013, 03:11:49 PM »
I don't usually delete stuff, but I can't find any pakviewer 1.2 lying around.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: PakViewer
« Reply #18 on: May 27, 2013, 06:34:32 PM »
I figured that I might as well release PakViewer 1.3. There hasn't been much development lately, but there is one new features since 1.2, plus one important improvement and a lesser one.

The new feature is the validation tool. Intended for pak authors, it reports constraints and dates that don't seem to add up. Some of the things it reports are not necessarily errors, but the program can't know.

The important improvement is that the building composer now allows you to view all layouts in all seasons. The lesser improvement is displaying the new clustering property for normal buildings in Simutrans 112.3. I hope I understood how the data is represented.

There is also another hidden feature of sorts for a basic listing of a single pak file, but there is no way to get at it without launching it manually, which is a lot of hassle.

Get it at http://simutrans-germany.com/files/upload/pakviewer-gui-1.3.zip (for those of you that still have to count the bytes you download, pakviewer is now at 3.58 MB due to huge dependency for validation tool)

Offline Spenk009

Re: Simupak Explorer
« Reply #19 on: September 11, 2014, 06:34:57 AM »
The links for the Simupak Explorer are offline. Could someone post an attached copy or a fresher link?

Edit: Found the tools instead. (http://hd.simutrans.com/tools/)
« Last Edit: September 11, 2014, 08:07:25 AM by Spenk009 »

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4733
  • Total likes: 180
  • Helpful: 108
  • Languages: EN, NO
Re: Simupak Explorer
« Reply #20 on: September 11, 2014, 06:32:33 PM »
Edit: Found the tools instead. (http://hd.simutrans.com/tools/)

They are not in any way comparable. There are other things kind of like Simupak Explorer, but it's not these that you have linked to.

The links for the Simupak Explorer are offline. Could someone post an attached copy or a fresher link?

simutrans-germany.com/files is for temporary storage only (setting a long, or infinite, expiration time is possible, but feels like abuse). Due to licensing issues, I have to do some manual amputation of the full application before doing a release (unless you're familiar with Java development and only want the source). I haven't been actively maintainling Simupak Explorer this year, so it may not be compatible with the latest pak file format. If you're really interested in analyzing a pak set, I might upload something this weekend. Although it has a feature for predicting vehicle profitability, it is as a whole rather technical in how it presents the data.