The International Simutrans Forum

 

Author Topic: To merge pak files or not - such is the question!  (Read 11769 times)

0 Members and 1 Guest are viewing this topic.

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4852
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
To merge pak files or not - such is the question!
« on: February 21, 2009, 10:54:31 PM »
Feel free to express you opinion, regardless of who you are - users first, it's them who is affected by this.

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 Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: To merge pak files or not - such is the question!
« Reply #1 on: February 21, 2009, 11:18:57 PM »
As a user, I really don't care at all. I don't think users have to mess up with official pak files. Actually I never do (at least in my "pak128-play" folder).

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: To merge pak files or not - such is the question!
« Reply #2 on: February 21, 2009, 11:44:08 PM »
The preceding discussion of this in the German forum is can be found here: http://www.simutrans-forum.de/forum/thread.php?threadid=4227.

Offline Bughu Baas

  • *
  • Posts: 23
  • Languages: DE, EN
Re: To merge pak files or not - such is the question!
« Reply #3 on: February 22, 2009, 10:39:50 AM »
I think the current (as of pak 128-1.4.4) system is good - except for player vehicles, which are in one huge file. A separation with respect to the simutrans menu system would be better, different paks for train, monorail, maglev, tram, street, ship, air, and special. So the player can delete a transport division to make a game of its own (personally, I would play without monorail and air...)

Malte

Offline Michael 'Cruzer'

  • Devotee
  • *
  • Posts: 196
  • Founder of pak192.comic
    • Marktplatz für Parkplätze
  • Languages: DE, EN
To merge pak files or not - another view
« Reply #4 on: February 22, 2009, 11:02:24 AM »
I already have posted in German Forum, but for all who can't speak German my view:

- System stuff should be packed in a package, this would make the pak directory more clean.
- Trains, buildings, trees, ... shouldn't be packed, because so it's more easier to install addons or erase trains/... which you don't like.
- Trains they belong together with other trains (like ICE, TGV, ...) should be packed in one file.


Sorry for my broken English, I hope you can read it...


Founder and Ex-Maintainer of pak192.comic. Provider of Simutrans Hosting rental service.

Offline agamemnus

  • *
  • Posts: 40
Re: To merge pak files or not - such is the question!
« Reply #5 on: February 22, 2009, 07:44:28 PM »
I think the current (as of pak 128-1.4.4) system is good - except for player vehicles, which are in one huge file. A separation with respect to the simutrans menu system would be better, different paks for train, monorail, maglev, tram, street, ship, air, and special. So the player can delete a transport division to make a game of its own (personally, I would play without monorail and air...)

Malte

Sounds like a good solution.

I think there should be one general package with everything in one file and a package with some very good naming conventions with all files. (actual object names come last, and categories come first-- more of  what is there now, I guess...)
« Last Edit: February 23, 2009, 12:08:09 AM by agamemnus »

Offline martin

  • Web Team
  • Devotee
  • *
  • Posts: 65
  • Languages: EN, NL, DE
Re: To merge pak files or not - such is the question!
« Reply #6 on: February 22, 2009, 09:12:18 PM »
As a "player" I like the current setup. For me also the goods may also be merged together. When a player wants to modify one of the goods, and thus knows how to use MakeObj, extracting back into separate pak-files shouldn't be a big problem.

Besides that I support Bughu Baas's idea to split the vehicles.

Martin

Offline Fabio

  • Devotee
  • Administrator
  • *
  • Posts: 2898
  • The Pak128 Guy
    • Visit me on Facebook
  • Languages: EN, IT, RO, FR
Re: To merge pak files or not - such is the question!
« Reply #7 on: February 23, 2009, 09:11:14 AM »
i would merge road tunnels and bridges with way.roads.all and railways tunnel and bridges with way.tracks.all in order to have a railways pak and a road pak. At least, since I plan an upgrading/replacement for both, i intend already to make the images and the dats like this.

Offline Spike

  • *
  • Posts: 1361
  • First Simutrans Developer and Graphics Artist
Re: To merge pak files or not - such is the question!
« Reply #8 on: February 23, 2009, 11:22:13 AM »
Longer answer of mine in the german forum, just briefly: I'm pro single files, because that gives maximum flexibility (for addons, bugfixes ...).

Offline The Hood

  • Devotee
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: To merge pak files or not - such is the question!
« Reply #9 on: February 23, 2009, 02:02:45 PM »
I'm generally not in favour of lots of files as you can't fit them all on one screen display on the command prompt, but I can see advantages of individual pak files.  Is there any possibility of using subdirectories?  e.g. citybuildings in a citybuilding subdirectory, trains in a separate subdirectory, etc.? 

Also I like the idea of grouping by waytype - e.g. all road-related stuff in one merged pak, rail in another, rather than ways in one, tunnels in another, electrification in a third etc.

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4852
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: To merge pak files or not - such is the question!
« Reply #10 on: March 15, 2009, 11:35:02 AM »
OK, three weeks later and 21 people voted, which is not bad at all.

