Garry's Mod

Garry's Mod

47 ratings
Metrostroi Clock Arrive v2.2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
2.247 MB
Aug 19, 2021 @ 9:06am
Feb 23, 2022 @ 12:29pm
13 Change Notes ( view )

Subscribe to download
Metrostroi Clock Arrive v2.2

In 1 collection by Agent Smith
Metrostroi Simple Server
131 items
Description
Metrostroi Clock Arrive v2.2

Models: Jarrius
Scripts: Alexell
v2.2 source repo on GitHub: https://github.com/angelus1637/metrostroi_clock_arrive

Addon is fully compatible with the GitHub version of Metrostroi.

Changelog:
  • Each monitor is a standalone entity and calculates everything itself independently of others
  • Optimized data transmission between server and clients
  • Added standby screen for monitors
  • Added new parameter Distance that determines the distance of calculations (in meters) for each monitor
  • Added localization (RU + EN)


Description:
Monitors that show line, destination, and the approximate time of the next train arrival.

How to spawn and save:
  • Primary (LMB): Spawn a new monitor / update monitor (if aimed on an existing monitor)
  • Secondary (RMB): Remove a monitor (if aimed on an existing monitor)
  • Reload (R): Copy monitor properties to spawner menu


Before spawning a monitor you need to define basic parameters. You can enable debug mode in Metrostroi to check station platform marks that show station ID and station path. Mind that station ID and station path must be valid and refer to a station you spawn a monitor.

After all monitors are spawned (or after each monitor spawn) you need to click save button in spawned menu. All monitors' data will be saved to data/clocks_arrive.txt on your server. Monitors themselves will be automatically spawned on map start.

Notice: pressing load button will cause deletion of all existing monitors on map and respawn of all monitors saved in data/clocks_arrive.txt file.

Fix old savedata:
If you have some old monitors, spawned and saved before version 2.1 release, you will have spawn errors on serverside. Use fix button to update clock savedata and reload all clocks afterwards.

P.S. Don't forget to save all changes that you've made before disconnecting, restarting server or changing map!
95 Comments
Agent Smith  [author] Jan 26 @ 10:38am 
Laszlo , first of all you'd better run your game as a multiplayer: just change "Single Player" to some other value in the top right corner
Secondly, make sure that you have ULib and ULX in your workshop collection
Finally, when in game already, open console and execute command ulx adduser <yournickname> superadmin
Once this is done, try to use clock spawn tool to create clocks
Laszlo Jan 25 @ 2:01pm 
What I need doing to get superadmin? on my single player server
Agent Smith  [author] Jan 25 @ 11:00am 
Laszlo , LMB to spawn, RMB to remove, R to copy
Should work for admin or superadmin group in ULX
Laszlo Jan 24 @ 5:40pm 
How it work LMB dont work, clickable only RLB
Agent Smith  [author] Jan 18 @ 7:58am 
Macsek , i don't confitm this error, i tested clock creation, copying and removing, all works fine
Make sure you try to spawn a clock entity in a valid place, so that the clock spawn tool recieves all info correctly
Also make sure that there are no other addons (fixes or scripts) that can have an effect on the clock spawn tool functionality
Macsek Jan 18 @ 7:07am 
I cant spawn it, i can only remove clocks, and i get this lua error.

[Metrostroi Clock Arrive v2.2] lua/autorun/clock_arrive.lua:29: bad argument #1 to 'SetPos' (Vector expected, got nil)
1. SetPos - [C]:-1
2. SpawnClockArrive - lua/autorun/clock_arrive.lua:29
3. unknown - lua/autorun/clock_arrive.lua:104
Москва 2019 Nov 18, 2024 @ 11:00pm 
Я создал свой сервер, не спанит
Agent Smith  [author] Nov 18, 2024 @ 10:42am 
nsnikiforoff , спавнер работает только в руках суперадмина/админа
Москва 2019 Nov 18, 2024 @ 9:05am 
только удаляет
Москва 2019 Nov 18, 2024 @ 9:05am 
Они не спавнятся
тулом этим не спавнит