Public Train

From ARK Wiki
Jump to navigation Jump to search
Mod Public Train logo.png
Public Train

A train that anyone can drive, some tracks allowing other tribes to connect to, and some chat commands.

Author
Discord server
ARK: Survival Ascended on CurseForge
Project page
Cross-platform?
Check mark.svg Yes, all platforms
Mod ID
1002321
Release date
Apr 12, 2024

Latest News

Version 22 is under review and will be available soon!

  • Fixed TracksDontRequireFoundations feature on dedicated servers.
  • Fixed "pickup Public Train Track" picking up the entire railway when TracksDontRequireFoundations feature is enabled (instead of picking up only tracks without foundations).
Show previous news
Title News
Version 20 has been released!
  • Fixed new multiuse wheel options sometimes not firing.
Version 19 has been released!
  • The "nearby enemy foundation check" has been reduced for PvE servers (so that only 1 Public Train Track is required for other tribes to be able to connect, instead of 3).
  • Added a configuration option TracksDontRequireFoundations= (disabled by default).
  • Increase train speed key is now Run (⇧ Shift, Left Stick, Left Stick, Left Stick).
  • Toggle light ON/OFF key is now Jump (Space, A, Cross, A).

Description

This mod adds new engrams for the train engine and tracks. You need to own Bob's Tall Tales in order to craft or unlock the engrams.
This mod also adds some chat commands to convert Public Train Engines/Tracks into regular train engines/tracks (and opposite).
This mod is made for dedicated servers (some features might not work in singleplayer or player-server modes). It is made for ArkIsBack servers, but anyone can use it on their own server.

Mod Public Train icon.png Public Train Engine

The Public Train Engine is like the regular train engine except that:

  • it has options to define who can drive it (tribe/allies/anyone).
  • it has options to define who can access its inventory (tribe/anyone).
  • it has a light (with an ON/OFF toggle).
  • it has multiple speed options.

By default:

  • every tribes can drive it.
  • every tribes can access its inventory (if AllowAccessInventory= has been enabled in Configuration).
  • light toggle and speed change are disabled.

Mod Public Train track icon.PNG Public Train Track

The Public Train Track is like the regular train track except that:

  • it has an option to acquire it temporarily (this gives you some time to place your own train or connect your own tracks to it).
  • it has options to define who can acquire it (tribe/allies/anyone).
  • it can be configured by server to not require foundations.

By default:

  • every tribes can acquire it.
  • it requires foundations (like the regular train track).