It seems the bias is towards more splitting... let's do it then! (When I have time to think about it ;D )

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 wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: To merge pak files or not - such is the question!
« Reply #11 on: March 15, 2009, 01:36:45 PM »
Do you change your pakmap?
I hope you understand my English

Offline Trukker

  • *
  • Posts: 31
Re: To merge pak files or not - such is the question!
« Reply #12 on: March 15, 2009, 07:02:22 PM »
As the hood, I agree whith as directories system it should please all people those who wants clean  pak directory (few subdirectories well aranged) and those witch want replace some stuff. Perhaps even 2 or 3 level of subdirectories.

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4852
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: To merge pak files or not - such is the question!
« Reply #13 on: March 15, 2009, 07:56:44 PM »
Now only if the game actually supported that, eh? ;) As of now, we have to stay in one folder.

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 jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17438
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: To merge pak files or not - such is the question!
« Reply #14 on: March 15, 2009, 11:47:27 PM »
There is another consideration that has not been mentioned: coupling constraints. If one needs vehicle X to be able to couple only to vehicles Y and Z, then vehicles Y and Z have to be in the same .pak file as vehicle X, or else vehicle X will not be able to couple to anything at all.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: To merge pak files or not - such is the question!
« Reply #15 on: March 16, 2009, 12:18:02 AM »
That is actually another reason to use constraints only where absolutely necessary.

It's not a good idea to remove files from a pak-set, although some may want to do so to reduce the high number of vehicles in Pak128. The objective of providing unmerged paks is to easily allow for updates, bugfixes and replacements for existing vehicles and other objects.

Offline Václav

  • Devotee
  • *
  • Posts: 3230
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: To merge pak files or not - such is the question!
« Reply #16 on: March 19, 2009, 12:44:45 PM »
Merge only logical sets - trees (I think that directory with more than 100 files of trees is not good idea), waggons by carried goods (but not only post, passengers and other goods), locomotives (not carrying any goods), high speed passenger units (for example: TGV, ICE, AVE), industries (one factory in single file is not good - but whole chains or parts of chain could be good) ... and so on - simply: like it is now but slightly more separated.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Offline Zeno

  • ENASSA Designer
  • Devotee
  • *
  • Posts: 1997
    • Zeno's Simutrans Creations
  • Languages: ES, EN, CAT
Re: To merge pak files or not - such is the question!
« Reply #17 on: April 13, 2009, 01:55:15 PM »
I've been messing up these days with pak files and planes and so, and I've really got mad because of the huge number of pak files there are now in the pak folder; It took ten minutes to remove the planes from my pak128 folder, despite there are only few of them; I really appreciate the hard work done with the new pak folder/file structure, but I may suggest two possible ways to improve IMHO the already hard work (again) already done:

First: I would suggest to avoid splitting every single vehicle in a separate pak file. Logical grouping can be done, of course several parts of each vehicle (e.g. HSTs, EMUs, DMUs) can be packed together, but also similar objects (all Shinkansen vehicles, different goods version of each model) could. Anyway, if you are an enough advanced player to replace a single vehicle in your pak folder, you'll also know how to type in a console a makeobj extract blablabla.pak command (you know what I mean...)

And Second: If no grouping is desired (as it looks like), I would suggest some kind of sorting by simply adding prefixes to the pak name, as object_type+waytype+cargo (e.g, vehicle.track.passenger.eurostar.pak, or vehicle.track.none.br103.pak). That way you can easily and quickly find a vehicle in the folder. If you think it's quite a hard work and it isn't worthy, I offer myself to do that work.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9124
  • Languages: De,EN,JP
Re: To merge pak files or not - such is the question!
« Reply #18 on: April 13, 2009, 08:35:39 PM »
The prefixes need to be added after makeobj; but the internal name would be the same; it just needs some more filename magic with python, imho.

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4852
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: To merge pak files or not - such is the question!
« Reply #19 on: April 14, 2009, 10:26:11 AM »
Another solution I have been thinking about is allowing making Simutrans load paks from subfolders. Another project for when & if... :-\

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 micslu

  • *
  • Posts: 66
Re: To merge pak files or not - such is the question!
« Reply #20 on: April 14, 2009, 05:39:37 PM »
I have been hoping for subfolders for pak organization too - unless there is a better method.
My main concern is for add-ons organization as I use a lot of them, mainly Japanese trains and Hong Kong buses (many of them are fantastically economical  :D too!)
It would be nice if the add-ons can all be put in a subfolder; this will make Pak upgrades and trying new game versions much easier.

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3557
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: To merge pak files or not - such is the question!
« Reply #21 on: April 14, 2009, 06:44:43 PM »
addons in a subfolder would be particularly handy when it comes time to share a map that uses them :D