Author Topic: global addon directory  (Read 443 times)

0 Members and 1 Guest are viewing this topic.

Offline susnux

global addon directory
« on: March 25, 2017, 12:16:51 AM »
It would be nice if it would be possible to install addons globally.
At the moment addons are only searched in ~/simutrans/addons, but searching programdir/addons (or if enabled workdir/addons) would be very nice.

This would allow to install addons one time and then all users can use them. Also if you package simutrans for e.g. linux distributions this would be useful.
It seems that this was already planed because in the source code (simmain.cc) I found this comment:
Code: [Select]
// load with private addons (now in addons/pak-name either in simutrans main dir or in userdir)
Regards,
susnux

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4675
  • Total likes: 170
  • Helpful: 108
  • Languages: EN, NO
Re: global addon directory
« Reply #1 on: March 25, 2017, 07:24:02 AM »
I think the comment refers to how Simutrans operates when running as a single directory installation. That is when each user has their own separate Simutrans installation. In that case, everything is in the Simutrans main directory.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8749
  • Total likes: 305
  • Helpful: 229
  • Languages: De,EN,JP
Re: global addon directory
« Reply #2 on: March 25, 2017, 11:38:33 PM »
While this would be easy to add, what is the advantage?

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2593
  • Total likes: 289
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: global addon directory
« Reply #3 on: March 26, 2017, 02:02:29 AM »
As he said, addons for multiple user accounts.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4675
  • Total likes: 170
  • Helpful: 108
  • Languages: EN, NO
Re: global addon directory
« Reply #4 on: March 26, 2017, 08:33:49 AM »
I think I have suggested earlier that the opposite be possible as well: having per-user pak sets. That seems more useful, as Simutrans players all seem to have different tastes and would not like an administrator to make choices for them. However, even installing a pak set into their user directory might be too complex for a lot of users. (Simutrans is also slightly violating Windows guidelines as it is by putting every per-user file in My Documents.)