×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Transport TFM
Transport TFM
Klipus
« Citoyen »
1777456800000
    • Klipus#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1
  • Help
  • Source code
  • Changelog

https://i.imgur.com/BFxuffm.png


Are you a public transport enthusiast? If yes, you are in a good place!
The Transport TFM module is just for you!


Key features:
  • 8 vehicles
  • 6 destination board types
  • support for popular pixel fonts for destination boards *
  • 14 public transport providers from Poland and Europe
  • nearly 3,200 bus, tram and trolley lines **
  • advanced permission system, which allows to use the module in tribal houses, as well in the public rooms
  • user interface is available in the following languages: English, Polish
* - the font have to be installed in the operating system, to be able to view it
** - in full version of the script

https://i.imgur.com/ReGloYa.gif


TIP: You can click a question mark button in the upper left corner of the screen, to get a basic help directly in minigame.

The minigame interface consists of a few elements:
  • main panel, located on the right side of the screen,
  • help button in the upper left corner of the screen,
  • language change button, in the lower left corner of the screen.

A main panel provides the following functions (important functions were written in bold):
  • it's possible to fold/unfold a panel by clicking a text with module name on the top of it
  • Vehicle category
    • choice of vehicle
    • choice of destination board type
    • return to passenger mode (being a mouse)
  • Destination board category
    • setting up a line number and destination on the destination board
      • if the provided line number exists in the packet of lines of a choosen public transport provider, then after confirmation the final stops served by a given line will be displayed, which are fetched from timetable data
      • bus line 1 - write as 1 or A_1
      • tram line 1 - write as T_1
      • trolley line A - write as R_A
    • automatic alignment of text, which can't fit the destination board
    • displaying special messages (available only in Polish)
    • clearing destination board
  • Public transport provider category
    • possibility of changing the public transport provider
    • possibility of viewing and setting up the lines operated by a choosen public transport provider
  • Line operator category
    • possibility of changing the line operator, working for a choosen public transport provider

Keys:
  • hold a Shift key while moving to speed up
  • Spacebar has two functions:
    • In vehicle driver mode, after pressing Spacebar, the stop icon appears above the vehicle. It means, that vehicle entered stop mode and passengers can get on/off the vehicle. Pressing Spacebar again disables a stop mode.
    • In passenger mode, pressing Spacebar allows getting on/off the vehicle, if vehicle is in stop mode.

Module has an advanced permission system:
  • three permission groups: module administrators, allowed players, banned players,
  • player on the module administrators list has all permissions, can grant and revoke permissions to other players
    (usernames (including #hashtags) of the module administrators should be written to a table called adminsPlayers, at the beginning of the script),
  • player on the allowed players list can set up custom lines and destinations in the public rooms (in tribe house all players are allowed by default),
  • player on the banned players list can set up ONLY standard (predefined) lines and destinations, available in the packet of lines of a particular public transport providers,
  • !help chat command allows to check available administrator commands,
  • !admins, !allowed, !banned chat commands allows to check which players are on the particular permission lists,
  • !admin, !unadmin, !allow, !disallow, !ban, !unban chat commands, accepting a PlayerName#hashtag as an argument, allows to add or remove player from particular permission lists.

LUA code author: Klipus#0000
Images of vehicles: Atelier 801 Image Database, Klipus#0000, Youshi#1019
Timetable data: listed in Help > Data sources section directly in minigame help window

Remember, to write module administrators player names to the adminsPlayers table, at the beginning of the script, before running it.

In public rooms players can set only lines and destinations available in script, unless player will be added to the list of allowed players.

In tribal houses all players can set up custom lines and destinations.

Commands for the module administrators are described in Help section.

various things
  • Bus? Or maybe a tram? Select your favourite vehicle with a [Select vehicle] function. If you prefer being a mouse, use [Passenger (mouse)].
  • To let passengers enter the vehicle, click SPACEBAR. A stop icon will appear above the vehicle. Click SPACEBAR again, to be able to go further.
  • If there is a stop icon above a vehicle, click a SPACEBAR to get on/off the vehicle.
  • Press and hold SHIFT while moving to speed up.
  • 14 providers and nearly 3,200 lines... For sure, there is one you will like. Click [View operated lines] to select line operated by a given provider. Click [Change a public transport provider], if you want to choose lines from different region.
  • Text can't fit the destination board? No problem! Click [Align text] for a few times, until text on the destination board looks good.

  • All functions are available in a window on the right side of the screen. Sometimes, you may need to scroll the text in the window, if a content can't fit it.
  • Click a button with question mark in upper left corner to get some help about usage of this module. You can find more detailed help in a dedicated forum thread.


Full version of the script is too big (90 kB basic version and 300 kB full version), to put it directly in this forum post.
The both versions of the scripts differ only in amount of available lines. The remaining functionality is the same in both scripts.

Latest version of the script is available under the following addresses:

Full version:
http://klipus.one.pl/LUA/TransportTFM/TransportTFM_full.lua.txt
or basic version:
http://klipus.one.pl/LUA/TransportTFM/TransportTFM.lua.txt


09.06.2026: corrected parsing of GTFS files, small improvements in viewer of operated lines, optimization of runtime usage
03.05.2026: added missing images
29.04.2026: first public release

Dernière modification le 1781036940000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Transport TFM
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27