It is recommended that you use Public Train Track only at the ends of your railway (so that if you wish to remove the mod, you'll only have to redo the connections between the different tribes). On PvP servers, a length of 3 Public Train Track is required for non-allied tribes to be able to connect to your railway (otherwise the game will say to them that an enemy foundation is too close).

Additional train controls

Control key (PC, Xbox, PS, Switch) Explanation
Jump (Space, A, Cross, A) Toggles train light ON/OFF.
Run (⇧ Shift, Left Stick, Left Stick, Left Stick) Increases train's speed (has no effect if the train is stopped).
Crouch (C, Right Stick, Right Stick, Right Stick) Decreases train's speed (has no effect if the train is stopped).
Other inventory (F, X, Square, Y) Opens train's inventory.

Note: Added in v10.

Configuration

Start by adding a [PublicTrainAIB] section in your server's GameUserSettings.ini file, then you can setup the following options under it:

Option Possible values Default value Explanations Category Since version
AllowAccessInventory= true or false false If set to true, players will be able to choose who can access their Public Train Engine's inventory. If set to false, only the owning tribe will be able to access Public Train Engine's inventory. Train Changed in v18
AllowOnlyAllies= true or false false Defines which options are available to players when they choose who can drive their Public Train Engine and who can acquire their Public Train Tracks. If set to true, players will be able to choose "Anyone", "Allies", or "Tribe". If set to false, players will only be able to choose "Anyone" or "Tribe". Train v18
AllowConvertTrain= true or false false If set to true, players will be allowed to use the /converttrain chat command. Train v15
AllowConvertTrack= true or false false If set to true, players will be allowed to use the /converttrack chat command. Train v18
AllowToggleLight= true or false false If set to true, players will be allowed to toggle Public Train Engine's light (with Reload key). Train v10
AllowChangeSpeed= true or false false If set to true, players will be allowed to change Public Train Engine's speed (Jump key to accelerate, Crouch key to decelerate). Train v10
SpeedFactorMin= A floating point number greater than 0 1.5 Defines the minimum speed factor applied to the Public Train Engine when player increases train speed. Train v10
SpeedFactorMax= A floating point number greater than 0 3.0 Defines the maximum speed factor applied to the Public Train Engine when player increases train speed. Train v10
AcquiredTrainTrackDuration= A number greater than 4 (integer) 60 Defines the amount of time (in seconds) during which the train track will be acquired. Railway v7
TracksDontRequireFoundations= true or false false If set to true, Public Train Tracks will not require foundation supports anymore. Railway v19
EnableLogging= true or false false If set to true, the mod will output various info (like chat commands being used and train tracks being merged) in server's log file. Other v7

Note: The old options AllowAlliesOnly=, AllowAdminSetTrainTribeInfo=, AllowAdminSetTracksRank=, AllowAdminMergeTrainTracks= and AllowAdminPreventAutoDestroy= have been removed in v18!

Recommended configuration

This is the recommended configuration for minimum admin efforts:

[PublicTrainAIB]
AllowAccessInventory=true
AllowOnlyAllies=true
AllowConvertTrain=true
AllowConvertTrack=true
AllowToggleLight=true
AllowChangeSpeed=true
SpeedFactorMin=1.5
SpeedFactorMax=3.0
AcquiredTrainTrackDuration=60
TracksDontRequireFoundations=false
EnableLogging=true

Chat commands

Chat command Explanations Since version
/converttrain This will convert the first Public Train Engine or regular train engine found in your inventory into a regular train engine or Public Train Engine respectively. v15
/converttrack This will convert the first Public Train Track or regular train track found in your inventory into a regular train track or Public Train Track respectively. v18

Notes:

  • When you use a chat command there is a 5 seconds wait time before you can use a chat command again.
  • Only players belonging to a tribe can use chat commands.
  • If chat commands are not working, try to respawn your character (suicide or hover over the inventory implant for 5 seconds and click on "Respawn").
  • These commands are case-sensitive.

RCON command

RCON command Explanations
ScriptCommand PublicTrain_ServerWillShutdown Graceful shutdown of Public Train mod's features. Using this RCON command is not mandatory, but using it before a server shutdown/restart is recommended if you do not display an in-game message "Server will shutdown in X seconds". It disables chat commands, disables acquiring train tracks, restores train tracks ownerships immediately (skips the AcquiredTrainTrackDuration= timer), and returns players to their origin tribes (those who joined the Public Railway Tribe with the chat command). This ensures that every train track returns to their owner and that every players return to their own tribe (in case someone acquires a train track or joins the Public Railway Tribe few seconds before server shutdowns/restarts).

Notes:

  • Admins can also run this command from the console (cheat ScriptCommand PublicTrain_ServerWillShutdown).
  • This command is case-sensitive.

Spawn commands

cheat giveitem "Blueprint'/ArkIsBack_Train/Dinos/PrimalItem_TrainEngineAIB.PrimalItem_TrainEngineAIB'" 1 0 0
cheat giveitem "Blueprint'/ArkIsBack_Train/Structures/TrainTracks/Auto/Wood/PrimalItemStructure_TrainTrack_Auto_Wood_AIB.PrimalItemStructure_TrainTrack_Auto_Wood_AIB'" 1 0 0

Engram entries

Blueprint'/ArkIsBack_Train/Dinos/EngramEntry_Frontier_Train_CarAIB.EngramEntry_Frontier_Train_CarAIB'
Blueprint'/ArkIsBack_Train/Structures/EngramEntry_Frontier_Train_TracksAuto_AIB.EngramEntry_Frontier_Train_TracksAuto_AIB'

Screenshots

Deprecated method, but still functional

Older versions of this mod allowed to acquire train tracks using chat commands. This is no longer needed in latest version, as the mod now provides a new engram for train tracks. The Old configuration options, Old chat commands, and Old RCON commands are still available and functional in case you prefer the old way of acquiring train tracks. You can find the documentation related to the old method here: Mod talk: Public Train

Changelogs

Version Changelogs
v22 Deployment in progress...
  • Fixed TracksDontRequireFoundations feature for dedicated servers.
  • Fixed "pickup Public Train Track" picking up the entire railway when TracksDontRequireFoundations feature is enabled (instead of picking up only tracks without foundations).
v20 Current version.
  • Fixed new multiuse wheel options sometimes not firing.
v19
  • The "nearby enemy foundation check" has been reduced for PvE servers (so that only 1 Public Train Track is required for other tribes to be able to connect, instead of 3).
  • Added a configuration option TracksDontRequireFoundations= (disabled by default).
  • Increase train speed key is now Run (⇧ Shift, Left Stick, Left Stick, Left Stick).
  • Toggle light ON/OFF key is now Jump (Space, A, Cross, A).
Show previous changelogs
Version Changelogs
v18
  • Added a new engram "Public Train Track" for the train track.
  • Added in-game multiuse entries on Public Train Engine/Tracks.
  • Added a chat command to convert regular train track into a Public Train Track (and opposite).
  • Removed few chat commands and configuration options.
  • Fixed some network replication issues related to Public Train Engine's light and speed changes.
v15
  • Added a chat command to convert regular train engine into a Public Train Engine (and opposite).
  • Fixed train speeds not synchronizing properly.
v14
  • Fixed network replication issues for "Toggle light" and "Change speed" features.
v12
  • Fixed Public Train's new controls not working.
  • Fixed "MergeTrainTracks" feature only merging tracks one by one (now merges up to 150 connected tracks each time).
  • Added mod version printing to server log file.
v10
  • Added shorter alias /att for /acquiretraintrack.
  • Added possibility to change train speed.
  • Added train light and possibility to turn it ON/OFF.
  • Fixed missing HUD notifications.
v8
  • Modified /settraintribeinfo chat command parameters order (the owner name is now at the end).
  • Removed TrainTribeTracksRank= option (the tribe rank is now specified directly in the chat or RCON command).
  • Added support for RCON commands.
  • Increased default "acquire train track" duration from 45 to 60 seconds.
  • Added an RCON command to gracefully stop Public Train features before a server shutdown or restart.
v7
  • Added "Public Railway" features and chat commands.
v3
  • Added an option allowing other tribes to access Public Train's inventory.
  • Fixed network replication issues.
v2
  • Public Train engram now correctly appears inside smithy.
  • Public Train engram does not cost engram points anymore (but requires the regular train to be unlocked).
  • Picking up Public Train now correctly gives Public Train instead of regular train + Added an option to only allow allies to pilot.
v1
  • Initial release on CurseForge.

Contact

Join Discord for more info, bug reports, or if you have suggestions: https://discord.gg/PtAbeUdWX8